org.openejb.server
Interface ServerService

All Superinterfaces:
Service, SocketService
All Known Implementing Classes:
AdminDaemon, EjbServer, ServiceAccessController, ServiceLogger, ServicePool, TelnetServer

public interface ServerService
extends Service, 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.openejb.server.SocketService
getName, service
 

Method Detail

init

public void init(Properties props)
          throws Exception
Specified by:
init in interface Service
Throws:
Exception

start

public void start()
           throws ServiceException
Throws:
ServiceException

stop

public void stop()
          throws ServiceException
Throws:
ServiceException

getIP

public String getIP()
Gets the ip number that the daemon is listening on.


getPort

public int getPort()
Gets the port number that the daemon is listening on.



Copyright © 1999-2005 OpenEJB. All Rights Reserved.