|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectunsw.cse.mica.blackboard.transport.TCPBlackboardConnection
public class TCPBlackboardConnection
A TCP-based BlackboardConnection. It listens on a TCP port for connections. When a connection is made it spawns a new TCPBlackboardAgentConnection and notifies its connection handler.
| Constructor Summary | |
|---|---|
TCPBlackboardConnection(int port)
|
|
| Method Summary | |
|---|---|
void |
close()
Closes the connection. |
boolean |
isOpen()
Tests if the connection is open. |
void |
open()
Opens the connection. |
void |
run()
|
void |
setAgentConnectionHandler(BlackboardConnectionHandler handler)
Specify the BlackboardConnectionHandler to use for this connection |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TCPBlackboardConnection(int port)
| Method Detail |
|---|
public void setAgentConnectionHandler(BlackboardConnectionHandler handler)
BlackboardConnection
setAgentConnectionHandler in interface BlackboardConnectionhandler - the blackboard connection handler to be used by this connection
public void open()
throws TransportException
BlackboardConnection
open in interface BlackboardConnectionTransportException - If any errors occur when opening the connection.public boolean isOpen()
BlackboardConnection
isOpen in interface BlackboardConnection
public void close()
throws TransportException
BlackboardConnection
close in interface BlackboardConnectionTransportException - If any errors occur when closing the connection.public void run()
run in interface java.lang.Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||