|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectthings.thinger.service.actor.ActorClientBase
public abstract class ActorClientBase
The actor client base. This can be used to make specific clients.
Version History
EPG - Initial - 12 MAY 07
Field Summary | |
---|---|
protected Logger |
logger
Usable local logger. |
protected SystemInterface |
si
The System Interface |
Constructor Summary | |
---|---|
ActorClientBase()
|
Method Summary | |
---|---|
abstract void |
init_chain()
Init the Service. |
abstract void |
message_ack(int sequence,
java.lang.String response)
Manage an NACK message. |
abstract void |
message_chain(ActorMessage e)
Client base does not handle this kind of message. |
abstract void |
message_log(java.lang.String logEntry)
Manage an LOG message. |
abstract void |
message_nack(int sequence,
java.lang.String response)
Manage an ACK message. |
abstract void |
quit_chain()
The service is going. |
void |
recieve()
Give the client a chance to handle inbound messages. |
void |
send(ActorMessage message)
Send a message. |
void |
start(java.lang.String host,
java.lang.String port,
java.lang.String serviceClass,
SystemInterface si)
Start a session. |
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
Constructor Detail |
---|
public ActorClientBase()
Method Detail |
---|
public abstract void init_chain() throws java.lang.Throwable
java.lang.Throwable
public abstract void quit_chain() throws java.lang.Throwable
java.lang.Throwable
public abstract void message_chain(ActorMessage e) throws java.lang.Throwable
e
- A received message.
java.lang.Throwable
public abstract void message_ack(int sequence, java.lang.String response) throws java.lang.Throwable
java.lang.Throwable
public abstract void message_nack(int sequence, java.lang.String response) throws java.lang.Throwable
java.lang.Throwable
public abstract void message_log(java.lang.String logEntry) throws java.lang.Throwable
java.lang.Throwable
public void start(java.lang.String host, java.lang.String port, java.lang.String serviceClass, SystemInterface si) throws java.lang.Throwable
host
- The host to connect to.port
- The target port.serviceClass
- The class name of the service at the distant end.si
- The system interface
java.lang.Throwable
public void recieve() throws java.lang.Throwable
java.lang.Throwable
public void send(ActorMessage message) throws java.lang.Throwable
message
- the message.
java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |