All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vmware.vim25.mo.samples.scheduling.OneTimeScheduledTask.class Maven / Gradle / Ivy

The newest version!
????2?;com/vmware/vim25/mo/samples/scheduling/OneTimeScheduledTaskjava/lang/Object()VCode
	LineNumberTableLocalVariableTablethis=Lcom/vmware/vim25/mo/samples/scheduling/OneTimeScheduledTask;constructOptions(()[Lcom/vmware/vim25/mo/util/OptionSpec;#com/vmware/vim25/mo/util/OptionSpecvmnameStringName of Virtual Machine
L(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)Vtaskname Name of the task to be scheduleduseroptions&[Lcom/vmware/vim25/mo/util/OptionSpec;createSchedulerSpecL(Ljava/lang/String;Ljava/util/Calendar;)Lcom/vmware/vim25/ScheduledTaskSpec;$com/vmware/vim25/MethodAction
#	'PowerOffVM_Task
#)*+setName(Ljava/lang/String;)V-%com/vmware/vim25/MethodActionArgument
#/01setArgument+([Lcom/vmware/vim25/MethodActionArgument;)V
354java/util/Calendar67add(II)V9"com/vmware/vim25/OnceTaskScheduler
8	
8<=>setRunAt(Ljava/util/Calendar;)V@"com/vmware/vim25/ScheduledTaskSpec
?	
?)DPowerOff VM in 1 minutes
?FG+setDescription
?IJK
setEnabled(Z)V
?MNO	setAction(Lcom/vmware/vim25/Action;)V
?QRSsetScheduler#(Lcom/vmware/vim25/TaskScheduler;)VtaskNameLjava/lang/String;runTimeLjava/util/Calendar;actionLcom/vmware/vim25/MethodAction;	scheduler$Lcom/vmware/vim25/OnceTaskScheduler;scheduleSpec$Lcom/vmware/vim25/ScheduledTaskSpec;main([Ljava/lang/String;)V
Exceptionsbjava/lang/Exceptiond*com/vmware/vim25/mo/util/CommandLineParser
f
chi<([Lcom/vmware/vim25/mo/util/OptionSpec;[Ljava/lang/String;)Vkurl
cmno
get_option&(Ljava/lang/String;)Ljava/lang/String;qusernamespasswordu#com/vmware/vim25/mo/ServiceInstancewjava/net/URL
vy+
t{|6(Ljava/net/URL;Ljava/lang/String;Ljava/lang/String;Z)V
t~?
getRootFolder()Lcom/vmware/vim25/mo/Folder;?&com/vmware/vim25/mo/InventoryNavigator
???&(Lcom/vmware/vim25/mo/ManagedEntity;)V?VirtualMachine
????searchManagedEntityI(Ljava/lang/String;Ljava/lang/String;)Lcom/vmware/vim25/mo/ManagedEntity;?"com/vmware/vim25/mo/VirtualMachine
t???currentTime()Ljava/util/Calendar;
?!"
t???getScheduledTaskManager,()Lcom/vmware/vim25/mo/ScheduledTaskManager;
???(com/vmware/vim25/mo/ScheduledTaskManager??createScheduledTaskl(Lcom/vmware/vim25/mo/ManagedEntity;Lcom/vmware/vim25/ScheduledTaskSpec;)Lcom/vmware/vim25/mo/ScheduledTask;	???java/lang/System??outLjava/io/PrintStream;?java/lang/StringBuilder?Task: 
?y
????append-(Ljava/lang/String;)Ljava/lang/StringBuilder;? has been successfully added.
????toString()Ljava/lang/String;
???java/io/PrintStream?+println?4SchduledTaskManager is not available on this target.
t???getServerConnection(()Lcom/vmware/vim25/mo/ServerConnection;
???$com/vmware/vim25/mo/ServerConnection?logoutargs[Ljava/lang/String;clp,Lcom/vmware/vim25/mo/util/CommandLineParser;urlStrsi%Lcom/vmware/vim25/mo/ServiceInstance;
rootFolderLcom/vmware/vim25/mo/Folder;vm$Lcom/vmware/vim25/mo/VirtualMachine;specstm*Lcom/vmware/vim25/mo/ScheduledTaskManager;
StackMapTable??java/lang/String?com/vmware/vim25/mo/Folder
SourceFileOneTimeScheduledTask.java!/*??
;

y	+?K*?Y?S*?Y?S*?
*
?@AB@C"D$E(C)F& 	!"?U?#Y?%M,&?(,?,?.+?2?8Y?:N-+?;??Y?A:*?BC?E?H,?L-?P?
6
KLMOP%Q*S3T9U@VFWLXRZ4UTUUVWMXY%0Z[3"\]	^_`a???cY?e*?gL+j?lM+p?lN+r?l:+?l:+?l:?tY?vY,?x-?z:?}:??Y???????:	????:
??:?,	
??W????Y???????????????????????
F_`ab"c*d2fGhNiclonvo{q?r?v?y?zz????????U?qU"?sU*?U2?UGn??Ng??cR??	oF?]
v????.???c?????t??????




© 2015 - 2024 Weber Informatics LLC | Privacy Policy