|
The Meta-Environment API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttoolbus.communication.DirectIOHandler
public class DirectIOHandler
This class enables direct communication (through java method calls) between a client and a server, under the condition that they are running the the same VM. This class does nothing fancy, it just passes messages between the data handler and its I/O handler counter part.
| Field Summary | |
|---|---|
private IDataHandler |
dataHandler
|
private DirectIOHandler |
directIOHandler
|
| Constructor Summary | |
|---|---|
DirectIOHandler(IDataHandler dataHandler)
Constructor. |
|
| Method Summary | |
|---|---|
void |
exceptionOccured()
Notifies the I/O handler that an exception has occured so it can take the nessacary steps. |
void |
receive(byte operation,
aterm.ATerm aTerm)
Receives a term from the remote location. |
void |
send(byte operation,
aterm.ATerm aTerm)
Sends a term to the remote location. |
void |
setDirectIOHandler(DirectIOHandler directIOHandler)
Links this I/O handler with its counter part. |
void |
shutDown()
Shuts down this ioHandler and it's associated datahandler. |
void |
terminate()
Requests the termination of this ioHandler. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final IDataHandler dataHandler
private volatile DirectIOHandler directIOHandler
| Constructor Detail |
|---|
public DirectIOHandler(IDataHandler dataHandler)
dataHandler - The data handler this I/O handler is associated with.| Method Detail |
|---|
public void setDirectIOHandler(DirectIOHandler directIOHandler)
directIOHandler - The counter part of this I/O handler.
public void receive(byte operation,
aterm.ATerm aTerm)
IIOHandler
receive in interface IIOHandleroperation - The operation associated with the term we received.aTerm - The term that was received.IIOHandler.receive(byte, ATerm)
public void send(byte operation,
aterm.ATerm aTerm)
IIOHandler
send in interface IIOHandleroperation - The operation associated with the term we need to send.aTerm - The term that needs to be send.IIOHandler.send(byte, ATerm)public void terminate()
IIOHandler
terminate in interface IIOHandlerIIOHandler.terminate()public void shutDown()
IIOHandler
shutDown in interface IIOHandlerIIOHandler.shutDown()public void exceptionOccured()
IIOHandler
exceptionOccured in interface IIOHandlerIIOHandler.exceptionOccured()
|
The Meta-Environment API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||