org.apache.geronimo.openejb
Class EjbDaemonGBean

java.lang.Object
  extended by org.apache.geronimo.openejb.EjbDaemonGBean
All Implemented Interfaces:
GBeanLifecycle, NetworkConnector

public class EjbDaemonGBean
extends Object
implements NetworkConnector, GBeanLifecycle


Field Summary
static GBeanInfo GBEAN_INFO
           
 
Constructor Summary
EjbDaemonGBean()
           
 
Method Summary
 void doFail()
          Fails the GBean.
 void doStart()
          Starts the GBean.
 void doStop()
          Stops the target.
static GBeanInfo getGBeanInfo()
           
 String getHost()
          Gets the hostname/IP that this connector listens on.
 InetSocketAddress getListenAddress()
          Every connector must specify a property of type InetSocketAddress because we use that to identify the network services to print a list during startup.
 int getPort()
          Gets the network port that this connector listens on.
 String getProtocol()
          Gets the network protocol that this connector handles.
 int getThreads()
           
 void setHost(String host)
          Sets the hostname/IP that this connector listens on.
 void setPort(int port)
          Sets the network port that this connector listens on.
 void setThreads(int threads)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GBEAN_INFO

public static final GBeanInfo GBEAN_INFO
Constructor Detail

EjbDaemonGBean

public EjbDaemonGBean()
Method Detail

getProtocol

public String getProtocol()
Description copied from interface: NetworkConnector
Gets the network protocol that this connector handles.

Specified by:
getProtocol in interface NetworkConnector

getHost

public String getHost()
Description copied from interface: NetworkConnector
Gets the hostname/IP that this connector listens on.

Specified by:
getHost in interface NetworkConnector

setHost

public void setHost(String host)
Description copied from interface: NetworkConnector
Sets the hostname/IP that this connector listens on. This is typically most useful for machines with multiple network cards, but can be used to limit a connector to only listen for connections from the local machine (127.0.0.1). To listen on all available network interfaces, specify an address of 0.0.0.0.

Specified by:
setHost in interface NetworkConnector

getPort

public int getPort()
Description copied from interface: NetworkConnector
Gets the network port that this connector listens on.

Specified by:
getPort in interface NetworkConnector

setPort

public void setPort(int port)
Description copied from interface: NetworkConnector
Sets the network port that this connector listens on.

Specified by:
setPort in interface NetworkConnector

getThreads

public int getThreads()

setThreads

public void setThreads(int threads)

getListenAddress

public InetSocketAddress getListenAddress()
Description copied from interface: NetworkConnector
Every connector must specify a property of type InetSocketAddress because we use that to identify the network services to print a list during startup. However, this can be read-only since the host and port are set separately using setHost and setPort.

Specified by:
getListenAddress in interface NetworkConnector

doStart

public void doStart()
             throws Exception
Description copied from interface: GBeanLifecycle
Starts the GBean. This informs the GBean that it is about to transition to the running state.

Specified by:
doStart in interface GBeanLifecycle
Throws:
Exception - if the target failed to start; this will cause a transition to the failed state

doStop

public void doStop()
            throws Exception
Description copied from interface: GBeanLifecycle
Stops the target. This informs the GBean that it is about to transition to the stopped state.

Specified by:
doStop in interface GBeanLifecycle
Throws:
Exception - if the target failed to stop; this will cause a transition to the failed state

doFail

public void doFail()
Description copied from interface: GBeanLifecycle
Fails the GBean. This informs the GBean that it is about to transition to the failed state.

Specified by:
doFail in interface GBeanLifecycle

getGBeanInfo

public static GBeanInfo getGBeanInfo()


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.