org.jgap.distr
Interface IWorker
-
- All Known Implementing Classes:
- Worker
public interface IWorkerInterface for workers processing requests from an IMaster instance.- Since:
- 2.4
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringCVS_REVISIONString containing the CVS revision.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description java.lang.StringgetDisplayName()java.lang.ObjectgetStatus()java.lang.Objectpause()Forces the worker to pause its work (can be resumed)java.lang.Objectresume()Forces the worker to resume a paused workjava.lang.ObjectsendCommand(WorkerCommand a_command)Lets a server send a command to process to the workerjava.lang.Objectstop()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
-
-
DMelt 3.0 © DataMelt by jWork.ORG