org.jboss.soa.esb.listeners.gateway
Class GatewayListenerControllerService

java.lang.Object
  extended by org.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended by org.jboss.system.ServiceMBeanSupport
          extended by org.jboss.soa.esb.listeners.gateway.GatewayListenerControllerService
All Implemented Interfaces:
javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, GatewayListenerControllerServiceMBean, org.jboss.system.Service, org.jboss.system.ServiceMBean

public class GatewayListenerControllerService
extends org.jboss.system.ServiceMBeanSupport
implements GatewayListenerControllerServiceMBean

Service to manage the gateways when deployed to the appserver.

Author:
Kurt Stam

Field Summary
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
GatewayListenerControllerService()
           
 
Method Summary
 java.lang.String getGatewayConfigFile()
          Gets the gateway config file.
 void setGatewayConfigFile(java.lang.String gatewayConfigFile)
          Sets the gateway config file.
protected  void startService()
          Starts the gateways.
protected  void stopService()
          Stops the gateways.
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, createService, destroy, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Constructor Detail

GatewayListenerControllerService

public GatewayListenerControllerService()
Method Detail

startService

protected void startService()
                     throws java.lang.Exception
Starts the gateways.

Overrides:
startService in class org.jboss.system.ServiceMBeanSupport
Throws:
java.lang.Exception

stopService

protected void stopService()
                    throws java.lang.Exception
Stops the gateways.

Overrides:
stopService in class org.jboss.system.ServiceMBeanSupport
Throws:
java.lang.Exception

getGatewayConfigFile

public java.lang.String getGatewayConfigFile()
Gets the gateway config file. This can be set in the jboss-service.xml.

Specified by:
getGatewayConfigFile in interface GatewayListenerControllerServiceMBean

setGatewayConfigFile

public void setGatewayConfigFile(java.lang.String gatewayConfigFile)
Sets the gateway config file.

Specified by:
setGatewayConfigFile in interface GatewayListenerControllerServiceMBean