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

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

The newest version!
????2?Dcom/vmware/vim25/mo/samples/scheduling/WeeklyRecurrenceScheduledTaskjava/lang/Object()VCode
	LineNumberTableLocalVariableTablethisFLcom/vmware/vim25/mo/samples/scheduling/WeeklyRecurrenceScheduledTask;createSchedulerSpec8(Ljava/lang/String;)Lcom/vmware/vim25/ScheduledTaskSpec;com/vmware/vim25/MethodAction
	RebootGuest
setName(Ljava/lang/String;)V%com/vmware/vim25/MethodActionArgument
setArgument+([Lcom/vmware/vim25/MethodActionArgument;)V $com/vmware/vim25/WeeklyTaskScheduler
	
#$%setSaturday(Z)V
'()setHour(I)V
+,)	setMinute
./)setInterval1"com/vmware/vim25/ScheduledTaskSpec
0	
05/Reboot GuestOS at 23:59PM every other Saturday.
078setDescription
0:;%
setEnabled
0=>?	setAction(Lcom/vmware/vim25/Action;)V
0ABCsetScheduler#(Lcom/vmware/vim25/TaskScheduler;)VtaskNameLjava/lang/String;actionLcom/vmware/vim25/MethodAction;	scheduler&Lcom/vmware/vim25/WeeklyTaskScheduler;scheduleSpec$Lcom/vmware/vim25/ScheduledTaskSpec;constructOptions(()[Lcom/vmware/vim25/mo/util/OptionSpec;O#com/vmware/vim25/mo/util/OptionSpecQvmpathSStringUVM Inventory Path
NWXL(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)VZtaskname\ Name of the task to be scheduleduseroptions&[Lcom/vmware/vim25/mo/util/OptionSpec;main([Ljava/lang/String;)V
Exceptionscjava/lang/Exceptione*com/vmware/vim25/mo/util/CommandLineParser
gLM
dij<([Lcom/vmware/vim25/mo/util/OptionSpec;[Ljava/lang/String;)Vlurl
dnop
get_option&(Ljava/lang/String;)Ljava/lang/String;rusernametpasswordv#com/vmware/vim25/mo/ServiceInstancexjava/net/URL
wz
u|}6(Ljava/net/URL;Ljava/lang/String;Ljava/lang/String;Z)V
u??getSearchIndex#()Lcom/vmware/vim25/mo/SearchIndex;
???com/vmware/vim25/mo/SearchIndex??findByInventoryPath7(Ljava/lang/String;)Lcom/vmware/vim25/mo/ManagedEntity;?"com/vmware/vim25/mo/VirtualMachine
?
u???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: 
?z
????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.
u???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;vm$Lcom/vmware/vim25/mo/VirtualMachine;specstm*Lcom/vmware/vim25/mo/ScheduledTaskManager;
StackMapTable??java/lang/String
SourceFile"WeeklyRecurrenceScheduledTask.java!/*??
=
	?X?Y?L+?+???Y?!M,?",?&,;?*,?-?0Y?2N-*?3-4?6-?9-+?<-,?@-?
>ABCEF#G)H/I4K<LAMGNLOQPVR*XDEPFG:HI<JK
LMq	+?NK*?NYPRT?VS*?NYYR[?VS*?
"WXYXZ"[(Z)\&]^	_`ab???dY?f*?hL+k?mM+q?mN+s?m:+P?m:+Y?m:?uY?wY,?y-?{:?~????:??:	??:

?,
	??W????Y???????????????????????
Babcd"e*f2hGjVl]ndoiqsr?v?y?zp????????E?rE"?tE*yQE2qZEG\??VM??]F?K	d???
?+???d?????u?0???




© 2015 - 2024 Weber Informatics LLC | Privacy Policy