org.springframework.integration.monitor
Class LifecycleMessageSourceMetrics
java.lang.Object
   org.springframework.integration.monitor.LifecycleMessageSourceMetrics
org.springframework.integration.monitor.LifecycleMessageSourceMetrics
- All Implemented Interfaces: 
- org.springframework.context.Lifecycle, MessageSourceMetrics
- @ManagedResource
public class LifecycleMessageSourceMetrics 
- extends java.lang.Object- implements MessageSourceMetrics, org.springframework.context.Lifecycle
A MessageSourceMetrics that exposes in addition the Lifecycle interface. The lifecycle methods can
 be used to start and stop polling endpoints, for instance, in a live system.
- Since:
- 2.0
- Author:
- Dave Syer
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
LifecycleMessageSourceMetrics
public LifecycleMessageSourceMetrics(org.springframework.context.Lifecycle lifecycle,
                                     MessageSourceMetrics delegate)
reset
@ManagedOperation
public void reset()
- 
- Specified by:
- resetin interface- MessageSourceMetrics
 
- 
 
isRunning
@ManagedAttribute
public boolean isRunning()
- 
- Specified by:
- isRunningin interface- org.springframework.context.Lifecycle
 
- 
 
start
@ManagedOperation
public void start()
- 
- Specified by:
- startin interface- org.springframework.context.Lifecycle
 
- 
 
stop
@ManagedOperation
public void stop()
- 
- Specified by:
- stopin interface- org.springframework.context.Lifecycle
 
- 
 
getName
public java.lang.String getName()
- 
- Specified by:
- getNamein interface- MessageSourceMetrics
 
- 
 
getSource
public java.lang.String getSource()
- 
- Specified by:
- getSourcein interface- MessageSourceMetrics
 
- 
 
getMessageCount
public int getMessageCount()
- 
- Specified by:
- getMessageCountin interface- MessageSourceMetrics
 
- 
- Returns:
- int
- See Also:
- MessageSourceMetrics.getMessageCount()