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
 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(Properties props)
           
 void start()
           
 void stop()
           
 
Methods inherited from interface org.apache.activeio.xnet.SocketService
getName, service
 

Method Detail

init

void init(Properties props)
          throws Exception
Throws:
Exception

start

void start()
           throws ServiceException
Throws:
ServiceException

stop

void stop()
          throws ServiceException
Throws:
ServiceException

getIP

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.



Copyright © 2005-2014 The Apache Software Foundation. All Rights Reserved.