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
 java.lang.String getIP()
          Gets the ip number that the daemon is listening on.
 java.lang.String getName()
          Gets the name of the service.
 int getPort()
          Gets the port number that the daemon is listening on.
 void init(java.util.Properties props)
           
 void service(java.io.InputStream in, java.io.OutputStream out)
           
 void service(java.net.Socket socket)
           
 void start()
           
 void stop()
           
 

Method Detail

init

void init(java.util.Properties props)
          throws java.lang.Exception
Specified by:
init in interface Service
Throws:
java.lang.Exception

start

void start()
           throws ServiceException
Throws:
ServiceException

stop

void stop()
          throws ServiceException
Throws:
ServiceException

service

void service(java.io.InputStream in,
             java.io.OutputStream out)
             throws ServiceException,
                    java.io.IOException
Throws:
ServiceException
java.io.IOException

service

void service(java.net.Socket socket)
             throws ServiceException,
                    java.io.IOException
Throws:
ServiceException
java.io.IOException

getName

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


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.



Copyright © 1999-2011 OpenEJB. All Rights Reserved.