elge.monitor
Class PropertyMonitor

java.lang.Object
  |
  +--elge.monitor.AbstractMonitor
        |
        +--elge.monitor.PropertyMonitor
All Implemented Interfaces:
EventListener, Monitor, PropertyChangeListener

public class PropertyMonitor
extends AbstractMonitor

Simple monitor, that can monitor property of some object in the system.

Does not work.

Author:
Pavol Žibrita

Field Summary
 
Fields inherited from class elge.monitor.AbstractMonitor
per, PROP_PROJECT, pt
 
Constructor Summary
PropertyMonitor()
          Creates a new instance of PropertyMonitor
 
Method Summary
 String getDescription()
          the user help
 String getFullName()
          full name of monitor (monitor name + identifiers)
 String[] getIdentifiers()
          identifiers
 String getMonitorName()
          The monitor name
 String getPropertyName()
          get the monitored property
 Object getSource()
          gets the monitored object
 Object[] getValues()
          the values.
 void setMonitorName(String name)
          sets the monitor names
 void setPropertyName(String name)
          The property name
 void setSource(Object source)
          sets the monitored object
 
Methods inherited from class elge.monitor.AbstractMonitor
addPropertyChangeListener, getPersistence, getProject, propertyChange, removePropertyChangeListener, restart, setPersistence, setProject, updateMonitor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyMonitor

public PropertyMonitor()
Creates a new instance of PropertyMonitor

Method Detail

getIdentifiers

public String[] getIdentifiers()
identifiers

Returns:
the identifiers

getMonitorName

public String getMonitorName()
The monitor name

Returns:
the name of the monitor

getValues

public Object[] getValues()
the values.

Returns:
values

setMonitorName

public void setMonitorName(String name)
sets the monitor names

Parameters:
name - the monitor name.

setPropertyName

public void setPropertyName(String name)
The property name

Parameters:
name - property to monitor

getPropertyName

public String getPropertyName()
get the monitored property

Returns:
property name

setSource

public void setSource(Object source)
sets the monitored object

Parameters:
source - the source to monitor

getSource

public Object getSource()
gets the monitored object

Returns:
Gets the monitored object

getDescription

public String getDescription()
the user help

Returns:
the user help

getFullName

public String getFullName()
full name of monitor (monitor name + identifiers)

Returns:
full name for monitor