com.vmware.vim25.mo.samples.scheduling.DeleteOneTimeScheduledTask.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vijava Show documentation
Show all versions of vijava Show documentation
Java API for accessing VMWare web services API
The newest version!
???? 2 ? Acom/vmware/vim25/mo/samples/scheduling/DeleteOneTimeScheduledTask java/lang/Object ()V Code
LineNumberTable LocalVariableTable this CLcom/vmware/vim25/mo/samples/scheduling/DeleteOneTimeScheduledTask; constructOptions (()[Lcom/vmware/vim25/mo/util/OptionSpec; #com/vmware/vim25/mo/util/OptionSpec taskname String Name of the task to be scheduled
L(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)V useroptions &[Lcom/vmware/vim25/mo/util/OptionSpec; main ([Ljava/lang/String;)V
Exceptions ! java/lang/Exception # *com/vmware/vim25/mo/util/CommandLineParser
%
" ' ( <([Lcom/vmware/vim25/mo/util/OptionSpec;[Ljava/lang/String;)V * url
" , - .
get_option &(Ljava/lang/String;)Ljava/lang/String; 0 username 2 password 4 #com/vmware/vim25/mo/ServiceInstance 6 java/net/URL
5 8 9 (Ljava/lang/String;)V
3 ; < 6(Ljava/net/URL;Ljava/lang/String;Ljava/lang/String;Z)V
3 > ? @ getScheduledTaskManager ,()Lcom/vmware/vim25/mo/ScheduledTaskManager;
B D C (com/vmware/vim25/mo/ScheduledTaskManager E F getScheduledTasks &()[Lcom/vmware/vim25/mo/ScheduledTask;
H J I !com/vmware/vim25/mo/ScheduledTask K L getInfo &()Lcom/vmware/vim25/ScheduledTaskInfo;
N P O "com/vmware/vim25/ScheduledTaskInfo Q R getName ()Ljava/lang/String;
T V U java/lang/String W X equals (Ljava/lang/Object;)Z
H Z [ removeScheduledTask ] _ ^ java/lang/System ` a out Ljava/io/PrintStream; c java/lang/StringBuilder
T e f g valueOf &(Ljava/lang/Object;)Ljava/lang/String;
b 8 j has been removed.
b l m n append -(Ljava/lang/String;)Ljava/lang/StringBuilder;
b p q R toString
s u t java/io/PrintStream v 9 println x There is no task found named as z 4SchduledTaskManager is not available on this target. args [Ljava/lang/String; clp ,Lcom/vmware/vim25/mo/util/CommandLineParser; urlStr Ljava/lang/String; si %Lcom/vmware/vim25/mo/ServiceInstance; stm *Lcom/vmware/vim25/mo/ScheduledTaskManager; tasks $[Lcom/vmware/vim25/mo/ScheduledTask; found Z i I
StackMapTable | ?
SourceFile DeleteOneTimeScheduledTask.java ! / *? ?
8
W ? K*? Y? S*?
= > ? @ > A ? ɻ "Y? $*? &L+)? +M+/? +N+1? +:+? +:? 3Y? 5Y,? 7-? ::? =:? x? A:6 6
? A
2? G? M? S? +
2? Y6 ? \? bY? d? hi? k? o? r? ?
???? ? %? \? bYw? h? k? o? r? ? \y? r?
V F G H I " J * L ? M F O K Q R R U S [ U n W v X y Y ? Z ? S ? ] ? _ ? d ? f p ? { | ? } ~ ? ? ? 0 ? " ? 2 ? * ? ? ? ? ? ? F ? ? ? R n ? ? U k ? ? X I ? ?
? 0 ? [ ? " T T T T 3 B ? :? ? ? ?