com.vmware.vim25.mo.ServiceInstance.class Maven / Gradle / Ivy
The newest version!
???? 1? #com/vmware/vim25/mo/ServiceInstance !com/vmware/vim25/mo/ManagedObject serviceContent !Lcom/vmware/vim25/ServiceContent; SERVICE_INSTANCE_MOR )Lcom/vmware/vim25/ManagedObjectReference; VIM25_NAMESPACE Ljava/lang/String;
ConstantValue
xmlns="urn:vim25"> VIM20_NAMESPACE xmlns="urn:vim2"> ()V Code 'com/vmware/vim25/ManagedObjectReference
ServiceInstance
set_value (Ljava/lang/String;)V
" # setType LineNumberTable LocalVariableTable 5(Ljava/net/URL;Ljava/lang/String;Ljava/lang/String;)V
Exceptions ) java/rmi/RemoteException + java/net/MalformedURLException
- . 6(Ljava/net/URL;Ljava/lang/String;Ljava/lang/String;Z)V this %Lcom/vmware/vim25/mo/ServiceInstance; url Ljava/net/URL; username password
6 7 H(Ljava/net/URL;Ljava/lang/String;Ljava/lang/String;ZLjava/lang/String;)V
ignoreCert Z
< > java/lang/NullPointerException @ "None of url, username can be null.
= B
D E F setMOR ,(Lcom/vmware/vim25/ManagedObjectReference;)V H com/vmware/vim25/VimPortType
J L K java/net/URL M N toString ()Ljava/lang/String;
G P Q (Ljava/lang/String;Z)V
G S T U getWsc ()Lcom/vmware/vim25/ws/WSClient;
W Y X com/vmware/vim25/ws/WSClient Z setVimNameSpace
G \ ] ^ retrieveServiceContent L(Lcom/vmware/vim25/ManagedObjectReference;)Lcom/vmware/vim25/ServiceContent;
` b a com/vmware/vim25/ServiceContent c d getAbout ()Lcom/vmware/vim25/AboutInfo;
f h g com/vmware/vim25/AboutInfo i N
getApiVersion
W k l setSoapActionOnApiVersion n $com/vmware/vim25/mo/ServerConnection
m p q T(Ljava/net/URL;Lcom/vmware/vim25/VimPortType;Lcom/vmware/vim25/mo/ServiceInstance;)V
s t u setServerConnection )(Lcom/vmware/vim25/mo/ServerConnection;)V w & y &
{ } | java/lang/String ~ replace D(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String; ? < ? < ? > ? > ? " ? " ? ' ? '
? ? ? getSessionManager &()Lcom/vmware/vim25/mo/SessionManager;
? ? ? "com/vmware/vim25/mo/SessionManager ? ? login V(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/vmware/vim25/UserSession;
? ? ? getServerConnection (()Lcom/vmware/vim25/mo/ServerConnection;
m ? ? ? setUserSession !(Lcom/vmware/vim25/UserSession;)V namespace
vimService Lcom/vmware/vim25/VimPortType; userSession Lcom/vmware/vim25/UserSession; $(Ljava/net/URL;Ljava/lang/String;Z)V
? ? 6(Ljava/net/URL;Ljava/lang/String;ZLjava/lang/String;)V
sessionStr ? (None of url, session string can be null.
W ? ? setCookie ? currentSession
? ? ? ? getCurrentProperty &(Ljava/lang/String;)Ljava/lang/Object; ? com/vmware/vim25/UserSession wsc Lcom/vmware/vim25/ws/WSClient;
? ? R(Lcom/vmware/vim25/mo/ServerConnection;Lcom/vmware/vim25/ManagedObjectReference;)V sc &Lcom/vmware/vim25/mo/ServerConnection; getServerClock ()Ljava/util/Calendar; ? serverClock
? ? java/util/Calendar
getCapability ()Lcom/vmware/vim25/Capability; ?
capability ? com/vmware/vim25/Capability getClusterProfileManager -()Lcom/vmware/vim25/mo/ClusterProfileManager;
? ? ? getServiceContent #()Lcom/vmware/vim25/ServiceContent;
` ? ? ? +()Lcom/vmware/vim25/ManagedObjectReference;
? ? ? createMO N(Lcom/vmware/vim25/ManagedObjectReference;)Lcom/vmware/vim25/mo/ManagedObject; ? )com/vmware/vim25/mo/ClusterProfileManager currentTime ? com/vmware/vim25/RuntimeFault
? ? ?
getVimService ()Lcom/vmware/vim25/VimPortType;
? ? ? getMOR
G ? ? ? ?(Lcom/vmware/vim25/ManagedObjectReference;)Ljava/util/Calendar;
getRootFolder ()Lcom/vmware/vim25/mo/Folder; ? com/vmware/vim25/mo/Folder
` ? ? ?
? ? queryVMotionCompatibility ?(Lcom/vmware/vim25/mo/VirtualMachine;[Lcom/vmware/vim25/mo/HostSystem;[Ljava/lang/String;)[Lcom/vmware/vim25/HostVMotionCompatibility; ? "java/lang/IllegalArgumentException ? Neither vm or hosts can be null.
? B
? ? ? "com/vmware/vim25/mo/VirtualMachine
? ? ? com/vmware/vim25/mo/util/MorUtil ? ?
createMORs P([Lcom/vmware/vim25/mo/ManagedObject;)[Lcom/vmware/vim25/ManagedObjectReference;
G ? ?(Lcom/vmware/vim25/ManagedObjectReference;Lcom/vmware/vim25/ManagedObjectReference;[Lcom/vmware/vim25/ManagedObjectReference;[Ljava/lang/String;)[Lcom/vmware/vim25/HostVMotionCompatibility; vm $Lcom/vmware/vim25/mo/VirtualMachine; hosts ![Lcom/vmware/vim25/mo/HostSystem;
compatibility [Ljava/lang/String; retrieveProductComponents *()[Lcom/vmware/vim25/ProductComponentInfo;
G
S(Lcom/vmware/vim25/ManagedObjectReference;)[Lcom/vmware/vim25/ProductComponentInfo; validateMigration ?([Lcom/vmware/vim25/mo/VirtualMachine;Lcom/vmware/vim25/VirtualMachinePowerState;[Ljava/lang/String;Lcom/vmware/vim25/mo/ResourcePool;Lcom/vmware/vim25/mo/HostSystem;)[Lcom/vmware/vim25/Event; com/vmware/vim25/InvalidState vms must not be null.
? com/vmware/vim25/mo/ResourcePool
? com/vmware/vim25/mo/HostSystem
G ?(Lcom/vmware/vim25/ManagedObjectReference;[Lcom/vmware/vim25/ManagedObjectReference;Lcom/vmware/vim25/VirtualMachinePowerState;[Ljava/lang/String;Lcom/vmware/vim25/ManagedObjectReference;Lcom/vmware/vim25/ManagedObjectReference;)[Lcom/vmware/vim25/Event; vms %[Lcom/vmware/vim25/mo/VirtualMachine; state +Lcom/vmware/vim25/VirtualMachinePowerState; testType pool "Lcom/vmware/vim25/mo/ResourcePool; host Lcom/vmware/vim25/mo/HostSystem;
' ] ? )+* java/lang/System,- out Ljava/io/PrintStream;/ java/lang/StringBuilder1 Exceptoin:
. B
.456 append -(Ljava/lang/Object;)Ljava/lang/StringBuilder;
. L
9;: java/io/PrintStream<