org.apache.camel.management.mbean
Class ManagedCamelContext

java.lang.Object
  extended by org.apache.camel.management.mbean.ManagedCamelContext

@ManagedResource(description="Managed CamelContext")
public class ManagedCamelContext
extends Object

Version:
$Revision: 892595 $

Constructor Summary
ManagedCamelContext(CamelContext context)
           
 
Method Summary
 String getCamelId()
           
 String getCamelVersion()
           
 CamelContext getContext()
           
 Integer getInflightExchanges()
           
 Map<String,String> getProperties()
           
 String getState()
           
 long getTimeout()
           
 TimeUnit getTimeUnit()
           
 Boolean getTracing()
           
 void init(ManagementStrategy strategy)
           
 boolean isShutdownNowOnTimeout()
           
 Object requestBody(String endpointUri, String body)
           
 void sendBody(String endpointUri, String body)
           
 void setShutdownNowOnTimeout(boolean shutdownNowOnTimeout)
           
 void setTimeout(long timeout)
           
 void setTimeUnit(TimeUnit timeUnit)
           
 void setTracing(Boolean tracing)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagedCamelContext

public ManagedCamelContext(CamelContext context)
Method Detail

init

public void init(ManagementStrategy strategy)

getContext

public CamelContext getContext()

getCamelId

@ManagedAttribute(description="Camel id")
public String getCamelId()

getCamelVersion

@ManagedAttribute(description="Camel Version")
public String getCamelVersion()

getState

@ManagedAttribute(description="Camel State")
public String getState()

getProperties

@ManagedAttribute(description="Camel Properties")
public Map<String,String> getProperties()

getTracing

@ManagedAttribute(description="Tracing")
public Boolean getTracing()

setTracing

@ManagedAttribute(description="Tracing")
public void setTracing(Boolean tracing)

getInflightExchanges

@ManagedAttribute(description="Current number of inflight Exchanges")
public Integer getInflightExchanges()

setTimeout

@ManagedAttribute(description="Shutdown timeout")
public void setTimeout(long timeout)

getTimeout

@ManagedAttribute(description="Shutdown timeout")
public long getTimeout()

setTimeUnit

@ManagedAttribute(description="Shutdown timeout time unit")
public void setTimeUnit(TimeUnit timeUnit)

getTimeUnit

@ManagedAttribute(description="Shutdown timeout time unit")
public TimeUnit getTimeUnit()

setShutdownNowOnTimeout

@ManagedAttribute(description="Whether to force shutdown now when a timeout occurred")
public void setShutdownNowOnTimeout(boolean shutdownNowOnTimeout)

isShutdownNowOnTimeout

@ManagedAttribute(description="Whether to force shutdown now when a timeout occurred")
public boolean isShutdownNowOnTimeout()

start

@ManagedOperation(description="Start Camel")
public void start()
           throws Exception
Throws:
Exception

stop

@ManagedOperation(description="Stop Camel")
public void stop()
          throws Exception
Throws:
Exception

sendBody

@ManagedOperation(description="Send body (in only)")
public void sendBody(String endpointUri,
                                                 String body)
              throws Exception
Throws:
Exception

requestBody

@ManagedOperation(description="Request body (in out)")
public Object requestBody(String endpointUri,
                                                      String body)
                   throws Exception
Throws:
Exception


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