org.openejb.server
Interface ServerService

All Superinterfaces:
Service
All Known Implementing Classes:
AdminDaemon, EjbServer, HttpEjbServer, HttpServer, ServiceAccessController, ServiceDaemon, ServiceLogger, ServicePool, TelnetServer

public interface ServerService
extends Service

The Server will call the following methods. newInstance() init( port, properties) start() stop() All ServerService implementations must have a no argument constructor.

Author:
David Blevins

Method Summary
 String getIP()
          Gets the ip number that the daemon is listening on.
 String getName()
          Gets the name of the service.
 int getPort()
          Gets the port number that the daemon is listening on.
 void init(Properties props)
           
 void service(InputStream in, OutputStream out)
           
 void service(Socket socket)
           
 void start()
           
 void stop()
           
 

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

service

public void service(InputStream in,
                    OutputStream out)
             throws ServiceException,
                    IOException
Throws:
ServiceException
IOException

service

public void service(Socket socket)
             throws ServiceException,
                    IOException
Throws:
ServiceException
IOException

getName

public String getName()
Gets the name of the service. Used for display purposes only


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-2007 OpenEJB. All Rights Reserved.