iCMS.pollerd
Class ProbeData

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

public class ProbeData
extends GenericData

This class is a data holder for the probe probeType data Revision Changes :

Version:
2.1.2
Author:
Chris Lukassen
 

Field Summary
static int FIXED
           
static int PING
           
static int SESSION
           
static int SNMP
           
static int UNDEFINED
          constants
 
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
ProbeData(GenericData parent)
          default constructor
ProbeData(String host, String snmpGetCmd, int probeType, boolean propagate, String fixed, GenericData parent)
          preload constructor
 
Method Summary
 void addSnmpInfoCmd(String name, String cmd)
          add snmp get command for the info fields of this probe, this command will be executed on request
 Object clone(GenericData parent)
          create an exact copy of this item, with all settings included
 String getFixed()
          return the fixed value of this probe
 int getProbeType()
          return the type of probe
 String getSnmpGetCmd()
          return the snmp get command for status assertaining
 String getSnmpInfoCmd(String name)
          return the snmp info command for this name
 Vector getSnmpInfoNames()
          return the snmp info names
 String getSnmpStartCmd(String name)
          return the snmp start command for this name
 String getSnmpStopCmd(String name)
          return the snmp stop command for this name
 void initMonitoring(AdvancedSnmpManager snmpMan)
          initializes the monitoring process
 void myEventOccurred(MyEvent evt)
          Event Handling, handles poller and pinger events
 String pollSnmpInfoCmd(String name)
          perform a poll on a single information item
 Vector pollSnmpInfoCmds()
          perform a poll on a all information item
 void setFixed(String fixy)
          set the fixed value of this probe
 void setProbeType(int probeType)
          set the probe type: SNMP, PING or FIXED
 void setSnmpGetCmd(String snmpGetCmd)
          set snmp get command for the status of this probe, this command will be executed perodically to assertain the status
 void setSnmpInfoCmds(Hashtable cmd)
          set snmp get command for the info fields of this probe, this command will be executed on request
 void setSnmpInfoNames(Vector names)
          set the names for the snmp get commands for the info fields of this probe
 void setSnmpManager(AdvancedSnmpManager poller)
          sets AdvancedSnmpManager for this probe
 void setSnmpStartCmd(String cmd)
          set snmp set command to start the node, this command will be executed on request
 void setSnmpStartVal(String val)
          set snmp set value to start the node, this command will be executed on request
 void setSnmpStopCmd(String cmd)
          set snmp set command to stop the node, this command will be executed on request
 void setSnmpStopVal(String val)
          set snmp set value to stop the node, this command will be executed on request
 int start()
          start an item
 void startMonitoring()
          starts the monitoring process
 int stop()
          stop an item
 
Methods inherited from class iCMS.pollerd.GenericData
addChild, addDescription, addMib, addMibDir, allocateAndAddMib, canStart, canStop, getChild, getChildren, getDescription, getHost, getMibDirs, getMibDirsAsString, getMibs, getName, getProbe, getPropagate, getStatus, getType, list, print, removeAllChildren, removeChild, setAllocatedMibs, setChildren, setDescription, setHost, setInfo, setItemToken, setMibDirs, setMibs, setName, setParent, setProbe, setPropagate, setPropagate, setStatus
 
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
 

Field Detail

UNDEFINED

public static int UNDEFINED
constants


SNMP

public static int SNMP

PING

public static int PING

FIXED

public static int FIXED

SESSION

public static int SESSION
Constructor Detail

ProbeData

public ProbeData(GenericData parent)
default constructor


ProbeData

public ProbeData(String host,
                 String snmpGetCmd,
                 int probeType,
                 boolean propagate,
                 String fixed,
                 GenericData parent)
preload constructor

Method Detail

setSnmpGetCmd

public void setSnmpGetCmd(String snmpGetCmd)
set snmp get command for the status of this probe, this command will be executed perodically to assertain the status


setProbeType

public void setProbeType(int probeType)
set the probe type: SNMP, PING or FIXED


setSnmpManager

public void setSnmpManager(AdvancedSnmpManager poller)
sets AdvancedSnmpManager for this probe


setSnmpStartCmd

public void setSnmpStartCmd(String cmd)
set snmp set command to start the node, this command will be executed on request


setSnmpStopCmd

public void setSnmpStopCmd(String cmd)
set snmp set command to stop the node, this command will be executed on request


setSnmpStartVal

public void setSnmpStartVal(String val)
set snmp set value to start the node, this command will be executed on request


setSnmpStopVal

public void setSnmpStopVal(String val)
set snmp set value to stop the node, this command will be executed on request


setSnmpInfoCmds

public void setSnmpInfoCmds(Hashtable cmd)
set snmp get command for the info fields of this probe, this command will be executed on request


setSnmpInfoNames

public void setSnmpInfoNames(Vector names)
set the names for the snmp get commands for the info fields of this probe


addSnmpInfoCmd

public void addSnmpInfoCmd(String name,
                           String cmd)
add snmp get command for the info fields of this probe, this command will be executed on request


setFixed

public void setFixed(String fixy)
set the fixed value of this probe


getSnmpGetCmd

public String getSnmpGetCmd()
return the snmp get command for status assertaining


getSnmpInfoNames

public Vector getSnmpInfoNames()
return the snmp info names


getSnmpStartCmd

public String getSnmpStartCmd(String name)
return the snmp start command for this name


getSnmpStopCmd

public String getSnmpStopCmd(String name)
return the snmp stop command for this name


getSnmpInfoCmd

public String getSnmpInfoCmd(String name)
return the snmp info command for this name


getProbeType

public int getProbeType()
return the type of probe


getFixed

public String getFixed()
return the fixed value of this probe


startMonitoring

public void startMonitoring()
starts the monitoring process

Specified by:
startMonitoring in interface MonitoredItem
Overrides:
startMonitoring in class GenericData

initMonitoring

public void initMonitoring(AdvancedSnmpManager snmpMan)
initializes the monitoring process

Specified by:
initMonitoring in interface MonitoredItem
Overrides:
initMonitoring in class GenericData

start

public int start()
start an item

Overrides:
start in class GenericData

stop

public int stop()
stop an item

Overrides:
stop in class GenericData

pollSnmpInfoCmd

public String pollSnmpInfoCmd(String name)
perform a poll on a single information item


pollSnmpInfoCmds

public Vector pollSnmpInfoCmds()
perform a poll on a all information item


clone

public Object clone(GenericData parent)
create an exact copy of this item, with all settings included

Overrides:
clone in class GenericData

myEventOccurred

public void myEventOccurred(MyEvent evt)
Event Handling, handles poller and pinger events

Overrides:
myEventOccurred in class GenericData