com.jamonapi
Interface JAMonListener

All Superinterfaces:
java.util.EventListener
All Known Subinterfaces:
Range
All Known Implementing Classes:
CompositeListener, JAMonArrayBufferListener, JAMonBufferListener, Log4jBufferListener, SharedJAMonBufferListener

public interface JAMonListener
extends java.util.EventListener

Interface that can be implemented if you want to code something to listen for JAMon events such as a new max/min/max active have occured, or even if the monitor has fired. It also implements the java EventListener tag interface.

Author:
steve souza

Method Summary
 java.lang.String getName()
          Gets the name of this listener
 void processEvent(Monitor mon)
          Called and the current monitor is past in.
 void setName(java.lang.String name)
          Set the name of the listener
 

Method Detail

getName

java.lang.String getName()
Gets the name of this listener


setName

void setName(java.lang.String name)
Set the name of the listener


processEvent

void processEvent(Monitor mon)
Called and the current monitor is past in. This allows for the listener to take any action such as looking for new maximums, logging the information or anything else that is useful