org.jmonit.features
Class Concurrency

java.lang.Object
  extended by org.jmonit.features.AbstractFeature<Concurrency>
      extended by 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

Field Summary
static Factory<Concurrency> FACTORY
           
 
Constructor Summary
Concurrency()
           
 
Method Summary
 void accept(Visitor visitor)
          Entry point for an object that accepts visitors.
 void clear()
           
 int getActives()
           
 Concurrency getFeature()
          A feature is identified by the class it exposes to the monitored application.
 double getLoad()
           
 int getMaxActives()
           
 void onMonitoringEvent(MonitoringEvent event)
          A monitoring event occured and has been dispatched on the bus
 java.lang.String toString()
          
 
Methods inherited from class org.jmonit.features.AbstractFeature
fireMonitoringEvent, getFeature, setMonitor, setMonitoringEventBus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FACTORY

public static final Factory<Concurrency> FACTORY
Constructor Detail

Concurrency

public Concurrency()
Method Detail

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.