de.fzi.kadmos.cloud
Interface CloudWorker

All Known Implementing Classes:
AWSWorker

public interface CloudWorker

This class provides a connection to a computing instance working in a cloud environment, called worker. It controls the instance and the connection channel.

Since:
1.1.0
Version:
1.3.0
Author:
Carsten Daenschel

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.
 

Method Detail

setParameter

void setParameter(Properties param)
The given set of parameters will be used by this class to start and control the worker.

Parameters:
param - Parameters.
Since:
1.1.0

startInstance

void startInstance()
                   throws CloudException
Starts the worker and connects to it.

Throws:
CloudException
Since:
1.1.0

shutdown

void shutdown()
              throws CloudException
Shuts down the worker.

Throws:
CloudException
Since:
1.1.0

send

void send(Serializable msg)
          throws CloudException
Sends the given object to the worker.

Parameters:
msg - Serializable object to be sent.
Throws:
CloudException
Since:
1.1.0

receive

Serializable receive()
                     throws CloudException
Waits for the next message from the worker. Blocks until a Message is received or a CloudException is thrown.

Throws:
CloudException
Since:
1.1.0


Copyright © 2012. All Rights Reserved.