org.jmonit.features
Class Concurrency
java.lang.Object
org.jmonit.features.AbstractFeature<Concurrency>
org.jmonit.features.Concurrency
- All Implemented Interfaces:
- MonitoringEventListener, Visitable, Plugin<Concurrency>
public class Concurrency
- extends AbstractFeature<Concurrency>
- implements Visitable
Computes some statistics from monitored datas.
- Author:
- Nicolas De Loof
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FACTORY
public static final Factory<Concurrency> FACTORY
Concurrency
public Concurrency()
onMonitoringEvent
public void onMonitoringEvent(MonitoringEvent event)
- A monitoring event occured and has been dispatched on the bus
- Specified by:
onMonitoringEvent
in interface MonitoringEventListener
- See Also:
MonitoringEventListener.onMonitoringEvent(org.jmonit.events.MonitoringEvent)
getActives
public int getActives()
- Returns:
- the actives
getMaxActives
public int getMaxActives()
- Returns:
- the maxActives
getLoad
public double getLoad()
- Returns:
- the monitor load : active time / total time used
clear
public void clear()
getFeature
public Concurrency getFeature()
- A feature is identified by the
class
it exposes to the
monitored application.
- Specified by:
getFeature
in interface Plugin<Concurrency>
- Returns:
- the public API of this feature
- See Also:
Plugin.getFeature()
accept
public void accept(Visitor visitor)
- Entry point for an object that accepts visitors.
- Specified by:
accept
in interface Visitable
- See Also:
Visitable.accept(org.jmonit.reporting.Visitor)
toString
public java.lang.String toString()
-
- Overrides:
toString
in class java.lang.Object
- See Also:
Object.toString()
Copyright © 2007 Nicolas De Loof. All Rights Reserved.