|
"WEBNMS_5 API Docs" | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.nms.poll.PolledData
com.adventnet.nms.poll.MultiplePolledData
public class MultiplePolledData
This class is the basic unit of data collection which specifies where, when and what of data collection and is basically used for collecting columnar values. i.e., fetching values for the entire column of the table. Here a single MultiplePolledData is used to fetch all the values of a particular column of the table. One MultiplePolledData will lead to "n" stats data while data collection where "n" is the number of rows in the table.
This class is very useful because of the following reasons.
To create MultiplePolledData at the time of configuration i.e., before
starting Web NMS through the Polling.conf, specify the type as
"multiple".A sample entry in Polling.conf would look like ,
<DATA_TO_POLL
name="MULTIPLE_1"
dataIdentifier="2.2.1.10"
type="multiple" />
To add MultiplePolledData dynamically during run time,
set isMultiplePolledData property to true which
will mark the particular
PolledData to be of type multiple.
| Field Summary | |
|---|---|
static java.util.Hashtable |
prevSeverHash
|
| Fields inherited from class com.adventnet.nms.poll.PolledData |
|---|
isPoller, pollapi |
| Constructor Summary | |
|---|---|
MultiplePolledData()
|
|
| Method Summary | |
|---|---|
void |
checkAgainstThresholds(long val,
java.lang.String instant)
|
void |
checkAgainstThresholds(java.lang.String val,
java.lang.String instant)
|
java.lang.Object |
clone()
Return a new object which is a clone of this |
java.lang.String |
getCurrentIndex()
Gets the current index of the MultiplePolledData. |
java.util.Hashtable |
getMulThresholdNames()
Returns the ThresholdObject names associated with the instance of this PolledData. |
java.util.Properties |
getProperties()
Returns the Properties of this MultiplePolledData. |
java.util.Vector |
getThresholdNames(java.lang.String instance)
Returns the ThresholdObject names associated with the instance of this PolledData. |
void |
setCurrentIndex(java.lang.String index)
Sets the current index of the MultiplePolledData. |
void |
setMulThresholdNames(java.util.Hashtable threshHash)
Sets the ThresholdObject names for instance/index of this PolledData. |
void |
setProperties(java.util.Properties p)
Sets the Properties of the MultiplePolledData object with the given Properties. Note:Id of this MultiplePolledData cannot be set using this method. |
void |
setThresholdNames(java.lang.String instance,
java.util.Vector v)
Sets the ThresholdObject names for instance of this PolledData. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.adventnet.nms.store.DBInterface |
|---|
getKey, getKeyName |
| Field Detail |
|---|
public static java.util.Hashtable prevSeverHash
| Constructor Detail |
|---|
public MultiplePolledData()
| Method Detail |
|---|
public void setCurrentIndex(java.lang.String index)
index - the instance to which the current index must point to.public java.lang.String getCurrentIndex()
String.
public void checkAgainstThresholds(long val,
java.lang.String instant)
checkAgainstThresholds in class PolledData
public void checkAgainstThresholds(java.lang.String val,
java.lang.String instant)
public void setProperties(java.util.Properties p)
setProperties in interface DBInterfacesetProperties in class PolledDatap - Properties to be setpublic java.util.Properties getProperties()
getProperties in interface DBInterfacegetProperties in class PolledData
public void setThresholdNames(java.lang.String instance,
java.util.Vector v)
Thresholds are associated
with each instance then thresholds with highest severity takes precedence over
other thresholds.
instance - instance/index of PolledData to which the thresholds need to be associated.v - vector containing the names of the Threshold ObjectsPolledData.setThresholdNames(Vector),
setMulThresholdNames(Hashtable),
PolledData.getThresholdNames(),
getThresholdNames(String),
getMulThresholdNames(),
PolledData.getThreshold(),
PolledData.setThreshold(boolean),
ThresholdObjectpublic void setMulThresholdNames(java.util.Hashtable threshHash)
Thresholds are associated
with a PolledData then thresholds with highest severity takes precedence over
other thresholds.
threshHash - Hashtable containing index and the names of the Threshold Objects associated with that index
The key-value pair in the Hastable is as follows
key ----- value
indx1 ----- Vector ("thresh1","thresh2")
indx2 ----- Vector ("thresh3")PolledData.setThresholdNames(Vector),
setThresholdNames(String, Vector),
PolledData.getThresholdNames(),
getThresholdNames(String),
getMulThresholdNames(),
PolledData.getThreshold(),
PolledData.setThreshold(boolean),
ThresholdObjectpublic java.util.Vector getThresholdNames(java.lang.String instance)
PolledData.setThresholdNames(Vector),
setThresholdNames(String, Vector),
setMulThresholdNames(Hashtable),
PolledData.getThresholdNames(),
getMulThresholdNames(),
PolledData.getThreshold(),
PolledData.setThreshold(boolean),
ThresholdObjectpublic java.util.Hashtable getMulThresholdNames()
PolledData.setThresholdNames(Vector),
setThresholdNames(String, Vector),
setMulThresholdNames(Hashtable),
PolledData.getThresholdNames(),
getThresholdNames(String),
PolledData.getThreshold(),
PolledData.setThreshold(boolean),
ThresholdObjectpublic java.lang.Object clone()
clone in interface DBInterfaceclone in class PolledData
|
"WEBNMS_5 API Docs" | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||