org.apache.servicemix.jbi.framework
Interface ComponentMBean

All Superinterfaces:
javax.jbi.management.ComponentLifeCycleMBean, javax.jbi.management.LifeCycleMBean
All Known Implementing Classes:
ComponentMBeanImpl

public interface ComponentMBean
extends javax.jbi.management.ComponentLifeCycleMBean

Defines basic operations on the Compomnent


Field Summary
static String TYPE_BINDING_COMPONENT
           
static String TYPE_POJO
           
static String TYPE_SERVICE_ENGINE
           
 
Fields inherited from interface javax.jbi.management.LifeCycleMBean
SHUTDOWN, STARTED, STOPPED, UNKNOWN
 
Method Summary
 String getComponentType()
           
 String getName()
          Get the name of this component
 int getThrottlingInterval()
          Get the interval for throttling - number of Exchanges set before the throttling timeout is applied
 long getThrottlingTimeout()
          Get the throttling timeout
 boolean isExchangeThrottling()
          Is MessageExchange sender throttling enabled ?
 void setExchangeThrottling(boolean value)
          Set exchange throttling
 void setThrottlingInterval(int value)
          Set the throttling interval number of Exchanges set before the throttling timeout is applied
 void setThrottlingTimeout(long value)
          Set the throttling timout
 
Methods inherited from interface javax.jbi.management.ComponentLifeCycleMBean
getExtensionMBeanName
 
Methods inherited from interface javax.jbi.management.LifeCycleMBean
getCurrentState, shutDown, start, stop
 

Field Detail

TYPE_SERVICE_ENGINE

static final String TYPE_SERVICE_ENGINE
See Also:
Constant Field Values

TYPE_BINDING_COMPONENT

static final String TYPE_BINDING_COMPONENT
See Also:
Constant Field Values

TYPE_POJO

static final String TYPE_POJO
See Also:
Constant Field Values
Method Detail

getName

String getName()
Get the name of this component

Returns:
the name of this component

isExchangeThrottling

boolean isExchangeThrottling()
Is MessageExchange sender throttling enabled ?

Returns:
true if throttling enabled

setExchangeThrottling

void setExchangeThrottling(boolean value)
Set exchange throttling

Parameters:
value -

getThrottlingTimeout

long getThrottlingTimeout()
Get the throttling timeout

Returns:
throttling timeout (ms)

setThrottlingTimeout

void setThrottlingTimeout(long value)
Set the throttling timout

Parameters:
value - (ms)

getThrottlingInterval

int getThrottlingInterval()
Get the interval for throttling - number of Exchanges set before the throttling timeout is applied

Returns:
interval for throttling

setThrottlingInterval

void setThrottlingInterval(int value)
Set the throttling interval number of Exchanges set before the throttling timeout is applied

Parameters:
value -

getComponentType

String getComponentType()
Returns:
the component type (service-engine, binding-component)


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