public abstract class SwitchableContainerStrategy extends java.lang.Object implements ContainerStrategy, SwitchableContainerStrategyMBean
| Modifier | Constructor and Description |
|---|---|
protected |
SwitchableContainerStrategy() |
protected |
SwitchableContainerStrategy(boolean defaultEnable) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear(org.apache.camel.CamelContext context) |
void |
clear(org.apache.camel.Route route) |
void |
clearForContext(java.lang.String context) |
void |
clearForRoute(java.lang.String route) |
void |
disable() |
void |
disable(org.apache.camel.CamelContext context) |
void |
disable(org.apache.camel.Route route) |
void |
disableForContext(java.lang.String context) |
void |
disableForRoute(java.lang.String route) |
void |
enable() |
void |
enable(org.apache.camel.CamelContext context) |
void |
enable(org.apache.camel.Route route) |
void |
enableForContext(java.lang.String context) |
void |
enableForRoute(java.lang.String route) |
java.lang.String |
getConfiguration() |
java.util.Map<java.lang.String,?> |
getProperties() |
java.lang.String |
getStrategy() |
java.lang.Boolean |
isContextEnabled(org.apache.camel.Exchange exchange) |
boolean |
isEnabled() |
boolean |
isEnabled(org.apache.camel.Exchange exchange) |
java.lang.Boolean |
isRouteEnabled(org.apache.camel.Exchange exchange) |
void |
reset() |
void |
setConfiguration(java.lang.String configuration) |
void |
setEnabled(boolean enabled) |
void |
update(java.util.Map<java.lang.String,java.lang.String> properties) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmanageprotected SwitchableContainerStrategy()
protected SwitchableContainerStrategy(boolean defaultEnable)
public java.lang.String getStrategy()
public void update(java.util.Map<java.lang.String,java.lang.String> properties)
update in interface ContainerStrategypublic java.util.Map<java.lang.String,?> getProperties()
public java.lang.String getConfiguration()
getConfiguration in interface SwitchableContainerStrategyMBeanpublic void setConfiguration(java.lang.String configuration)
setConfiguration in interface SwitchableContainerStrategyMBeanpublic void reset()
public void enable()
public void disable()
@ManagedAttribute(description="Is service enabled") public boolean isEnabled()
isEnabled in interface SwitchableContainerStrategyMBean@ManagedAttribute(description="Is service enabled") public void setEnabled(boolean enabled)
setEnabled in interface SwitchableContainerStrategyMBeanpublic void enableForContext(java.lang.String context)
enableForContext in interface SwitchableContainerStrategyMBeanpublic void disableForContext(java.lang.String context)
disableForContext in interface SwitchableContainerStrategyMBeanpublic void clearForContext(java.lang.String context)
clearForContext in interface SwitchableContainerStrategyMBeanpublic void enableForRoute(java.lang.String route)
enableForRoute in interface SwitchableContainerStrategyMBeanpublic void disableForRoute(java.lang.String route)
disableForRoute in interface SwitchableContainerStrategyMBeanpublic void clearForRoute(java.lang.String route)
clearForRoute in interface SwitchableContainerStrategyMBeanpublic void enable(org.apache.camel.CamelContext context)
public void disable(org.apache.camel.CamelContext context)
public void clear(org.apache.camel.CamelContext context)
public void enable(org.apache.camel.Route route)
public void disable(org.apache.camel.Route route)
public void clear(org.apache.camel.Route route)
public boolean isEnabled(org.apache.camel.Exchange exchange)
public java.lang.Boolean isRouteEnabled(org.apache.camel.Exchange exchange)
public java.lang.Boolean isContextEnabled(org.apache.camel.Exchange exchange)
Copyright © 2014 Red Hat. All Rights Reserved.