org.apache.openejb.server.ejbd
Class KeepAliveServer

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

public class KeepAliveServer
extends Object
implements ServerService

Version:
$Rev$ $Date$

Nested Class Summary
 class KeepAliveServer.Input
           
 class KeepAliveServer.KeepAliveTimer
           
 class KeepAliveServer.Output
           
 
Constructor Summary
KeepAliveServer()
           
KeepAliveServer(ServerService service)
          Deprecated. 
KeepAliveServer(ServerService service, boolean gzip)
           
 
Method Summary
 org.apache.openejb.server.ejbd.KeepAliveServer.Session addSession(org.apache.openejb.server.ejbd.KeepAliveServer.Session session)
           
 void closeSessions()
           
 String getIP()
           
 String getName()
           
 int getPort()
           
 void init(Properties props)
           
 org.apache.openejb.server.ejbd.KeepAliveServer.Session removeSession(org.apache.openejb.server.ejbd.KeepAliveServer.Session session)
           
 void service(InputStream in, OutputStream out)
           
 void service(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

KeepAliveServer

public KeepAliveServer()

KeepAliveServer

@Deprecated
public KeepAliveServer(ServerService service)
Deprecated. 


KeepAliveServer

public KeepAliveServer(ServerService service,
                       boolean gzip)
Method Detail

closeSessions

public void closeSessions()

addSession

public org.apache.openejb.server.ejbd.KeepAliveServer.Session addSession(org.apache.openejb.server.ejbd.KeepAliveServer.Session session)

removeSession

public org.apache.openejb.server.ejbd.KeepAliveServer.Session removeSession(org.apache.openejb.server.ejbd.KeepAliveServer.Session session)

service

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

service

public void service(InputStream in,
                    OutputStream out)
             throws ServiceException,
                    IOException
Specified by:
service in interface ServerService
Throws:
ServiceException
IOException

getIP

public String getIP()
Specified by:
getIP in interface ServerService

getName

public String getName()
Specified by:
getName in interface ServerService

getPort

public int getPort()
Specified by:
getPort in interface ServerService

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

init

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


Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.