|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.elkoserver.server.workshop.WorkerObject
public abstract class WorkerObject
Base class for all worker objects.
| Constructor Summary | |
|---|---|
WorkerObject(String serviceName)
Constructor. |
|
| Method Summary | |
|---|---|
void |
activate()
Overridable hook for subclasses to be notified about activation. |
JSONLiteral |
encode(EncodeControl control)
Produce a JSONLiteral representing the encoded state of this
object, suitable for transmission over a messaging medium or for writing
to persistent storage. |
String |
ref()
Obtain this object's reference string. |
protected Workshop |
workshop()
Obtain the workshop for this server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WorkerObject(String serviceName)
serviceName - Service name to register with broker, or null for
none.| Method Detail |
|---|
public void activate()
protected Workshop workshop()
public JSONLiteral encode(EncodeControl control)
JSONLiteral representing the encoded state of this
object, suitable for transmission over a messaging medium or for writing
to persistent storage. The default implementation makes this object
not actually encodable, but subclasses can override.
encode in interface Encodablecontrol - Encode control determining what flavor of encoding
should be done.
JSONLiteral representing the encoded state of this
object.public String ref()
ref in interface Referenceable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||