com.vmware.vim25.mo.samples.HelloVM.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/HelloVM java/lang/Object ()V Code
LineNumberTable LocalVariableTable this %Lcom/vmware/vim25/mo/samples/HelloVM; main ([Ljava/lang/String;)V
Exceptions java/lang/Exception
java/lang/System currentTimeMillis ()J #com/vmware/vim25/mo/ServiceInstance java/net/URL https://8.8.8.8/sdk
! (Ljava/lang/String;)V # root % password
' ( 6(Ljava/net/URL;Ljava/lang/String;Ljava/lang/String;Z)V * + , out Ljava/io/PrintStream; . java/lang/StringBuilder 0 time taken:
-
- 3 4 5 append (J)Ljava/lang/StringBuilder;
- 7 8 9 toString ()Ljava/lang/String;
; = < java/io/PrintStream > ! println
@ A B
getRootFolder ()Lcom/vmware/vim25/mo/Folder;
D F E com/vmware/vim25/mo/Folder G 9 getName I root:
- K 4 L -(Ljava/lang/String;)Ljava/lang/StringBuilder; N &com/vmware/vim25/mo/InventoryNavigator
M P Q &(Lcom/vmware/vim25/mo/ManagedEntity;)V S VirtualMachine
M U V W searchManagedEntities 8(Ljava/lang/String;)[Lcom/vmware/vim25/mo/ManagedEntity; Y "com/vmware/vim25/mo/VirtualMachine
X [ \ ] getConfig -()Lcom/vmware/vim25/VirtualMachineConfigInfo;
X _ ` a
getCapability -()Lcom/vmware/vim25/VirtualMachineCapability;
X c d e getResourcePool $()Lcom/vmware/vim25/mo/ResourcePool; g Hello
X F j GuestOS:
l n m )com/vmware/vim25/VirtualMachineConfigInfo o 9 getGuestFullName q Multiple snapshot supported:
s u t )com/vmware/vim25/VirtualMachineCapability v w isMultipleSnapshotsSupported ()Z
- y 4 z (Z)Ljava/lang/StringBuilder;
| } ~ getServerConnection (()Lcom/vmware/vim25/mo/ServerConnection;
? ? ? $com/vmware/vim25/mo/ServerConnection ? logout args [Ljava/lang/String; start J si %Lcom/vmware/vim25/mo/ServiceInstance; end
rootFolder Lcom/vmware/vim25/mo/Folder; name Ljava/lang/String; mes $[Lcom/vmware/vim25/mo/ManagedEntity; vm $Lcom/vmware/vim25/mo/VirtualMachine; vminfo +Lcom/vmware/vim25/VirtualMachineConfigInfo; vmc +Lcom/vmware/vim25/VirtualMachineCapability;
StackMapTable ? ? java/lang/String ?
SourceFile HelloVM.java ! / *? ?
$
? ? @? Y? Y? "$? &N? 7? )? -Y/? 1e? 2? 6? :-? ?:? C:? )? -YH? 1? J? 6? :? MY? OR? T:? ?? ?2? X: ? Z:
? ^: ? bW? )? -Yf? 1 ? h? J? 6? :? )? -Yi? 1
? k? J? 6? :? )? -Yp? 1? r? x? 6? :-? {? ?
N ( ) * + 8 , > - E . \ / l 0 w 2 x 5 ? 7 ? 8 ? : ? ; ? <