|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An ITunnelServer is responsible for accepting connections from ITunnels and for setting up those connections. Setting up a connection involves creating an ITunnel that can receive messages from the connecting ITunnel, and configuring the created ITunnel so that it uses the correct ITunnelCodec and ITunnelPackers.
Method Summary | |
void |
addMessageConsumer(IMessageConsumer consumer)
Adds the IMessageConsumer that receives messages from all connections that this ITunnelServer has set up. |
void |
addTunnelServerListener(ITunnelServerListener listener)
|
void |
finalize()
Performs cleanup for this ITunnelServer. |
ITunnel |
getTunnel(int index)
Returns the ITunnel with the provided index. |
int |
getTunnelCount()
Returns the number of ITunnels that this ITunnelServer has created. |
java.util.Iterator |
getTunnels()
Returns an Iterator for all ITunnels that this ITunnelServer has created. |
void |
initialize()
Initializes the ITunnelServer. |
void |
registerCodec(java.lang.Class codec)
Registers an ITunnelCodec that can be used when setting up a connection. |
void |
registerPacker(java.lang.Class packer)
Registers an ITunnelPacker that can be used when setting up a connection. |
void |
removeMessageConsumer(IMessageConsumer consumer)
Removes the IMessageConsumer all connections that this ITunnelServer has set up. |
void |
removeTunnelServerListener(ITunnelServerListener listener)
|
Method Detail |
public void initialize() throws java.lang.IllegalStateException, TunnelException
java.lang.IllegalStateException
TunnelException
public void finalize() throws java.lang.IllegalStateException, TunnelException
java.lang.IllegalStateException
TunnelException
public void registerPacker(java.lang.Class packer)
public void registerCodec(java.lang.Class codec)
public void addMessageConsumer(IMessageConsumer consumer)
public void removeMessageConsumer(IMessageConsumer consumer)
public ITunnel getTunnel(int index)
public java.util.Iterator getTunnels()
public int getTunnelCount()
public void addTunnelServerListener(ITunnelServerListener listener)
public void removeTunnelServerListener(ITunnelServerListener listener)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |