org.apache.camel.management.mbean
Class ManagedService
java.lang.Object
org.apache.camel.management.mbean.ManagedService
- Direct Known Subclasses:
- ManagedConsumer, ManagedProducer, ManagedThrottlingInflightRoutePolicy
@ManagedResource(description="Managed Service")
public class ManagedService
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ManagedService
public ManagedService(CamelContext context,
Service service)
init
public void init(ManagementStrategy strategy)
getService
public Service getService()
getContext
public CamelContext getContext()
getRoute
public Route getRoute()
setRoute
public void setRoute(Route route)
getState
@ManagedAttribute(description="Service State")
public String getState()
getCamelId
@ManagedAttribute(description="Camel id")
public String getCamelId()
getRouteId
@ManagedAttribute(description="Route id")
public String getRouteId()
start
@ManagedOperation(description="Start Service")
public void start()
throws Exception
- Throws:
Exception
stop
@ManagedOperation(description="Stop Service")
public void stop()
throws Exception
- Throws:
Exception
isSupportSuspension
@ManagedAttribute(description="Whether this service supports suspension")
public boolean isSupportSuspension()
isSuspended
@ManagedAttribute(description="Whether this service is suspended")
public boolean isSuspended()
suspend
@ManagedOperation(description="Suspend Service")
public void suspend()
throws Exception
- Throws:
Exception
resume
@ManagedOperation(description="Resume Service")
public void resume()
throws Exception
- Throws:
Exception
Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.