com.vmware.vim25.mo.samples.scheduling
Class OneTimeScheduledTask

java.lang.Object
  extended by com.vmware.vim25.mo.samples.scheduling.OneTimeScheduledTask

public class OneTimeScheduledTask
extends Object

This is a simple standalone client whose purpose is to 
demonstrate the creation of a ScheduledTask using the 
ScheduledTaskManager

To run this samples following parameters are used :

taskname   [required]   : name of the task to be scheduled
vmname     [required]   : name of the virtual machine

Command Line:
run.bat com.vmware.samples.vm.OneTimeScheduledTask --url 
[webserviceurl] --username [username] --password [password] 
--taskname [myTask]

Author:
sjin THis is a sample converted from VI SDK samples

Constructor Summary
OneTimeScheduledTask()
           
 
Method Summary
static ScheduledTaskSpec createSchedulerSpec(String taskName, Calendar runTime)
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OneTimeScheduledTask

public OneTimeScheduledTask()
Method Detail

createSchedulerSpec

public static ScheduledTaskSpec createSchedulerSpec(String taskName,
                                                    Calendar runTime)

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2011-2012. All Rights Reserved.