com.vmware.vim25.mo.samples.PrintInventory.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/PrintInventory java/lang/Object ()V Code
LineNumberTable LocalVariableTable this ,Lcom/vmware/vim25/mo/samples/PrintInventory; main ([Ljava/lang/String;)V
Exceptions java/lang/Exception #com/vmware/vim25/mo/ServiceInstance java/net/URL https://server/sdk
(Ljava/lang/String;)V root password
! " 6(Ljava/net/URL;Ljava/lang/String;Ljava/lang/String;Z)V
$ % &
getRootFolder ()Lcom/vmware/vim25/mo/Folder; ( * ) java/lang/System + , out Ljava/io/PrintStream; . &============ Data Centers ============
0 2 1 java/io/PrintStream 3 println 5 &com/vmware/vim25/mo/InventoryNavigator
4 7 8 &(Lcom/vmware/vim25/mo/ManagedEntity;)V : [Ljava/lang/String; < java/lang/String >
Datacenter @ name
4 B C D searchManagedEntities ;([[Ljava/lang/String;Z)[Lcom/vmware/vim25/mo/ManagedEntity; F java/lang/StringBuilder H Datacenter[
E
E K L M append (I)Ljava/lang/StringBuilder; O ]=
E Q L R -(Ljava/lang/String;)Ljava/lang/StringBuilder;
T V U !com/vmware/vim25/mo/ManagedEntity W X getName ()Ljava/lang/String;
E Z [ X toString ] +
============ Virtual Machines ============ _ VirtualMachine a vm[ c
============ Hosts ============ e
HostSystem g host[
i j k getServerConnection (()Lcom/vmware/vim25/mo/ServerConnection;
m o n $com/vmware/vim25/mo/ServerConnection p logout args si %Lcom/vmware/vim25/mo/ServiceInstance;
rootFolder Lcom/vmware/vim25/mo/Folder; dcs $[Lcom/vmware/vim25/mo/ManagedEntity; i I vms hosts
StackMapTable ~ com/vmware/vim25/mo/Folder w
SourceFile PrintInventory.java ! / *? ?
)
s I? Y? Y? ? L+? #M? '-? /? 4Y,? 6? 9Y? ;Y=SY?SS? AN6? ,? '? EYG? I? JN? P-2? S? P? Y? /?-???Ӳ '\? /? 4Y,? 6? 9Y? ;Y^SY?SS? A:6? -? '? EY`? I? JN? P2? S? P? Y? /????Ѳ 'b? /? 4Y,? 6? 9Y? ;YdSY?SS? A:6? -? '? EYf? I? JN? P2? S? P? Y? /?????+? h? l?
f . / 1 # 2 + 3 A 2 E 4 K 6 q 4 { 9 ? : ? ; ? : ? <