org.openejb.server.admin
Class AdminDaemon
java.lang.Object
org.openejb.server.admin.AdminDaemon
- All Implemented Interfaces:
- org.activeio.xnet.ServerService, org.activeio.xnet.SocketService
- public class AdminDaemon
- extends Object
- implements org.activeio.xnet.ServerService
This is the base class for orcistrating the other daemons
which actually accept and react to calls coming in from
different protocols or channels.
To perform this task, this class will
newInstance()
init( port, properties)
start()
stop()
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AdminDaemon
public AdminDaemon(ContainerIndex index)
init
public void init(Properties props)
throws Exception
- Specified by:
init
in interface org.activeio.xnet.ServerService
- Throws:
Exception
service
public void service(Socket socket)
throws org.activeio.xnet.ServiceException,
IOException
- Specified by:
service
in interface org.activeio.xnet.SocketService
- Throws:
org.activeio.xnet.ServiceException
IOException
start
public void start()
throws org.activeio.xnet.ServiceException
- Specified by:
start
in interface org.activeio.xnet.ServerService
- Throws:
org.activeio.xnet.ServiceException
stop
public void stop()
throws org.activeio.xnet.ServiceException
- Specified by:
stop
in interface org.activeio.xnet.ServerService
- Throws:
org.activeio.xnet.ServiceException
getPort
public int getPort()
- Gets the port number that the
daemon is listening on.
- Specified by:
getPort
in interface org.activeio.xnet.ServerService
getIP
public String getIP()
- Specified by:
getIP
in interface org.activeio.xnet.ServerService
getName
public String getName()
- Specified by:
getName
in interface org.activeio.xnet.SocketService
Copyright © 1999-2006 OpenEJB. All Rights Reserved.