com.vmware.vim25.mo.samples.SCSILunName.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!
???? 26 'com/vmware/vim25/mo/samples/SCSILunName java/lang/Object ()V Code
LineNumberTable LocalVariableTable this )Lcom/vmware/vim25/mo/samples/SCSILunName; main ([Ljava/lang/String;)V
Exceptions java/lang/Exception *com/vmware/vim25/mo/util/CommandLineParser
constructOptions (()[Lcom/vmware/vim25/mo/util/OptionSpec;
<([Lcom/vmware/vim25/mo/util/OptionSpec;[Ljava/lang/String;)V url
!
get_option &(Ljava/lang/String;)Ljava/lang/String; # username % password ' hostname ) #com/vmware/vim25/mo/ServiceInstance + java/net/URL
* - . (Ljava/lang/String;)V
( 0 1 6(Ljava/net/URL;Ljava/lang/String;Ljava/lang/String;Z)V 3 &com/vmware/vim25/mo/InventoryNavigator
( 5 6 7
getRootFolder ()Lcom/vmware/vim25/mo/Folder;
2 9 : &(Lcom/vmware/vim25/mo/ManagedEntity;)V <
HostSystem
2 > ? @ searchManagedEntity I(Ljava/lang/String;Ljava/lang/String;)Lcom/vmware/vim25/mo/ManagedEntity; B com/vmware/vim25/mo/HostSystem
A D E F getConfig #()Lcom/vmware/vim25/HostConfigInfo;
H J I com/vmware/vim25/HostConfigInfo K L getStorageDevice *()Lcom/vmware/vim25/HostStorageDeviceInfo;
N P O &com/vmware/vim25/HostStorageDeviceInfo Q R
getScsiLun ()[Lcom/vmware/vim25/ScsiLun; T V U java/lang/System W X out Ljava/io/PrintStream; Z java/lang/StringBuilder \
SCSI LUN
Y -
Y _ ` a append (I)Ljava/lang/StringBuilder;
Y c d e toString ()Ljava/lang/String;
g i h java/io/PrintStream j . println l --------------
n o p printScsiLunInfo (Lcom/vmware/vim25/ScsiLun;)V
A r s t
getDatastores "()[Lcom/vmware/vim25/mo/Datastore; v
VMFS Affected
x z y com/vmware/vim25/ScsiLun { e getCanonicalName
} ~ printVMFS 5([Lcom/vmware/vim25/mo/Datastore;Ljava/lang/String;)V ? Virtual Machines
? ? printVMs ? error
Y ? ` ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder;
? ? printStackTrace ? Host
Y ? ` ? -(Ljava/lang/String;)Ljava/lang/StringBuilder; ?
not found
( ? ? ? getServerConnection (()Lcom/vmware/vim25/mo/ServerConnection;
? ? ? $com/vmware/vim25/mo/ServerConnection ? logout args [Ljava/lang/String; clp ,Lcom/vmware/vim25/mo/util/CommandLineParser; urlStr Ljava/lang/String; si %Lcom/vmware/vim25/mo/ServiceInstance; host Lcom/vmware/vim25/mo/HostSystem; scsiLuns [Lcom/vmware/vim25/ScsiLun; i I
datastores [Lcom/vmware/vim25/mo/Datastore; e Ljava/lang/Exception;
StackMapTable ? ? java/lang/String ? ? #com/vmware/vim25/mo/util/OptionSpec ? String ? Name of the host
? ? ? L(Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)V
x ? ? e getVendor
x ? ? e getModel
x ? ? ? getDurableName '()Lcom/vmware/vim25/ScsiLunDurableName;
? ? ? #com/vmware/vim25/ScsiLunDurableName ? ? getData ()[B ?
Data :
g ? ? . print
? ? ? ? valueOf (I)Ljava/lang/String; ?
? ? ? e getNamespace
? ? ? ? getNamespaceId ()B ?
Canonical Name : ?
vendor : ?
model : ? Namespace : ? Namespace ID : scsiLun Lcom/vmware/vim25/ScsiLun; canName vendor model scsiLunDurableName %Lcom/vmware/vim25/ScsiLunDurableName; data [B j namespace namespaceId B ?
? ? ? com/vmware/vim25/mo/Datastore ? ? getInfo "()Lcom/vmware/vim25/DatastoreInfo; ? "com/vmware/vim25/VmfsDatastoreInfo
? getVmfs #()Lcom/vmware/vim25/HostVmfsVolume;
? e getName
com/vmware/vim25/HostVmfsVolume
getExtent +()[Lcom/vmware/vim25/HostScsiDiskPartition;
&com/vmware/vim25/HostScsiDiskPartition e getDiskName
? equals (Ljava/lang/Object;)Z
None
vmfsFlag Z dsInfo Lcom/vmware/vim25/DatastoreInfo; vds $Lcom/vmware/vim25/VmfsDatastoreInfo; hvms !Lcom/vmware/vim25/HostVmfsVolume; vmfsName hdp )[Lcom/vmware/vim25/HostScsiDiskPartition; ?& com/vmware/vim25/DatastoreInfo#
?)*+ getVms '()[Lcom/vmware/vim25/mo/VirtualMachine;
-. "com/vmware/vim25/mo/VirtualMachine vmFlag vms %[Lcom/vmware/vim25/mo/VirtualMachine; k1
SourceFile SCSILunName.java ! / *? ?
/
f (? Y? *? L+? M+"? N+$? :+&? :? (Y? *Y,? ,-? /:? 2Y? 4? 8;? =? A:? ?? C? G? M:? ??? ?6 ? `? S? YY[? ] `? ^? b? f? Sk? f 2? m? q:
? Su? f
2? w? |? S?? f
2? w? ?? ????? @: ? S? YY?? ] ? ?? b? f ? ?? ? S? YY?? ]? ??? ?? b? f? ?? ?? i ? ?
j 4 5 6 7 " 8 * : ? ; W = \ ? i C t E z G ? H ? I ? K ? L ? M ? N ? O ? E ? S ? U ? V [ ^' _ z ( ? ? ? ? ? ? # ? " % ? * ? ' ? ? ? ? ? W ? ? ? i ? ? ? w h ? ? ? * ? ?
? ? ? ? 4 ? z
? ? ? ? ? ( A ? ? \? B ?
?
? ?Y? ?Y&??? ?S?
c d c o p ? ?*? wL*? ?M*? ?N*? ?:? ?:? SͶ ?6? #? S? YY3? ҷ ]ֶ ?? b? τ????? ?:? ?6? S? YY߷ ]+? ?? b? f? S? YY? ],? ?? b? f? S? YY? ]-? ?? b? f? S? YY? ]? ?? b? f? S? YY? ]? ^? b? f?
F j k
l m o p $ q * s G q R v Y w ` x v y ? z ? { ? | ? } \ ? ? ? ? ? ?
? ? ? ? ? ? ? ? ? ? ? ? ' + ? ? Y x ? ? ` q ? ? ? ? * x ? ? ? ? ? ~ ?
?=>? q*2? ?:? ?? ^? ?:? ?:?:?:6 ? 4 2?+?? "=? S? YYַ ]? ?? ?? b? f? ???ʄ*????? ? S? f?
F ? ? ? ? ? ? % ? , ? 3 ? 9 ? H ? J ? g ? r ? { ? ? ? ? f
? ? ? ? ? ? ? w ? ? c T % M , F! ? 3 ?"# 6 <