com.elasticbox
Class Client

java.lang.Object
  extended by com.elasticbox.Client

public class Client
extends Object

Author:
Phong Nguyen Le

Nested Class Summary
static interface Client.InstanceState
           
protected  class Client.ProgressMonitor
           
 
Field Summary
static Set FINISH_STATES
           
static Set OFF_OPERATIONS
           
static Set ON_OPERATIONS
           
static Set TERMINATE_OPERATIONS
           
 
Constructor Summary
Client(String endpointUrl, String username, String password)
           
 
Method Summary
 void connect()
           
 void delete(String instanceId)
           
 IProgressMonitor deploy(String profileId, String workspaceId, String environment, int instances, Map<String,String> variables)
           
 net.sf.json.JSON doGet(String url, boolean isArray)
           
 net.sf.json.JSONArray getBoxes(String workspaceId)
           
 net.sf.json.JSONObject getInstance(String instanceId)
           
 net.sf.json.JSONObject getProfile(String profileId)
           
 net.sf.json.JSONArray getProfiles(String workspaceId, String boxId)
           
 net.sf.json.JSONArray getWorkspaces()
           
 IProgressMonitor shutdown(String instanceId)
           
 IProgressMonitor terminate(String instanceId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Client

public Client(String endpointUrl,
              String username,
              String password)
Method Detail

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.