|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectthings.thinger.service.actor.ActorServiceBase
public abstract class ActorServiceBase
The actor service base.
Version History
EPG - Initial - 12 MAY 07
Field Summary | |
---|---|
ActorMessage |
currentMessage
Current message. |
protected Logger |
logger
Usable local logger. |
protected SystemInterface |
si
The System Interface |
Constructor Summary | |
---|---|
ActorServiceBase()
|
Method Summary | |
---|---|
void |
ADDPARAMETER(java.lang.String name,
java.lang.String value)
Add a parameter to the response. |
void |
FAIL(java.lang.String message)
Respond that the message was FAILED. |
void |
FAULT(java.lang.String message)
General a fault. |
void |
FAULT(java.lang.String message,
java.lang.Throwable t)
General a fault. |
java.lang.String |
getOptionalParameter(java.lang.String parameterName)
|
java.lang.String |
getRequiredParameter(java.lang.String parameterName)
Get required parameter from message. |
protected void |
init_service(SystemInterface si,
ActorServiceContextInterface context)
Init the Service. |
abstract void |
init()
Init the Service. |
void |
OK()
Respond that the message was OK. |
void |
OK(java.lang.String message)
Respond that the message was OK with a message. |
protected boolean |
process_message(ActorMessage message)
Process a message. |
abstract void |
process_unnumbered()
Process an unnumbered message. |
abstract void |
process()
Process a message. |
void |
PUNT(java.lang.String message)
Respond that the message was FAILED. |
abstract void |
quit()
Quit the Service. |
void |
sendLog(java.lang.String logEntry)
Send the sendLog entry. |
boolean |
typeIs(java.lang.String type)
Is the current message this type? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Logger logger
protected SystemInterface si
public ActorMessage currentMessage
Constructor Detail |
---|
public ActorServiceBase()
Method Detail |
---|
protected void init_service(SystemInterface si, ActorServiceContextInterface context) throws java.lang.Throwable
si
- a system interface.context
- the context.
java.lang.Throwable
protected boolean process_message(ActorMessage message) throws java.lang.Throwable
message
- the message
java.lang.Throwable
public abstract void init() throws java.lang.Throwable
java.lang.Throwable
public abstract void quit() throws java.lang.Throwable
java.lang.Throwable
public abstract void process() throws java.lang.Throwable
java.lang.Throwable
public abstract void process_unnumbered() throws java.lang.Throwable
java.lang.Throwable
public java.lang.String getRequiredParameter(java.lang.String parameterName) throws java.lang.Throwable
parameterName
- The name of the parameter.
java.lang.Exception
java.lang.Throwable
Throwable
public java.lang.String getOptionalParameter(java.lang.String parameterName)
public void sendLog(java.lang.String logEntry) throws java.lang.Throwable
logEntry
- The log entry to send.
java.lang.Throwable
public void OK() throws java.lang.Throwable
java.lang.Throwable
public void ADDPARAMETER(java.lang.String name, java.lang.String value) throws java.lang.Throwable
name
- The name of the parameter.value
- The value of the parameter.
java.lang.Throwable
public void OK(java.lang.String message) throws java.lang.Throwable
message
- text message
java.lang.Throwable
public void FAIL(java.lang.String message) throws java.lang.Throwable
message
- The response message.
java.lang.Throwable
public void PUNT(java.lang.String message) throws java.lang.Throwable
message
- The response message.
java.lang.Throwable
public void FAULT(java.lang.String message) throws java.lang.Throwable
message
- The error message.
java.lang.Throwable
- It will always be a fault.public void FAULT(java.lang.String message, java.lang.Throwable t) throws java.lang.Throwable
message
- The error message.t
- An exception for the chain.
java.lang.Throwable
- It will always be a fault.public boolean typeIs(java.lang.String type)
type
- The type.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |