com.mulesoft.cloudhub.client
Class DomainConnection
java.lang.Object
com.mulesoft.cloudhub.client.Connection
com.mulesoft.cloudhub.client.DomainConnection
- All Implemented Interfaces:
- CloudhubConnection
public class DomainConnection
- extends Connection
Extends by providing domain level operations.
|
Method Summary |
boolean |
available()
Returns true if the domain is available for creating. |
protected com.sun.jersey.api.client.WebResource.Builder |
createApplicationBuilder(String path)
|
void |
delete()
|
void |
deploy(File file)
|
void |
deploy(File file,
ApplicationUpdateInfo application,
int waitForStart)
|
void |
deploy(File file,
String muleVersion,
int workers,
long maxWaitTime,
Map<String,String> properties)
Deploy provided application on specified domain. |
void |
deploy(InputStream file,
String muleVersion,
int workers,
long maxWaitTime,
Map<String,String> properties)
Deploy provided application on specified domain based on the InputStream |
protected void |
ensureCloudHubApplicationExists(String domain)
|
Application |
get()
|
String |
getDomain()
|
void |
start(Long maxWaitTime)
|
Application.Status |
status()
Returns the Status of the application |
void |
stop()
|
void |
update(ApplicationUpdateInfo application)
|
| Methods inherited from class com.mulesoft.cloudhub.client.Connection |
create, create, createApplication, createBuilder, createNotification, delete, deleteTenants, dismissAllNotifications, dismissNotification, getAccount, getAPIURL, getPassword, getSupportedMuleVersions, getTenant, getUrl, getUsername, handleErrors, listApplications, listNotifications, listTenants, on, test, update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_MULE_VERSION
public static final String DEFAULT_MULE_VERSION
- See Also:
- Constant Field Values
DEFAULT_WORKERS
public static final int DEFAULT_WORKERS
- See Also:
- Constant Field Values
DEFAULT_MAX_WAIT_TIME
public static final long DEFAULT_MAX_WAIT_TIME
- See Also:
- Constant Field Values
DomainConnection
public DomainConnection(Connection connection,
String domain)
available
public final boolean available()
- Returns true if the domain is available for creating.
- Returns:
status
public final Application.Status status()
- Returns the Status of the application
- Returns:
- The status of the given application.
getDomain
public final String getDomain()
ensureCloudHubApplicationExists
protected final void ensureCloudHubApplicationExists(String domain)
- Parameters:
domain -
- Throws:
RuntimeException - if iON application does not exist
update
public final void update(ApplicationUpdateInfo application)
deploy
public final void deploy(File file)
deploy
public final void deploy(File file,
ApplicationUpdateInfo application,
int waitForStart)
deploy
public final void deploy(File file,
String muleVersion,
int workers,
long maxWaitTime,
Map<String,String> properties)
- Deploy provided application on specified domain.
- Parameters:
file - muleVersion - workers - maxWaitTime -
deploy
public final void deploy(InputStream file,
String muleVersion,
int workers,
long maxWaitTime,
Map<String,String> properties)
- Deploy provided application on specified domain based on the InputStream
- Parameters:
file - muleVersion - workers - maxWaitTime -
stop
public final void stop()
start
public final void start(Long maxWaitTime)
delete
public void delete()
createApplicationBuilder
protected final com.sun.jersey.api.client.WebResource.Builder createApplicationBuilder(String path)
get
public Application get()
Copyright © 2012-2013. All Rights Reserved.