|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.fzi.kadmos.cloud.aws.AWSWorker
public class AWSWorker
This class implements the CloudWorker interface in the AWS cloud.
Parameters as following ( [] is the default value)
awsCredential path to a file containing the awsid and awssec separated by a breakline or whitespace
awsAMIID AMI to be used
awsKeyPair keypair to be used
awsSecurityGroup security group to be used (make sure to allow tcp on awsPort)
awsPort [6112]
awsShutDown [true]
awsServerInCloud [false] whether the server is located in the aws cloud (decides whether the public or the private dns is used)
awsInstanceType [m1.small] the amazon instance type
awsUserdata [""] userdata to be send to the aws instance
tcpHeartbeat [2000] timeout for the connection
| Field Summary | |
|---|---|
static String |
AWS_DEFAULT_INSTANCE_TYPE
|
static String |
AWS_DEFAULT_PORT
|
static String |
AWS_DEFAULT_SERVER_IN_CLOUD
|
static String |
AWS_DEFAULT_SHUTDOWN
|
static String |
AWS_DEFAULT_USER_DATA
|
static String |
DEFAULT_TCP_HEARTBEAT_TIMEOUT
|
| Constructor Summary | |
|---|---|
AWSWorker()
|
|
| Method Summary | |
|---|---|
Serializable |
receive()
Waits for the next message from the worker. |
void |
send(Serializable msg)
Sends the given object to the worker. |
void |
setParameter(Properties param)
The given set of parameters will be used by this class to start and control the worker. |
void |
shutdown()
Shuts down the worker. |
void |
startInstance()
Starts the worker and connects to it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String AWS_DEFAULT_INSTANCE_TYPE
public static final String AWS_DEFAULT_SERVER_IN_CLOUD
public static final String AWS_DEFAULT_PORT
public static final String AWS_DEFAULT_SHUTDOWN
public static final String AWS_DEFAULT_USER_DATA
public static final String DEFAULT_TCP_HEARTBEAT_TIMEOUT
| Constructor Detail |
|---|
public AWSWorker()
| Method Detail |
|---|
public void setParameter(Properties param)
CloudWorker
setParameter in interface CloudWorkerparam - Parameters.
public void startInstance()
throws CloudException
CloudWorker
startInstance in interface CloudWorkerCloudException
public void shutdown()
throws CloudException
CloudWorker
shutdown in interface CloudWorkerCloudException
public void send(Serializable msg)
throws CloudException
CloudWorker
send in interface CloudWorkermsg - Serializable object to be sent.
CloudException
public Serializable receive()
throws CloudException
CloudWorker
receive in interface CloudWorkerCloudException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||