public abstract class ResourceReloadStrategySupport
extends org.apache.camel.support.service.ServiceSupport
implements org.apache.camel.spi.ResourceReloadStrategy
ResourceReloadStrategy SPI plugins.| Constructor and Description |
|---|
ResourceReloadStrategySupport() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected void |
doStop() |
org.apache.camel.CamelContext |
getCamelContext() |
int |
getFailedCounter() |
int |
getReloadCounter() |
org.apache.camel.spi.ResourceReload |
getResourceReload() |
protected void |
incFailedCounter() |
protected void |
incSucceededCounter() |
void |
resetCounters() |
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
void |
setFailed(int failed) |
void |
setResourceReload(org.apache.camel.spi.ResourceReload resourceReload) |
void |
setSucceeded(int succeeded) |
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic org.apache.camel.CamelContext getCamelContext()
getCamelContext in interface org.apache.camel.CamelContextAwarepublic void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext in interface org.apache.camel.CamelContextAwarepublic org.apache.camel.spi.ResourceReload getResourceReload()
getResourceReload in interface org.apache.camel.spi.ResourceReloadStrategypublic void setResourceReload(org.apache.camel.spi.ResourceReload resourceReload)
setResourceReload in interface org.apache.camel.spi.ResourceReloadStrategy@ManagedAttribute(description="Number of reloads succeeded") public int getReloadCounter()
getReloadCounter in interface org.apache.camel.spi.ResourceReloadStrategy@ManagedAttribute(description="Number of reloads failed") public int getFailedCounter()
getFailedCounter in interface org.apache.camel.spi.ResourceReloadStrategypublic void setSucceeded(int succeeded)
public void setFailed(int failed)
@ManagedOperation(description="Reset counters") public void resetCounters()
resetCounters in interface org.apache.camel.spi.ResourceReloadStrategyprotected void incSucceededCounter()
protected void incFailedCounter()
protected void doStart()
throws Exception
doStart in class org.apache.camel.support.service.BaseServiceExceptionApache Camel