|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object MyEventManager iCMS.pollerd.GenericData iCMS.pollerd.ProbeData
public class ProbeData
This class is a data holder for the probe probeType data
Revision Changes :
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 |
---|
public static int UNDEFINED
public static int SNMP
public static int PING
public static int FIXED
public static int SESSION
Constructor Detail |
---|
public ProbeData(GenericData parent)
public ProbeData(String host, String snmpGetCmd, int probeType, boolean propagate, String fixed, GenericData parent)
Method Detail |
---|
public void setSnmpGetCmd(String snmpGetCmd)
public void setProbeType(int probeType)
public void setSnmpManager(AdvancedSnmpManager poller)
public void setSnmpStartCmd(String cmd)
public void setSnmpStopCmd(String cmd)
public void setSnmpStartVal(String val)
public void setSnmpStopVal(String val)
public void setSnmpInfoCmds(Hashtable cmd)
public void setSnmpInfoNames(Vector names)
public void addSnmpInfoCmd(String name, String cmd)
public void setFixed(String fixy)
public String getSnmpGetCmd()
public Vector getSnmpInfoNames()
public String getSnmpStartCmd(String name)
public String getSnmpStopCmd(String name)
public String getSnmpInfoCmd(String name)
public int getProbeType()
public String getFixed()
public void startMonitoring()
startMonitoring
in interface MonitoredItem
startMonitoring
in class GenericData
public void initMonitoring(AdvancedSnmpManager snmpMan)
initMonitoring
in interface MonitoredItem
initMonitoring
in class GenericData
public int start()
start
in class GenericData
public int stop()
stop
in class GenericData
public String pollSnmpInfoCmd(String name)
public Vector pollSnmpInfoCmds()
public Object clone(GenericData parent)
clone
in class GenericData
public void myEventOccurred(MyEvent evt)
myEventOccurred
in class GenericData
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |