public class Connector extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
baseURL |
protected String |
hostname |
protected Boolean |
ignoreSSL |
protected String |
password |
protected Integer |
port |
protected String |
realm |
protected String |
username |
| Constructor and Description |
|---|
Connector(String hostname,
String username,
String realm,
String password) |
Connector(String hostname,
String username,
String realm,
String password,
Boolean ignoreSSL) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkIfAuthTicketIsValid() |
List<String> |
getNodes() |
HashMap<String,Integer> |
getQemuMachines(String node) |
List<String> |
getQemuMachineSnapshots(String node,
Integer vmid) |
void |
login() |
static void |
resetCachedSSLHelperObjects() |
String |
rollbackQemuMachineSnapshot(String node,
Integer vmid,
String snapshotName) |
String |
stopQemuMachine(String node,
Integer vmid) |
protected String hostname
protected Integer port
protected String username
protected String realm
protected String password
protected Boolean ignoreSSL
protected String baseURL
public static void resetCachedSSLHelperObjects()
public void login()
throws IOException,
LoginException
IOExceptionLoginExceptionpublic void checkIfAuthTicketIsValid()
throws IOException,
LoginException
IOExceptionLoginExceptionpublic List<String> getNodes() throws IOException, LoginException, us.monoid.json.JSONException
IOExceptionLoginExceptionus.monoid.json.JSONExceptionpublic HashMap<String,Integer> getQemuMachines(String node) throws IOException, LoginException, us.monoid.json.JSONException
IOExceptionLoginExceptionus.monoid.json.JSONExceptionpublic List<String> getQemuMachineSnapshots(String node, Integer vmid) throws IOException, LoginException, us.monoid.json.JSONException
IOExceptionLoginExceptionus.monoid.json.JSONExceptionpublic String rollbackQemuMachineSnapshot(String node, Integer vmid, String snapshotName) throws IOException, LoginException, us.monoid.json.JSONException
IOExceptionLoginExceptionus.monoid.json.JSONExceptionpublic String stopQemuMachine(String node, Integer vmid) throws IOException, LoginException, us.monoid.json.JSONException
IOExceptionLoginExceptionus.monoid.json.JSONExceptionCopyright © 2004-2013 Dynamo-Media. All Rights Reserved.