|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jtge.engine.net.ServerFactory
Adapts a peer factory to provide late initialization for a server.
Constructor Summary | |
ServerFactory(IInputOutputFactoryFactory factory)
Create a server factory. |
Method Summary | |
void |
close()
Perform a close operation. |
IClosable |
create(ISessionManager manager)
Create a peer. |
void |
open(int port)
Open the server listening on a given port. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ServerFactory(IInputOutputFactoryFactory factory)
factory
- a factory for input-output factoriesMethod Detail |
public final IClosable create(ISessionManager manager)
create
in interface IPeerFactory
manager
- the session manager
public final void open(int port)
open
in interface IServer
port
- the host portpublic final void close()
close
in interface IClosable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |