iCMS.pollerd
Class CmsData

java.lang.Object
  extended by MyEventManager
      extended by iCMS.pollerd.GenericData
          extended by iCMS.pollerd.CmsData
All Implemented Interfaces:
MonitoredItem

public class CmsData
extends GenericData

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


It uses the child structure of GenericData for the locations, the applications and node types are stored in seperate data structures
Revision Changes :

Version:
2.0.0
Author:
Chris Lukassen
 

Field Summary
 
Fields inherited from class iCMS.pollerd.GenericData
allocatedMibs, canStart, canStop, children, descr, host, info, mibDirs, mibs, name, parent, probe, propagate, snmpMan, status, token, type
 
Constructor Summary
CmsData()
          default constructor
 
Method Summary
 void addApplication(ApplicationData _application)
          add an application type to the CMS structure
 void addLocation(LocationData _col)
          add an location to the CMS structure
 void addNodeType(NodeTypeData _nodeType)
          add a node type to the CMS structure
 void clearApplications()
          clear the application data
can be called after parsing, to save memory
 void clearNodeTypes()
          clear the nodetype data
can be called after parsing, to save memory
 ApplicationData getApplication(String name)
          return an application from this CMS
 LocationData getLocation(String name)
          return a location from this CMS
 Hashtable getLocations()
          return all locations from this CMS
 LoggingData getLoggingData()
          return the logging data from this CMS
 NodeTypeData getNodeType(String name)
          return a node type from this CMS
 int getSnmpRetry()
          get the number of snmp retries
 int getSnmpTimeout()
          get the snmp timeout
 void list(PrintStream out, boolean stat)
          list out the all info of this item and its children including stat if stat is true
 void print(PrintStream out, boolean all)
          print out the all info of this item
 void setLoggingData(LoggingData _loggingData)
          set the logging requirements
 void setSnmpRetry(int retry)
          set the number of snmp retries
 void setSnmpTimeout(int timeout)
          set the snmp timeout
 
Methods inherited from class iCMS.pollerd.GenericData
addChild, addDescription, addMib, addMibDir, allocateAndAddMib, canStart, canStop, clone, getChild, getChildren, getDescription, getHost, getMibDirs, getMibDirsAsString, getMibs, getName, getProbe, getPropagate, getStatus, getType, initMonitoring, list, myEventOccurred, print, removeAllChildren, removeChild, setAllocatedMibs, setChildren, setDescription, setHost, setInfo, setItemToken, setMibDirs, setMibs, setName, setParent, setProbe, setPropagate, setPropagate, setStatus, start, startMonitoring, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface iCMS.pollerd.MonitoredItem
addMyEventListener, removeMyEventListener
 

Constructor Detail

CmsData

public CmsData()
default constructor

Method Detail

addLocation

public void addLocation(LocationData _col)
add an location to the CMS structure


clearApplications

public void clearApplications()
clear the application data
can be called after parsing, to save memory


clearNodeTypes

public void clearNodeTypes()
clear the nodetype data
can be called after parsing, to save memory


addNodeType

public void addNodeType(NodeTypeData _nodeType)
add a node type to the CMS structure


addApplication

public void addApplication(ApplicationData _application)
add an application type to the CMS structure


setLoggingData

public void setLoggingData(LoggingData _loggingData)
set the logging requirements


setSnmpRetry

public void setSnmpRetry(int retry)
set the number of snmp retries


setSnmpTimeout

public void setSnmpTimeout(int timeout)
set the snmp timeout


getLocation

public LocationData getLocation(String name)
return a location from this CMS


getNodeType

public NodeTypeData getNodeType(String name)
return a node type from this CMS


getApplication

public ApplicationData getApplication(String name)
return an application from this CMS


getLoggingData

public LoggingData getLoggingData()
return the logging data from this CMS


getSnmpRetry

public int getSnmpRetry()
get the number of snmp retries


getSnmpTimeout

public int getSnmpTimeout()
get the snmp timeout


getLocations

public Hashtable getLocations()
return all locations from this CMS


print

public void print(PrintStream out,
                  boolean all)
print out the all info of this item


list

public void list(PrintStream out,
                 boolean stat)
list out the all info of this item and its children including stat if stat is true