com.vmware.vim25.mo.samples.cluster.DrsVMotionHistory.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 ? 5com/vmware/vim25/mo/samples/cluster/DrsVMotionHistory java/lang/Object ()V Code
LineNumberTable LocalVariableTable this 7Lcom/vmware/vim25/mo/samples/cluster/DrsVMotionHistory; main ([Ljava/lang/String;)V
Exceptions java/lang/Exception #com/vmware/vim25/mo/ServiceInstance java/net/URL https://10.20.143.209/sdk
(Ljava/lang/String;)V
Administrator password
! " 6(Ljava/net/URL;Ljava/lang/String;Ljava/lang/String;Z)V $ &com/vmware/vim25/mo/InventoryNavigator
& ' (
getRootFolder ()Lcom/vmware/vim25/mo/Folder;
# * + &(Lcom/vmware/vim25/mo/ManagedEntity;)V - ClusterComputeResource / myDrs
# 1 2 3 searchManagedEntity I(Ljava/lang/String;Ljava/lang/String;)Lcom/vmware/vim25/mo/ManagedEntity; 5 *com/vmware/vim25/mo/ClusterComputeResource 7 9 8 java/lang/System : ; out Ljava/io/PrintStream; = ,There is no cluster called myDrs. Exiting...
? A @ java/io/PrintStream B println
4 D E F getMigrationHistory )()[Lcom/vmware/vim25/ClusterDrsMigration; H bThere is no migration history set. Please check whether it's running in automatic mode!
Exiting... J java/lang/StringBuilder L There were totally
I
I O P Q append (I)Ljava/lang/StringBuilder; S migration(s).
I U P V -(Ljava/lang/String;)Ljava/lang/StringBuilder;
I X Y Z toString ()Ljava/lang/String;
\ ] ^ getServerConnection (()Lcom/vmware/vim25/mo/ServerConnection;
` b a $com/vmware/vim25/ClusterDrsMigration c d getVm +()Lcom/vmware/vim25/ManagedObjectReference;
f h g com/vmware/vim25/mo/util/MorUtil i j createExactManagedEntity t(Lcom/vmware/vim25/mo/ServerConnection;Lcom/vmware/vim25/ManagedObjectReference;)Lcom/vmware/vim25/mo/ManagedEntity; l "com/vmware/vim25/mo/VirtualMachine
` n o d getSource q com/vmware/vim25/mo/HostSystem
` s t d getDestination v VM:
k x y Z getName { migrated from
p x ~ to
? ? ? $com/vmware/vim25/mo/ServerConnection ? logout args [Ljava/lang/String; si %Lcom/vmware/vim25/mo/ServiceInstance;
drsCluster ,Lcom/vmware/vim25/mo/ClusterComputeResource; histories '[Lcom/vmware/vim25/ClusterDrsMigration; i I sc &Lcom/vmware/vim25/mo/ServerConnection; vm $Lcom/vmware/vim25/mo/VirtualMachine; srcHost Lcom/vmware/vim25/mo/HostSystem; dstHost
StackMapTable ?
SourceFile DrsVMotionHistory.java ! / *? ?
+
? ? Y? Y? ? L? #Y+? %? ),.? 0? 4M,? ? 6