org.openejb.server.ejbd
Class EjbServer

java.lang.Object
  extended by org.openejb.server.ejbd.EjbServer
All Implemented Interfaces:
ServerService, Service

public class EjbServer
extends java.lang.Object
implements ServerService

Since:
11/25/2001
Author:
David Blevins

Constructor Summary
EjbServer()
           
 
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 inputStream, java.io.OutputStream outputStream)
           
 void service(java.net.Socket socket)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EjbServer

public EjbServer()
Method Detail

init

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

start

public void start()
           throws ServiceException
Specified by:
start in interface ServerService
Throws:
ServiceException

stop

public void stop()
          throws ServiceException
Specified by:
stop in interface ServerService
Throws:
ServiceException

getName

public java.lang.String getName()
Description copied from interface: ServerService
Gets the name of the service. Used for display purposes only

Specified by:
getName in interface ServerService

getPort

public int getPort()
Description copied from interface: ServerService
Gets the port number that the daemon is listening on.

Specified by:
getPort in interface ServerService

service

public void service(java.net.Socket socket)
             throws ServiceException,
                    java.io.IOException
Specified by:
service in interface ServerService
Throws:
ServiceException
java.io.IOException

service

public void service(java.io.InputStream inputStream,
                    java.io.OutputStream outputStream)
             throws ServiceException,
                    java.io.IOException
Specified by:
service in interface ServerService
Throws:
ServiceException
java.io.IOException

getIP

public java.lang.String getIP()
Description copied from interface: ServerService
Gets the ip number that the daemon is listening on.

Specified by:
getIP in interface ServerService


Copyright © 1999-2011 OpenEJB. All Rights Reserved.