de.fzi.kadmos.cloud.aws
Class AWSController

java.lang.Object
  extended by de.fzi.kadmos.cloud.aws.AWSController
All Implemented Interfaces:
CloudController

public class AWSController
extends Object
implements CloudController

This class implements the CloudController interface for the Amazon Web Services (AWS) cloud infrastructure. Parameters as following ( [] is the default value)

awsPort [6112]

Since:
1.1.0
Version:
1.3.0
Author:
Carsten Daenschel

Field Summary
static String AWS_DEFAULT_PORT
           
 
Constructor Summary
AWSController()
           
 
Method Summary
 void close()
          Closes the connection.
 void connect()
          Starts the Connection back to the controlling instance.
 Serializable receive()
          Waits for the next message from the controlling instance.
 void send(Serializable msg)
          Sends the given object to the controlling instance.
 void setParameter(Properties param)
          The given set of parameters will be used by this class to build a connection back to the controlling instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AWS_DEFAULT_PORT

public static final String AWS_DEFAULT_PORT
See Also:
Constant Field Values
Constructor Detail

AWSController

public AWSController()
Method Detail

setParameter

public void setParameter(Properties param)
Description copied from interface: CloudController
The given set of parameters will be used by this class to build a connection back to the controlling instance.

Specified by:
setParameter in interface CloudController

connect

public void connect()
             throws CloudException
Description copied from interface: CloudController
Starts the Connection back to the controlling instance.

Specified by:
connect in interface CloudController
Throws:
CloudException

receive

public Serializable receive()
                     throws CloudException
Description copied from interface: CloudController
Waits for the next message from the controlling instance. Blocks until a Message is received or a CloudException is thrown.

Specified by:
receive in interface CloudController
Throws:
CloudException

send

public void send(Serializable msg)
          throws CloudException
Description copied from interface: CloudController
Sends the given object to the controlling instance.

Specified by:
send in interface CloudController
Parameters:
msg - Serializable object to be sent.
Throws:
CloudException

close

public void close()
           throws CloudException
Description copied from interface: CloudController
Closes the connection.

Specified by:
close in interface CloudController
Throws:
CloudException


Copyright © 2012. All Rights Reserved.