public class LocalComputeProviderImpl extends Object implements ComputeProvider
Constructor and Description |
---|
LocalComputeProviderImpl() |
Modifier and Type | Method and Description |
---|---|
InstanceDescription |
describeRunningInstance(Credential credential,
String instanceId,
String xmlProps)
This method retrieves description of initiated instance.
|
URL |
getWebappURL(Credential credential,
String instanceId,
String xmlProps)
This method returns the URL of the instancewebapp on the instance with
the provided id.
|
boolean |
isInstanceBooting(Credential credential,
String instanceId,
String xmlProps)
This method returns true if the webapp of provided instance is currently
booting.
|
boolean |
isInstanceRunning(Credential credential,
String instanceId,
String xmlProps)
This method returns true if the instance is successfully running.
|
boolean |
isWebappRunning(Credential credential,
String instanceId,
String xmlProps)
This method returns true if the webapp of provided instance is
successfully running.
|
String |
start(Credential cred,
String xmlProps)
This method starts an instance-image with provided credential and
Compute-provider properties.
|
void |
stop(Credential credential,
String instanceId,
String xmlProps)
This method stops the running instance with provided id.
|
public InstanceDescription describeRunningInstance(Credential credential, String instanceId, String xmlProps)
ComputeProvider
describeRunningInstance
in interface ComputeProvider
credential
- Compute-provider credentialspublic URL getWebappURL(Credential credential, String instanceId, String xmlProps) throws Exception
ComputeProvider
getWebappURL
in interface ComputeProvider
credential
- Compute-provider credentialsException
public boolean isInstanceBooting(Credential credential, String instanceId, String xmlProps) throws Exception
ComputeProvider
isInstanceBooting
in interface ComputeProvider
credential
- Compute-provider credentialsException
public boolean isInstanceRunning(Credential credential, String instanceId, String xmlProps) throws Exception
ComputeProvider
isInstanceRunning
in interface ComputeProvider
credential
- Compute-provider credentialsException
public boolean isWebappRunning(Credential credential, String instanceId, String xmlProps) throws Exception
ComputeProvider
isWebappRunning
in interface ComputeProvider
credential
- Compute-provider credentialsException
public String start(Credential cred, String xmlProps) throws Exception
ComputeProvider
start
in interface ComputeProvider
Exception
public void stop(Credential credential, String instanceId, String xmlProps) throws Exception
ComputeProvider
stop
in interface ComputeProvider
credential
- Compute-provider credentialsException
Copyright © 2009–2014 DuraSpace. All rights reserved.