JGAP

org.jgap.distr
Interface IWorker

All Known Implementing Classes:
Worker

public interface IWorker

Interface for workers processing requests from an IMaster instance.

Since:
2.4

Field Summary
static java.lang.String CVS_REVISION
          String containing the CVS revision.
 
Method Summary
 java.lang.String getDisplayName()
           
 java.lang.Object getStatus()
           
 java.lang.Object pause()
          Forces the worker to pause its work (can be resumed)
 java.lang.Object resume()
          Forces the worker to resume a paused work
 java.lang.Object sendCommand(WorkerCommand a_command)
          Lets a server send a command to process to the worker
 java.lang.Object stop()
          Forces the worker to stop its work (cannot be resumed)
 

Field Detail

CVS_REVISION

static final java.lang.String CVS_REVISION
String containing the CVS revision. Read out via reflection!

See Also:
Constant Field Values
Method Detail

getDisplayName

java.lang.String getDisplayName()
Returns:
display name of the worker
Since:
2.4

getStatus

java.lang.Object getStatus()
Returns:
current status of the entity
Since:
2.4

pause

java.lang.Object pause()
Forces the worker to pause its work (can be resumed)

Returns:
status message
Since:
2.4

stop

java.lang.Object stop()
Forces the worker to stop its work (cannot be resumed)

Returns:
status message
Since:
2.4

resume

java.lang.Object resume()
Forces the worker to resume a paused work

Returns:
status message
Since:
2.4

sendCommand

java.lang.Object sendCommand(WorkerCommand a_command)
Lets a server send a command to process to the worker

Parameters:
a_command - the command to process
Returns:
status message
Since:
2.4

JGAP