コード例 #1
0
 /**
  * Disconnects the user session
  *
  * @throws Exception
  */
 private static void disconnect() throws Exception {
   VIM_PORT.logout(SERVICE_CONTENT.getSessionManager());
 }
コード例 #2
0
 /**
  * @param url The URL of the server
  * @param uname The user name for the session
  * @param pword The password for the user
  *     <p>Establishes session with the virtual center / ESX server
  * @throws Exception
  */
 private static void connect(String url, String uname, String pword) throws Exception {
   VIM_PORT.login(SERVICE_CONTENT.getSessionManager(), uname, pword, null);
 }