Package org.apache.activeio.xnet
Interface ServerService
-
- All Superinterfaces:
SocketService
- All Known Implementing Classes:
ServiceAccessController
,ServiceDaemon
,ServiceLogger
,ServicePool
public interface ServerService extends SocketService
The Server will call the following methods. newInstance() init( port, properties) start() stop() All ServerService implementations must have a no argument constructor.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getIP()
Gets the ip number that the daemon is listening on.int
getPort()
Gets the port number that the daemon is listening on.void
init(java.util.Properties props)
void
start()
void
stop()
-
Methods inherited from interface org.apache.activeio.xnet.SocketService
getName, service
-
-
-
-
Method Detail
-
init
void init(java.util.Properties props) throws java.lang.Exception
- Throws:
java.lang.Exception
-
start
void start() throws ServiceException
- Throws:
ServiceException
-
stop
void stop() throws ServiceException
- Throws:
ServiceException
-
getIP
java.lang.String getIP()
Gets the ip number that the daemon is listening on.
-
getPort
int getPort()
Gets the port number that the daemon is listening on.
-
-