uk.co.gidley.jmxmonitor.monitoring
Interface Monitor

All Known Implementing Classes:
DiscriminatingJmxMonitor, SimpleJmxMonitor

public interface Monitor

A monitor retrieves data from a remote source

Monitors are initialised by their monitoring group. On initialisation they are passed details of what to monitor and the mbeanconnection.

Monitors don't need to recover from failed connections. They should throw a reading failed exception. Once this has occurred the controlling process will not run that monitor again. It will disgard it and initialise a replacement.


Method Summary
 String getName()
          The name of the monitor This is defined in the scope of the monitor group
 Object getReading()
          The reading is typically a base type or a String.
 

Method Detail

getName

String getName()
The name of the monitor This is defined in the scope of the monitor group

Returns:

getReading

Object getReading()
                  throws ReadingFailedException
The reading is typically a base type or a String. Other items can be used but you need to be sure EL can handle them

Returns:
Throws:
ReadingFailedException


Copyright © 2009-2010. All Rights Reserved.