com.vmware.vim25.mo.samples.cluster.DrsModeChanger.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 ? 2com/vmware/vim25/mo/samples/cluster/DrsModeChanger java/lang/Object ()V Code
LineNumberTable LocalVariableTable this 4Lcom/vmware/vim25/mo/samples/cluster/DrsModeChanger; main ([Ljava/lang/String;)V
Exceptions java/lang/Exception java/lang/System out Ljava/io/PrintStream; 0Usage: DrsModeChanger url username password mode
java/io/PrintStream println (Ljava/lang/String;)V
" # $ exit (I)V & java/net/URL
% ( * domain-c5 , #com/vmware/vim25/mo/ServiceInstance
+ . / 6(Ljava/net/URL;Ljava/lang/String;Ljava/lang/String;Z)V 1 'com/vmware/vim25/ManagedObjectReference
0
0 4 5 set_value 7 ClusterComputeResource
0 9 : setType
+ < = > getServerConnection (()Lcom/vmware/vim25/mo/ServerConnection;
@ B A com/vmware/vim25/mo/util/MorUtil C D createExactManagedEntity t(Lcom/vmware/vim25/mo/ServerConnection;Lcom/vmware/vim25/ManagedObjectReference;)Lcom/vmware/vim25/mo/ManagedEntity; F *com/vmware/vim25/mo/ClusterComputeResource H "com/vmware/vim25/ClusterConfigSpec
G K %com/vmware/vim25/ClusterDrsConfigInfo
J N manual
P R Q java/lang/String S T equals (Ljava/lang/Object;)Z V X W com/vmware/vim25/DrsBehavior N Y Lcom/vmware/vim25/DrsBehavior;
J [ \ ] setDefaultVmBehavior !(Lcom/vmware/vim25/DrsBehavior;)V V _ ` Y fullyAutomated b java/lang/Integer
a d $
J f g h setVmotionRate (Ljava/lang/Integer;)V
G j k l setDrsConfig *(Lcom/vmware/vim25/ClusterDrsConfigInfo;)V
E n o p reconfigureCluster_Task A(Lcom/vmware/vim25/ClusterConfigSpec;Z)Lcom/vmware/vim25/mo/Task;
r t s $com/vmware/vim25/mo/ServerConnection u logout w java/lang/StringBuilder y End of changing DRS config to
v (
v | } ~ append -(Ljava/lang/String;)Ljava/lang/StringBuilder;
v ? ? ? toString ()Ljava/lang/String; args [Ljava/lang/String; url Ljava/net/URL; username Ljava/lang/String; password mode
drs_obj_id si %Lcom/vmware/vim25/mo/ServiceInstance; mref_drs )Lcom/vmware/vim25/ManagedObjectReference; ccr ,Lcom/vmware/vim25/mo/ClusterComputeResource; ccs $Lcom/vmware/vim25/ClusterConfigSpec; cdci 'Lcom/vmware/vim25/ClusterDrsConfigInfo;
StackMapTable ?
SourceFile DrsModeChanger.java ! / *? ?
1
? ?*?? ? ? ? !? %Y*2? 'L*2M*2N*2:):? +Y+,-? -:? 0Y? 2:? 36? 8? ;? ?? E:? GY? I: ? JY? L:
M? O?
? U? Z?
? ^? Z
? aY? c? e
? i ? mW? ;? q? ? vYx? z*2? {? ? ?
b 5 7 8 ; <