Package com.cybozu.vmbkp.soap

Examples of com.cybozu.vmbkp.soap.Connection


    /**
     * Main method.
     */
    public static void main(String[] args) throws Exception
  {
        Connection conn = new Connection(url_, username_, password_);
        try {
            gm_ = new GlobalManager(conn);

            /* Host and datastore */
            getHostsAndDatastores();
            getDatastores();

            /* Snapshot test */
            createSnapshot();
            deleteSnapshot();

            /* getOvfOfAllVm(); */
            /* exportOvf(); */
            /* importOvf(); */

            /* Export/import ovf test. */
            getInfoAndOvfOfAllVm();
            int num = importAllOvf();
            deleteAllRestoredVm(num);
           
           
        } catch (Exception e) {
            e.printStackTrace();
           
        } finally {
            conn.disconnect();
        }
    }
View Full Code Here


        String password = cfgGlobal_.getPassword();

        /* Prepare connection vSphere soap server.
           It will automatically connect the server
           when the connection is really required. */
        Connection conn = new Connection(url, username, password);

        /* Prepare global manager. */
        gm_ = new GlobalManager(conn);
    }
View Full Code Here

TOP

Related Classes of com.cybozu.vmbkp.soap.Connection

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.