com.elasticbox
Class Client
java.lang.Object
com.elasticbox.Client
public class Client
- extends Object
- Author:
- Phong Nguyen Le
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FINISH_STATES
public static final Set FINISH_STATES
TERMINATE_OPERATIONS
public static final Set TERMINATE_OPERATIONS
ON_OPERATIONS
public static final Set ON_OPERATIONS
OFF_OPERATIONS
public static final Set OFF_OPERATIONS
Client
public Client(String endpointUrl,
String username,
String password)
connect
public void connect()
throws IOException
- Throws:
IOException
getWorkspaces
public net.sf.json.JSONArray getWorkspaces()
throws IOException
- Throws:
IOException
getBoxes
public net.sf.json.JSONArray getBoxes(String workspaceId)
throws IOException
- Throws:
IOException
getProfiles
public net.sf.json.JSONArray getProfiles(String workspaceId,
String boxId)
throws IOException
- Throws:
IOException
getInstance
public net.sf.json.JSONObject getInstance(String instanceId)
throws IOException
- Throws:
IOException
getProfile
public net.sf.json.JSONObject getProfile(String profileId)
throws IOException
- Throws:
IOException
deploy
public IProgressMonitor deploy(String profileId,
String workspaceId,
String environment,
int instances,
Map<String,String> variables)
throws IOException
- Throws:
IOException
terminate
public IProgressMonitor terminate(String instanceId)
throws IOException
- Throws:
IOException
shutdown
public IProgressMonitor shutdown(String instanceId)
throws IOException
- Throws:
IOException
delete
public void delete(String instanceId)
throws IOException
- Throws:
IOException
doGet
public net.sf.json.JSON doGet(String url,
boolean isArray)
throws IOException
- Throws:
IOException
Copyright © 2004-2014. All Rights Reserved.