|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TCPGateway
| Method Summary | |
|---|---|
int |
activeSessions()
Returns the currently cached sessions |
void |
close(org.resoa.stack.config.HostStatus state,
java.lang.String infoMsg)
Disconnect from all connections |
void |
connectToRemote(Session session)
Connect to an address |
void |
disconnect()
Disconnect all sessions |
void |
disconnect(Session session)
Disconnect from an address |
void |
init(Stack stack,
int localHostIndex)
Initializes the gateway |
void |
onAccept(Session session)
Invoked after successful socket accept |
void |
onInitialized(Session session)
Invoked after successful session connect handshake |
void |
pingSessions()
Sends a PING ProtocolService message to all registered sessions |
void |
send(org.resoa.grid.Message msg)
Sends a message to remote |
void |
setConnectionAccept(boolean accept)
Allow or stops the connection accept. |
| Method Detail |
|---|
void send(org.resoa.grid.Message msg)
throws java.io.IOException,
org.resoa.exception.ProtocolException
msg - the message to send
org.resoa.exception.ProtocolException
java.io.IOException
void connectToRemote(Session session)
throws java.io.IOException
session -
org.resoa.exception.ProtocolException
java.io.IOExceptionvoid onInitialized(Session session)
session - void onAccept(Session session)
session - void disconnect(Session session)
session -
org.resoa.exception.ProtocolExceptionvoid disconnect()
org.resoa.exception.ProtocolExceptionvoid setConnectionAccept(boolean accept)
void close(org.resoa.stack.config.HostStatus state,
java.lang.String infoMsg)
state - the new stateinfoMsg - a info message
void init(Stack stack,
int localHostIndex)
throws java.io.IOException
stack - localHostIndex - set to -1, if no remote connections should be accepted
java.io.IOExceptionint activeSessions()
void pingSessions()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||