org.teiid.jboss
Class JBossLifeCycleListener

java.lang.Object
  extended by org.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended by org.jboss.system.ServiceMBeanSupport
          extended by org.teiid.jboss.JBossLifeCycleListener
All Implemented Interfaces:
java.util.EventListener, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, javax.management.NotificationListener, org.jboss.kernel.spi.dependency.KernelControllerContextAware, org.jboss.system.Service, org.jboss.system.ServiceMBean, ContainerLifeCycleListener

public class JBossLifeCycleListener
extends org.jboss.system.ServiceMBeanSupport
implements javax.management.NotificationListener, ContainerLifeCycleListener


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.teiid.deployers.ContainerLifeCycleListener
ContainerLifeCycleListener.LifeCycleEventListener
 
Field Summary
 java.lang.String START_NOTIFICATION_TYPE
           
 java.lang.String STOP_NOTIFICATION_TYPE
          The JMX notification event type sent on begin of the server shutdown
 
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
JBossLifeCycleListener()
           
 
Method Summary
 void addListener(ContainerLifeCycleListener.LifeCycleEventListener listener)
           
 void handleNotification(javax.management.Notification msg, java.lang.Object handback)
           
 boolean isShutdownInProgress()
           
 
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, pojoChange, pojoCreate, pojoDestroy, pojoStart, pojoStop, postDeregister, postRegister, preDeregister, preRegister, setKernelControllerContext, start, startService, stop, stopService, unsetKernelControllerContext
 
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
 

Field Detail

START_NOTIFICATION_TYPE

public final java.lang.String START_NOTIFICATION_TYPE
See Also:
Constant Field Values

STOP_NOTIFICATION_TYPE

public final java.lang.String STOP_NOTIFICATION_TYPE
The JMX notification event type sent on begin of the server shutdown

See Also:
Constant Field Values
Constructor Detail

JBossLifeCycleListener

public JBossLifeCycleListener()
Method Detail

handleNotification

public void handleNotification(javax.management.Notification msg,
                               java.lang.Object handback)
Specified by:
handleNotification in interface javax.management.NotificationListener

isShutdownInProgress

public boolean isShutdownInProgress()
Specified by:
isShutdownInProgress in interface ContainerLifeCycleListener

addListener

public void addListener(ContainerLifeCycleListener.LifeCycleEventListener listener)
Specified by:
addListener in interface ContainerLifeCycleListener


Copyright © 2011. All Rights Reserved.