Question: An Alternative to the vim3WaitTaskEnd method?

I am looking for an alternative to the vim3WaitTaskEnd method.

Scenario:

Lets say I have a table of virtual machines that I need to migrate to another host.  The following example loops on my table of machines virtual one at a time waiting for each to complete before moving on to the next VM migration.  I would rather set the set of tasks or the queue upwards (similar to execution of workflows in parallel work) then wait that all tasks to perform.



for (s = 0; s < targetVM.length; s++) {
  task = targetVM[s].migrateVM_Task(resourcePool, Host2, VcVirtualMachineMovePriority.highPriority, null);
  actionResult = System.getModule("com.vmware.library.vc.basic").vim3WaitTaskEnd(task, true, 10);
}

Some direction or ideas would be greatly appreciated.

Adam

Push your tasks in a table that you are looping through...

Once done with your loop, check the status of each task until it all ended.

Tags: VMware

Similar Questions

  • question on "How to call a method once when starting the application"

    Hello everyone.

    I'm trying to implement that article "How to call a method once when you start the application" by Frank suggests.
    https://blogs.Oracle.com/jdevotnharvest/entry/how_to_invoke_a_method


    Suppose I want to have a single entry point, so in my login.jpsx I have the below:
    <f:view beforePhase="#{login.onBeforePhase}">
    In the 'onBeforePhase' method, I have to pass the phaseEvent, since the signature is as follows:
    public void onBeforePhase(PhaseEvent phaseEvent)
    But how do I know the phaseEvent during the call to the login.onBeforePhase? How the call should be?

    Thank you very much!


    PS. I use jDev 11.1.2.1.0

    You must not pass something to this method, this method is called before each Phase except view restoration
    Just write logic as Frank suggested to the phase in which you want the code to run. You can get the PhaseId analogues

    PhaseId.RENDER_RESPONSE

    public void onBeforePhase(PhaseEvent phaseEvent) {// from Frank's doc
     //render response is called on an initial page request
      if(phaseEvent.getPhaseId() == PhaseId.RENDER_RESPONSE){
    ... etc
    
  • Help! Weird question CF 9.02 when "in many" form fields are displayed in the 'post' method

    So we just installed cf9.02 64-bit on windows 2003 server machines brand new and migrated all code on and we have encountered in the wierdest (and very dead on the water) deliver, any display of a templae to FC with a "large" amount of fields using the method = "post" vomits, works well with the method = 'get' or with a small amount of fields.  Here are some examples of 'base' I pulled out of our application:

    https://dev1.mystudentsprogress.com/testposting/smallform.html -> it is method = 'post' and works well with a small number of fields, click on save and he called a CF model that simply says "index.cfm here."

    https://dev1.mystudentsprogress.com/testposting/formget.html -> it is method = 'get' and also works very well, click on save and then he calls a CF model that simply says "index.cfm here."

    https://dev1.mystudentsprogress.com/testposting/FormPost.html -> This is the method = 'post' and it barfs, click on save and you get a 500 error page

    And once this is the case that the 'next' call to even pages succesfull returns a blank page or go here:

    https://dev1.mystudentsprogress.com/testposting/smallform.html and click on save

    Go here again, and then click Save:

    https://dev1.mystudentsprogress.com/testposting/smallform.html


    .. There is nothing in any of the newspapers CF indicating any kind of errors, it's just flat barfs on forms with the post method and a large amount of fields, clearly a MAJOR issue because our app has a lot ot screens with a lot of fields!

    You could investigate the postParametersLimit and postSizeLimit values in file neo - runtime.xml of your server.  I suspect you'll need to increase the values of these two parameters.  Remember to save this file before making any changes. You will need to restart the CF server to apply the changes to the settings in this file.

    See FC 9.0.2 release notes for more information: http://helpx.adobe.com/coldfusion/release-note/coldfusion-9-0-update-2.html

  • Question about the synchronization of the two methods...

    I have 2 methods:

    writeData() //method 1

    createNewDataFile() //method 2

    the main thread will use method 1 quite frequently. In method 2, a separate thread wakes up every 10 minutes or if some maintenance on the file in method 1 to write. Thus, when the thread is in method 2 I need method 1 for the day before and wait. I also want the opposite, that when the main thread is in the 2-1 method will keep.

    Any help is appreciated!

    799454 wrote:
    So wait,

    I thought synchronized only worked on current methods where it is stated:

    Using the synchronized keyword requires a lock. Every object has exactly a lock that are associated with him. Once a thread has obtained the lock of an object, no other thread can only obtain this lock (and therefore cannot enter into a canton sync on this lock) until the first thread releases leaving his block of synchronization or by calling wait().

    so you're saying that if I declare:

    Synchronized, method 1

    Synchronized, method 2

    then I have a single object with 2 synchronized methods, so if thread A is in EITHER of these methods, the other method will be locked as well?

    The method is not "locked" in itself, but yes, 1 item, 2 methods synchronized, if T1 is in both methods, then T2 can enter either method.

    I urge you strongly to go through this tutorial or a book on Java concurrency, carefully.

  • I posted a question can not find the question and or response. Help, please

    I posted a question can not find the question and or response. Help, please

    AFAIK, you can't share a catalog like this.

    The only recommended method is to store your images and catalogue on an external drive, you can alternatively plug in both computers.

    With today the external USB drives, the speed is still correct, and many users are satisfied with this solution.

  • What is the MTBF method, used for the cRIO 9012, is the method of counting of Telcordia under what conditions?

    What is the MTBF method, used for the cRIO 9012, is the method of counting of Telcordia under what conditions? (Temperature, humidity, etc.)

    Hi jojosalud,

    According to the specifications for the cRIO-9012, the MTBF is 330 481 hours at 25 ° C; Question of Bellcore level II.

    Kind regards

  • Asynchronous VI and the Get method of the value of the command

    With the help of LabVIEW on Async. calls to multiple instances of a parallel Exec VI, warning and recommendations paragraph indicates. "

    «Methods and properties of the VI server cannot change the parallel proceedings of an asynchronous call to the VI.» If you call the method or a VI server on a property reference VI 0x40, the property or the method cannot modify the clone of VI that the starting node the asynchronous call is actually called. Instead, the method or the property affects the original purpose of VI. To apply the VI server properties or methods for the clone of VI as the starting node the asynchronous call is actually called, call the property or method in the target VI himself . "

    There is an example of what surrounds?  What I want to do is the following:

    Async.VI is the vi launch in parallel several times. It is no doubt reentrant.

    main.VI: the Launcher vi.

    Main.VI lance async.vi clones 1, 2, 3. Each clone when it starts running, generates a reference to an object, it uses internal: Ref. What I want is to get this reference of clone 1, 2 & 3, and I was hoping that the call to the Get method control Name to do this. But so far no luck. I tried to Call and Forget and call and collect...

    THX.

    Laurent

    There is a condition of the big race in this example. Even if you started VI async, you cannot be sure it has populated the Ref control when you try to question him later.

    In addition, the GetControlValue method requires that the front panel of your VI is present. This is generally true when running in LabVIEW.exe LabVIEW code, but if you build your own EXE then often the Application Builder will remove before panels of subVIs where it is not considered necessary.

    Your approach might work better if you just need to pass a reference of queue in async main VI and have async VI put its Ref value on the queue. Then just main listening on the queue for incoming Refs. It will certainly work.

    Back to your original question: How can you use the asynchronous start for several instances of reentrant clone and always know what VI reference you use exactly? I think you can do it without use of VITs. I think what you want to do is NOT to use the indicator 0 x 40 for reentrancy. That means this indicator is that you can simply open a VI reference and start several clones of her at the same time. This isn't what you're trying to do. You open several individual references you want to individually control via server of VI. To do this, try to change the indicator 0 x 40 with the indicator 0 x 08 standard for loading an instance of clone environment. I'm sure that I did successfully in your case. Note that I have the info I gave you was simply obtained by trial and error and read the help, so it could be inaccurate!

  • Error-50400 occurred to the Invoke method: FIFO. Read in Host.vi

    Hey there,

    We have sensors on an engine which are connected to a Board of Directors OR cRIO 9014 (with a NI9411 6 digital input modul channels) and from there, via the network to a host computer.

    cRIO jury: the jury cRIO collects data from the engine and stores in a buffer, it's because the network is to slow for the size of the data

    Host: bed of the host computer in the network buffer on the map of cRIO, on the host computer, it takes specific portions of the data to create charts of the engine pressure

    Error:

    Error-50400 occurred to the Invoke method: FIFO. Read in Host.vi

    Possible reasons:
    The transfer did not complete in the time-out or the specified number of retries.

    This error occurs in the following scenario:

    -motor is running

    -cRIO is running

    When I press the Start button (boolean 3) in the host.VI to start reading the data of the card AFTER I pressed the button to run the host VI.

    The error will not occur if I pressed the button start (3-Boolean) BEFORE I pressed the button to run the host VI.

    We tried to increase the timeout, but it still does not work, the error occurs!

    We would be really happy if you could look over it and help us in this case! If you need more information or if we need to clarify a specific part, please let us know!

    We have included the VI in the attachment!

    Thanks in advance!

    CHRISSE,

    There are a few things wrong in your application, if I can offer a few suggestions.

    First of all, your loops are not running in parallel.  In fact, they are in while loops with a real constant wired for them. I don't know if this is normal for debugging, or on accident.  I would put the question (read pulling elements Dummies) out of your hand while loop.

    Your second nested while that the loop (that of the poll the number of items and then shooting them) will execute only once and can make only a few samples.  I don't think that that's what you're looking for here, and there are two ways we can go here.  You might question continually until you have 0 items available for x time, then you know that you have no more available samples and you can process all the data, OR you can put your computer through this loop and always just write in the file immediately in the form x samples are drawn.

    In addition, the stop of the main loop condition is ( <= 3)="" therefore,="" it="" will="" run="" once="" and="" then="" stop. ="" maybe="" you="" mean="">= 3?

    In addition, you have "add to the file" disabled on your writing to the worksheet, so whenever you write that you are overwriting the old data.  If you want to write constantly, you will lose data.  This can be cured in this affecting true (requiring a new name for file or programmatically removing the old worksheet each time that you run the vi) OR you can recover all your data in a shift register and only write to the file once you have all your available data.

    The error you see is because you try to close your FPGA reference twice.  Simply close it once.

    After seeing your overview, I think this can be cured by simply reading wiring to get your 1440 X 4 items, but as we have seen, this does not work.  Something happens in your system... that's what I want you do... just run the following... code and let me know how much remaining elements it gives you... Once the number remains (I hope for this, and your engine continue to function), press stop, and all values will be presented on a graph for you.  My broken wires are because I do not have the FPGA VI.

  • The logon method, you use...

    Hello

    My problem is: I can't log on to an RODC with the user name and password, even with another account, I created before. I always get the message: the logon method, you use is not allowed on this computer.

    The local administrator does not either so all the hits on google are useless because they include the local administrator account.

    Can someone tell me why is this happening all of a sudden? I don't have any changes. I left the DC for a while (2-3 hours) and when I came back the screen was locked (for inactivity). When I tried to log on again the system wont let me do it.

    Any suggestions?

    BTW: 2012R2

    Hello

    Post your question in the TechNet Server Forums, as your question kindly is beyond the scope of these Forums.

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    See you soon.

  • Adapter LAN question, "no access to the network.

    Original title: LAN adapter issue

    Hi all, when connecting my laptop to a switch of the LED on the switch is green which means connected. The IP address on the laptop is entered manually, but when will the cmd and issue ipconfig it shows "media disconnected" and the network adapter in the Control Panel indicates "no access to the network. It also indicates that "this device is working propoerly! Please advice

    Hello

    What is the number and the model of the computer?

    Remember to make changes to the computer before the show?

    Thanks for posting in Microsoft Communities.  The problem description, I understand that you can not connect to the Internet.  Correct me I misunderstood the question

    Follow these steps:

    Method 1: Follow these steps:
    How to troubleshoot possible causes of Internet connection problems in Windows XP:
    http://support.microsoft.com/kb/314095

     

    Method 2: Follow these steps:


    Step 1:
    renew DHCP Dynamic Host Configuration Protocol)
    a. click Start, click run, type cmd and click OK.
    b. in the command prompt, type ipconfig / renew
    c. Close command prompt.
    d. check the result.

     

    Step 2: Try to obtain an IP address automatically
    a. open Internet Explorer, go to Tools, click on Internet Options, connections, LAN settings.

    b. uncheck all boxes except automatically detect connection settings
    c. click OK to apply the changes.
    d. check if the problem persists.

     

    Method 3: If the methods above do not help, check if the wireless card is very well and try to update the drivers on the manufacturer's Web site.

    a. click Start and right-click my computer.
    b. Select Properties and then click the hardware tab.
    c. click on Device Manager and expand network adapters in the list.
    d. right click on the adapter, then click Properties.
    e. click the driver tab and click Update the driver.

    Please follow the steps and let us know if this helped.  If the problem persists, answer and we will be happy to help you.

  • Is there an alternative to the shock wave?

    It keeps crashing, I use Google chrome for my default browser.ty

    Hi Larry,

    You can check out the link and check if it helps.

    Adobe Shockwave plug-in

    I would say to contact Google chrome support for assistance.

    http://support.Google.com/chrome/?hl=en

    For alternatives to the shock wave, I suggest you to search using your favorite search engine.

    Warning: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    Please report if you have any questions on Windows. We will be happy to help you.

  • alternative to the imageScale32

    I just tried to install my application on model companies BB, a 8703e with 4.1 OS and found out that the imageScale32 method is not supported until 4.2, so is there an alternative to this methos. Image of the startup screen goes off the screen and is quite ugly like that. Loved how the image reduced to fit on the screen and now it's just going to offset

    In addition, the update of the OS on the BB is not an option. Already tried that this tutorial showed

    http://www.BlackBerryForums.com/General-8700-series-discussion/170507-latest-OS-8700-4-5-0-174-4-5-0...

    But it did not work, do not know why, and my access provider (Nextel) don't know anything about

    the OS update is an option, you just took the wrong firmware. 8703 isn't an 8700.

    Have a look here:
    http://www.BlackBerryForums.com/rim-software/110673-useful-latest-OS-all-models.html

    the latest OS for your bb is 4.2.1 that supports the required method.

  • What is the preferred method of formatting and partitioning a hard drive?

    Format the hard drive... and build a Partition... (question of part 2)

    I finally get my CD with Windows 7 and ready to install... I just thought I would ask the "Perferred" formatting the hard drive method...? Quick format in fat files... a quick format in NTFS... elongated format... What is the formatting the hard drive perferred method... Also... build a partition to install Windows 7 within this partition... It is also the preferred method... ?? You don't computer Pro to always build a partition and install the Windows operating system inside the partition... ?? What is the perferred method... ?? I would like to try this for the first time... !!! Is it easy to do... ??  What size partition can I build... ???

    During the installation process, you can format/delete/create partitions on the disk hard if you perform a custom installation. Data backup before installing Windows.

    Using NTFS with Windows 7 system.

    Most people do a quick format.

    Install Windows 7 on a partition with a minimum of 60 GB. 100 GB or lager is recommended. You can use all the hard disk to the Windows partition if you want to.

    Format/delete/create the partition with the Windows 7 installation DVD, you can:

    1 boot from the DVD

    2. click on install now

    3. in the configuration screen, click Custom (Advanced)

    4. click on Drive Options

    5. you have the option to format/delete/create partitions and choose size during the creation of their

    6. continue with the installation.

    Activate Windows 7 on this computer

    http://Windows.Microsoft.com/en-us/Windows7/activate-Windows-7-on-this-computer

    Case of failure of the online activation:

    Call Microsoft use the manual phone Activation

    Note: If you always install Windows page enter your product key, do not enter your key and uncheck the "Automatically activate when online" then click OK/next to complete the installation.

    1. open Windows Activation - click on the Start button, right-click computer, click Properties, then click the option to activate Windows now or change your key.

    2. click on show me other ways to activate.

    3 type your Windows 7 product key, and then click Next.

    4. click on use the automated phone system.

    5. click on the location nearest you from the drop-down list, and then click Next.

    6. dial one of the available phone numbers listed.

    7. do not select all options and wait for a person pick up, then explain what happened.

    Questions about installing Windows 7?
    FAQ - Frequently Asked Questions from Installation Windows 7 & responses

  • can not connect because the logon method, you use is not allowed on this computer.

    I have a new computer that is joined to the domain, but in trying to have a user login, I get the following error:

    can not connect because the logon method, you use is not allowed on this computer.

    The only way for him to connect is to change its parameters from the user to the administrator. I tried power users and other options and did not work.

    is there any solution for this?

    Hi Snidera,

    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums.

    http://social.technet.Microsoft.com/forums/en-us/category/w7itpro

    It will be useful.

  • The getCurrent method on the oracle.adf.share.ADFContext class is not allowed

    Hi all

    I've migrated my old project i.e 12.1.3 to new version 12.2.1.

    After the migration of the project where ever, we use ADFContext.getCurrent () .getSessionScope () .put ("dummy", 1);

    put the variable in the session. We receive the exception as Houston-25150: the getCurrent method on the oracle.adf.share.ADFContext class is not allowed. In the earlier version, but its works very well.

    What will be the question. Please can someone let me know.

    Thank you

    Amar

    This error except for security, so try to use the expression adf.context.current.sessionScope.get ("dummy") (or attempt to use this as a groovy adf.context.sessionScope.dummy expression) attribute EO and trustMode = "true" for this attribute set.

    For more details check this url

    Tarek Fathy: oracle.jbo.ExprSecurityException Houston-25150

Maybe you are looking for