org.apache.servicemix.jbi.management
Class BaseSystemService

java.lang.Object
  extended by org.apache.servicemix.jbi.management.BaseLifeCycle
      extended by org.apache.servicemix.jbi.management.BaseSystemService
All Implemented Interfaces:
javax.jbi.management.LifeCycleMBean, MBeanInfoProvider
Direct Known Subclasses:
AbstractAuditor, AdminCommandsService, AutoDeploymentService, ClientFactory, DefaultBroker, DeploymentService, DotViewService, EnvironmentContext, InstallationService, LogService, ManagementContext, Registry, StatisticsService

public abstract class BaseSystemService
extends BaseLifeCycle


Field Summary
protected  JBIContainer container
           
 
Fields inherited from class org.apache.servicemix.jbi.management.BaseLifeCycle
currentState, INITIALIZED, listener
 
Fields inherited from interface javax.jbi.management.LifeCycleMBean
SHUTDOWN, STARTED, STOPPED, UNKNOWN
 
Constructor Summary
BaseSystemService()
           
 
Method Summary
 JBIContainer getContainer()
           
 String getName()
          Get the name of the item
protected abstract  Class getServiceMBean()
           
 String getType()
          Get the type of the item
 void init(JBIContainer cont)
           
 void shutDown()
          Shut down the item.
 
Methods inherited from class org.apache.servicemix.jbi.management.BaseLifeCycle
firePropertyChanged, getAttributeInfos, getCurrentState, getObjectToManage, getOperationInfos, getSubType, init, isInitialized, isShutDown, isStarted, isStopped, isUnknown, setCurrentState, setPropertyChangeListener, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.servicemix.jbi.management.MBeanInfoProvider
getDescription
 

Field Detail

container

protected JBIContainer container
Constructor Detail

BaseSystemService

public BaseSystemService()
Method Detail

getName

public String getName()
Get the name of the item

Specified by:
getName in interface MBeanInfoProvider
Overrides:
getName in class BaseLifeCycle
Returns:
the name

getType

public String getType()
Get the type of the item

Specified by:
getType in interface MBeanInfoProvider
Overrides:
getType in class BaseLifeCycle
Returns:
the type

init

public void init(JBIContainer cont)
          throws javax.jbi.JBIException
Throws:
javax.jbi.JBIException

shutDown

public void shutDown()
              throws javax.jbi.JBIException
Description copied from class: BaseLifeCycle
Shut down the item. The releases resources, preparatory to uninstallation.

Specified by:
shutDown in interface javax.jbi.management.LifeCycleMBean
Overrides:
shutDown in class BaseLifeCycle
Throws:
javax.jbi.JBIException - if the item fails to shut down.

getServiceMBean

protected abstract Class getServiceMBean()

getContainer

public JBIContainer getContainer()


Copyright © 2005-2010 The Apache Software Foundation. All Rights Reserved.