org.apache.servicemix.jbi.view
Class DotViewService

java.lang.Object
  extended by org.apache.servicemix.jbi.management.BaseLifeCycle
      extended by org.apache.servicemix.jbi.management.BaseSystemService
          extended by org.apache.servicemix.jbi.view.DotViewService
All Implemented Interfaces:
javax.jbi.management.LifeCycleMBean, MBeanInfoProvider, DotViewServiceMBean, org.springframework.beans.factory.InitializingBean

public class DotViewService
extends BaseSystemService
implements org.springframework.beans.factory.InitializingBean, DotViewServiceMBean

Author:
gnodet

Field Summary
 
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
DotViewService()
           
 
Method Summary
 void afterPropertiesSet()
           
 String createEndpointGraph()
           
 String createFlowGraph()
           
 JBIContainer getContainer()
           
 String getDescription()
          Get the Description of the item
 MBeanOperationInfo[] getOperationInfos()
          Get an array of MBeanOperationInfo
protected  Class getServiceMBean()
           
 boolean isAutoStart()
           
 void setAutoStart(boolean autoStart)
           
 void setContainer(JBIContainer container)
           
 void start()
          Start the item.
 void stop()
          Stop the item.
 
Methods inherited from class org.apache.servicemix.jbi.management.BaseSystemService
getName, getType, init, shutDown
 
Methods inherited from class org.apache.servicemix.jbi.management.BaseLifeCycle
firePropertyChanged, getAttributeInfos, getCurrentState, getObjectToManage, getSubType, init, isInitialized, isShutDown, isStarted, isStopped, isUnknown, setCurrentState, setPropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DotViewService

public DotViewService()
Method Detail

isAutoStart

public boolean isAutoStart()

setAutoStart

public void setAutoStart(boolean autoStart)

getContainer

public JBIContainer getContainer()
Overrides:
getContainer in class BaseSystemService

setContainer

public void setContainer(JBIContainer container)

getServiceMBean

protected Class getServiceMBean()
Specified by:
getServiceMBean in class BaseSystemService

getDescription

public String getDescription()
Description copied from interface: MBeanInfoProvider
Get the Description of the item

Specified by:
getDescription in interface MBeanInfoProvider
Returns:
the description

start

public void start()
           throws javax.jbi.JBIException
Description copied from class: BaseLifeCycle
Start the item.

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

stop

public void stop()
          throws javax.jbi.JBIException
Description copied from class: BaseLifeCycle
Stop the item. This suspends current messaging activities.

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

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception

createEndpointGraph

public String createEndpointGraph()
                           throws Exception
Specified by:
createEndpointGraph in interface DotViewServiceMBean
Throws:
Exception

createFlowGraph

public String createFlowGraph()
                       throws Exception
Specified by:
createFlowGraph in interface DotViewServiceMBean
Throws:
Exception

getOperationInfos

public MBeanOperationInfo[] getOperationInfos()
                                       throws JMException
Get an array of MBeanOperationInfo

Specified by:
getOperationInfos in interface MBeanInfoProvider
Overrides:
getOperationInfos in class BaseLifeCycle
Returns:
array of OperationInfos
Throws:
JMException


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