com.vmware.vim25.mo.samples.cluster.DrsAffRule.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 ? .com/vmware/vim25/mo/samples/cluster/DrsAffRule java/lang/Object ()V Code
LineNumberTable LocalVariableTable this 0Lcom/vmware/vim25/mo/samples/cluster/DrsAffRule; main ([Ljava/lang/String;)V
Exceptions java/lang/Exception java/lang/System out Ljava/io/PrintStream; 'Usage: DrsAffRule url username password
java/io/PrintStream println (Ljava/lang/String;)V
" # $ exit (I)V & java/net/URL
% ( * /The URL provided is NOT valid. Please check it. , domain-c5 . vm-26 0 vm-28 2 #com/vmware/vim25/mo/ServiceInstance
1 4 5 6(Ljava/net/URL;Ljava/lang/String;Ljava/lang/String;Z)V 7 ClusterComputeResource
9 : ; createMOR O(Ljava/lang/String;Ljava/lang/String;)Lcom/vmware/vim25/ManagedObjectReference;
1 = > ? getServerConnection (()Lcom/vmware/vim25/mo/ServerConnection;
A C B com/vmware/vim25/mo/util/MorUtil D E createExactManagedEntity t(Lcom/vmware/vim25/mo/ServerConnection;Lcom/vmware/vim25/ManagedObjectReference;)Lcom/vmware/vim25/mo/ManagedEntity; G *com/vmware/vim25/mo/ClusterComputeResource I "com/vmware/vim25/ClusterConfigSpec
H L (com/vmware/vim25/ClusterAffinityRuleSpec
K O App and DB Appliance Bundle
K Q R setName T V U java/lang/Boolean W X TRUE Ljava/lang/Boolean;
K Z [ \
setEnabled (Ljava/lang/Boolean;)V ^ VirtualMachine ` 'com/vmware/vim25/ManagedObjectReference
K b c d setVm -([Lcom/vmware/vim25/ManagedObjectReference;)V f com/vmware/vim25/ClusterRuleSpec
e i k j %com/vmware/vim25/ArrayUpdateOperation l m add 'Lcom/vmware/vim25/ArrayUpdateOperation;
e o p q setOperation *(Lcom/vmware/vim25/ArrayUpdateOperation;)V
e s t u setInfo %(Lcom/vmware/vim25/ClusterRuleInfo;)V
H w x y setRulesSpec &([Lcom/vmware/vim25/ClusterRuleSpec;)V
F { | } reconfigureCluster_Task A(Lcom/vmware/vim25/ClusterConfigSpec;Z)Lcom/vmware/vim25/mo/Task;
? ? $com/vmware/vim25/mo/ServerConnection ? logout ? 0Done with setting affinity rule for DRS cluster. ? java/net/MalformedURLException args [Ljava/lang/String; url Ljava/net/URL; urlE Ljava/net/MalformedURLException; username Ljava/lang/String; password
drs_obj_id vm1_oid vm2_oid si %Lcom/vmware/vim25/mo/ServiceInstance; mref_drs )Lcom/vmware/vim25/ManagedObjectReference; ccr ,Lcom/vmware/vim25/mo/ClusterComputeResource; ccs $Lcom/vmware/vim25/ClusterConfigSpec; cars *Lcom/vmware/vim25/ClusterAffinityRuleSpec; vm1 vm2 crs "Lcom/vmware/vim25/ClusterRuleSpec;
StackMapTable ?
_
_ ? ? setType
_ ? ? set_value type id mor
SourceFile DrsAffRule.java ! / *? ?
4
L ?*?? ? ? ? !L? %Y*2? 'L? M? )? ? !*2M*2N+:-:/:? 1Y+,-? 3:6? 8:? <? @? F: ? HY? J:
? KY? M:N? P? S? Y]? 8:]? 8:
? _YSY
S? a? eY? g:? h? n? r
? eYS? v
? zW?