public class Connector extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
baseURL |
protected Secret |
password |
protected Integer |
port |
protected String |
realm |
protected String |
username |
static long |
WAIT_TIME_MS |
| Constructor and Description |
|---|
Connector(String hostname,
String username,
String realm,
Secret password) |
Connector(String hostname,
String username,
String realm,
Secret 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) |
us.monoid.json.JSONObject |
getQemuMachineStatus(String node,
Integer vmid) |
us.monoid.json.JSONObject |
getTaskStatus(String node,
String taskId) |
Boolean |
isQemuMachineRunning(String node,
Integer vmid) |
void |
login() |
static void |
resetCachedSSLHelperObjects() |
String |
rollbackQemuMachineSnapshot(String node,
Integer vmid,
String snapshotName) |
String |
shutdownQemuMachine(String node,
Integer vmid) |
String |
startQemuMachine(String node,
Integer vmid) |
String |
stopQemuMachine(String node,
Integer vmid) |
us.monoid.json.JSONObject |
waitForTaskToFinish(String node,
String taskId) |
public static final long WAIT_TIME_MS
protected Integer port
protected String username
protected String realm
protected Secret password
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 us.monoid.json.JSONObject getTaskStatus(String node, String taskId) throws IOException, LoginException, us.monoid.json.JSONException
IOExceptionLoginExceptionus.monoid.json.JSONExceptionpublic us.monoid.json.JSONObject getQemuMachineStatus(String node, Integer vmid) throws IOException, LoginException, us.monoid.json.JSONException
IOExceptionLoginExceptionus.monoid.json.JSONExceptionpublic Boolean isQemuMachineRunning(String node, Integer vmid) throws IOException, LoginException, us.monoid.json.JSONException
IOExceptionLoginExceptionus.monoid.json.JSONExceptionpublic us.monoid.json.JSONObject waitForTaskToFinish(String node, String taskId) throws IOException, LoginException, us.monoid.json.JSONException, InterruptedException
IOExceptionLoginExceptionus.monoid.json.JSONExceptionInterruptedExceptionpublic 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 startQemuMachine(String node, Integer vmid) 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.JSONExceptionpublic String shutdownQemuMachine(String node, Integer vmid) throws IOException, LoginException, us.monoid.json.JSONException
IOExceptionLoginExceptionus.monoid.json.JSONExceptionCopyright © 2016–2022 Dynamo-Media. All rights reserved.