iCMS.pollerd
Class MonitoredItemManager

java.lang.Object
  extended by iCMS.pollerd.MonitoredItemManager

public class MonitoredItemManager
extends Object

This class is a data holder for the cms data in item manager structure
the data consists of the following structure:

all items must implement the Item
Revision Changes :

Version:
2.0.2
Author:
Chris Lukassen
 

Constructor Summary
MonitoredItemManager(CmsData newCms)
          default constructor
 
Method Summary
 void addItemEventListener(MyEventListener listener)
          This methods allows classes to register for MyEvents for all items
 void addItemEventListener(String itemName, MyEventListener listener)
          This methods allows classes to register for MyEvents for a specific item
 MonitoredItem getItem(String name)
          get an monitored item by token name
 SortVector getItemsKeys()
          returns the keys (tokens) to all monitored items
 String getItemStatus(String itemName)
          returns the status string of an item
 void initMonitoring()
          initializes the monitoring, by setting the tokens and initializing each individual item, must be called before startMonitoring
 void listActions(PrintWriter out, String itemName)
          lists this monitored item's actions (start|stop)
 void listAllActions(PrintWriter out)
          lists all monitored item's actions (start|stop)
 void listItemDescr(PrintWriter out, String itemName)
          probes this monitored item's description
 void listItemInfo(PrintWriter out, String itemName)
          lists this monitored item's info tags
 void listItems(PrintWriter out)
          lists the monitored items on out
 void listItemsStatus(PrintWriter out)
          gives a list of all monitored items on out
 void listItemStatus(PrintWriter out, String itemName)
          lists the monitored item status on out
 void probeItemInfo(PrintWriter out, String itemNameWithInfoTag)
          probes this monitored item's info tag
 void removeItemEventListener(MyEventListener listener)
          This methods allows classes to de-register for MyEvents for all items
 void removeItemEventListener(String itemName, MyEventListener listener)
          This methods allows classes to de-register for MyEvents for a specific item
 void sendStart(PrintWriter out, String itemName)
          sends a start command to the monitored item
 void sendStop(PrintWriter out, String itemName)
          sends a stop command to the monitored item
 void startMonitoring()
          starts the monitoring, by starting each individual item, initMonitoring must be called before startMonitoring
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonitoredItemManager

public MonitoredItemManager(CmsData newCms)
default constructor

Method Detail

getItem

public MonitoredItem getItem(String name)
get an monitored item by token name


initMonitoring

public void initMonitoring()
initializes the monitoring, by setting the tokens and initializing each individual item, must be called before startMonitoring


startMonitoring

public void startMonitoring()
starts the monitoring, by starting each individual item, initMonitoring must be called before startMonitoring


getItemStatus

public String getItemStatus(String itemName)
returns the status string of an item


getItemsKeys

public SortVector getItemsKeys()
returns the keys (tokens) to all monitored items


listItems

public void listItems(PrintWriter out)
lists the monitored items on out


listItemStatus

public void listItemStatus(PrintWriter out,
                           String itemName)
lists the monitored item status on out


listAllActions

public void listAllActions(PrintWriter out)
lists all monitored item's actions (start|stop)


listActions

public void listActions(PrintWriter out,
                        String itemName)
lists this monitored item's actions (start|stop)


sendStart

public void sendStart(PrintWriter out,
                      String itemName)
sends a start command to the monitored item


sendStop

public void sendStop(PrintWriter out,
                     String itemName)
sends a stop command to the monitored item


listItemInfo

public void listItemInfo(PrintWriter out,
                         String itemName)
lists this monitored item's info tags


probeItemInfo

public void probeItemInfo(PrintWriter out,
                          String itemNameWithInfoTag)
probes this monitored item's info tag


listItemDescr

public void listItemDescr(PrintWriter out,
                          String itemName)
probes this monitored item's description


listItemsStatus

public void listItemsStatus(PrintWriter out)
gives a list of all monitored items on out


addItemEventListener

public void addItemEventListener(MyEventListener listener)
This methods allows classes to register for MyEvents for all items


addItemEventListener

public void addItemEventListener(String itemName,
                                 MyEventListener listener)
This methods allows classes to register for MyEvents for a specific item


removeItemEventListener

public void removeItemEventListener(MyEventListener listener)
This methods allows classes to de-register for MyEvents for all items


removeItemEventListener

public void removeItemEventListener(String itemName,
                                    MyEventListener listener)
This methods allows classes to de-register for MyEvents for a specific item