|
"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
public class PolledData
The PolledData represents the basic unit for
data collection i.e., when, where and what of data collection.
They are created and added to the poll engine via PollAPI,
and the poll engine takes care of collecting the data for this
PolledData Objects. At start up PolledData Objects are created by
reading the Polling.conf. Users can also add PolledData Objects
at run time using PollAPI or through UI.
Data Collection:
Data collection is protocol independent and the protocol using which
data is collected for a PolledData is represented by the field
protocol.
Data Storage:
Ths collected statistic can be stored either in CSV files or database or both.
By default, the collected values will be stored STATSDATAmm_dd_yyyy
or STRINGDATAmm_dd_yyyy tables where 'mm','dd' and 'yyyy' represents
current month, date and year respectively. Collected statistic can
also be stored in customized tables.
ThresholdObject,
PollAPI.addPoll(PolledData),
PollAPI.addPolledData(PolledData,boolean),
Serialized Form| Field Summary | |
|---|---|
protected static boolean |
isPoller
whether poller is associated with this PolledData. |
protected static PollAPI |
pollapi
the PollAPI instance associated with this PolledData. |
| Constructor Summary | |
|---|---|
PolledData()
|
|
| Method Summary | |
|---|---|
void |
checkAgainstThresholds(long time,
long val)
|
void |
checkAgainstThresholds(long time,
java.lang.String val)
|
java.lang.Object |
clone()
Returns a new object which is a clone of this. |
boolean |
getActive()
Returns a boolen representing the state of the PolledData - whether active or inactive. |
java.lang.String |
getAgent()
Returns the agent from which data is collected. |
java.lang.String |
getCommunity()
Returns the community string of this PolledData. |
java.lang.String |
getContextName()
Returns the value of contextName. |
boolean |
getCounterUpdateRequired()
|
int |
getCurrentSaveCount()
Returns the value of current count of data collected after the last save. |
java.lang.String |
getDnsName()
Returns the IP address / DNS name of the agent to collect data from. |
java.lang.Object |
getDynamicUserProperty(java.lang.String nam)
|
java.lang.String |
getExtension()
Returns the string to be appended in the message of the threshold events generated by this PolledData. |
int |
getFailureCount()
Returns the failureCount for this PolledData. |
int |
getFailureThreshold()
Returns the failureThreshold for this PolledData. |
java.lang.String |
getGroupName()
Returns the polling group that this polled Data belongs to. |
long |
getId()
Returns the id of the PolledData. |
java.lang.String |
getInstance()
Returns the instance of the oid which is being currently referred. |
boolean |
getIsMultiplePolledData()
Returns whether multiple oids are being polled by this PolledData. |
java.lang.String |
getKey()
To get the key of this PolledData object. |
java.lang.String |
getKeyName()
To get the key of this PolledData object. |
long |
getLastCounterValue()
Returns the value collected during the previous poll for this PolledData. |
long |
getLastTimeValue()
Returns the time in milliseconds since epoch, when this PolledData was last polled. |
java.lang.Object |
getLockId()
Gets the current lock object associated with the PolledData. |
boolean |
getLogDirectly()
Returns whether the data is being logged directly to a log file in CSV(Comma Separated values) format-for spreadsheets. |
java.lang.String |
getLogFile()
Returns the verbose CSV(Comma Separated Values) log file name. |
java.util.Map |
getMappedProperties()
|
java.lang.String |
getName()
Returns the name of the PolledData. |
int |
getNumericType()
Returns the type of data that this PolledData will collect. |
java.lang.String |
getOid()
Returns the oid that is being polled from an agent. |
java.lang.String |
getOwnerName()
Deprecated. as of Web NMS 5 |
java.lang.String |
getParentObj()
returns the name of the managed Object corresponding to this PolledData. |
int |
getPeriod()
Returns the polling interval of this PolledData in seconds. |
java.lang.String |
getPolicyName()
Returns the name of the PollingObject which controls this PolledData. |
java.lang.String |
getPollerName()
Returns the name of the remote poller which is responsible for collecting data via this poller. |
int |
getPort()
To get the port number on the agent which is being polled. |
int |
getPreviousSeverity()
Returns the severity of the event last generated by this PolledData. |
com.adventnet.nms.common.corba.Property_CT[] |
getProperties_CT()
corba: PolledData_CIOperations interface method. |
java.util.Properties |
getProperties()
Returns the object's properties . |
java.lang.String |
getProtocol()
returns the protocol string. |
boolean |
getSave()
Returns whether the collected data is stored in compact form in database- for reports, charts, etc. |
boolean |
getSaveAbsolutes()
Returns whether absolute values of the counters are stored or not. |
boolean |
getSaveOnThreshold()
Returns whether to store collected data only when an associated threshold is satisfied and threshold event is generated. |
int |
getSavePollCount()
Returns the number of times after which the collected data is to be stored. |
java.lang.String |
getSnmpVersion()
Returns the value of snmpVersion. |
java.lang.String |
getStatsDataTableName()
Returns the name of the table where the data collected for this PolledData should be stored. |
java.lang.String |
getSuffix()
Returns the index of the OID for which the data is collected. |
boolean |
getThreshold()
Returns whether threshold checking is being done for the collected data. |
java.lang.String |
getThresholdList()
Get the value of thresholdList. |
java.util.Vector |
getThresholdNames()
Returns the ThresholdObject names which is associated with this PolledData. |
PollTieRefHolder |
getTieRefHolder_PolledData()
Returns the TieHolder of this PolledData. |
boolean |
getTimeAvg()
storage option specifying whether to store time average collected values or not. |
long |
getTimeVal()
Returns the time in milli seconds since epoch, as to when the PolledData has to be polled again. |
java.lang.String |
getUserName()
Returns the value of userName. |
java.util.Properties |
getUserProperties()
Get all the user properties of the PolledData. |
java.lang.String |
getUserProperty(java.lang.String name)
Get the value of the user property with the given name (key). |
java.lang.String |
getWebNMS()
the WebNMS server that owns this PolledData. |
boolean |
logAllData(java.lang.String logFile)
Log all collected data for the current day to specified file. |
boolean |
logAllData(java.lang.String logFile,
java.util.Date date)
Logs all collected data for the given date to specified file |
boolean |
logAllData(java.lang.String logFile,
java.lang.String date)
Deprecated. as of Web NMS version 2.2 logAllData(String,Date) can be used. |
java.lang.String |
removeUserProperty(java.lang.String name)
Remove the specified user property from the PolledData. |
void |
setActive(boolean active)
Sets the status of this PolledData - whether active or inactive. |
void |
setAgent(java.lang.String agent)
Sets the agent from which data is to be collected. |
void |
setCommunity(java.lang.String community)
Sets the community string to be used for this PolledData. |
void |
setContextName(java.lang.String v)
Sets the value of contextName. |
void |
setCounterUpdateRequired(boolean isCounter)
The fields lastCounterValue and lastTimeValue in PolledData will be updated in DB during each data poll cycle. |
void |
setCurrentSaveCount(int v)
Set the value of currentSaveCount which gives the current count of data collected after the last save. |
void |
setDnsName(java.lang.String dnsName)
Sets the IP address / DNS name of the agent to collect data from . |
void |
setDynamicUserProperty(java.lang.String key,
java.lang.Object value)
|
void |
setExtension(java.lang.String extension)
Sets the string to be appended in the message of the threshold events generated by this PolledData. |
void |
setFailureCount(int fail)
Sets the failureCount for this PolledData. |
void |
setFailureThreshold(int failThresh)
Sets the failureThreshold for this PolledData. |
void |
setGroupName(java.lang.String group)
Sets the polling group that this polled Data belongs to. Note Not used since WebNMS 2.3 |
void |
setId(long id)
sets the id for the PolledData. |
void |
setInstance(java.lang.String instance)
Sets the instance for the oid which is being currently referred. |
void |
setIsMultiplePolledData(boolean isMultiplePolledData)
Set whether multiple oids are to be polled by this PolledData. |
void |
setLockId(java.lang.Object lockId)
Sets the current lock object associated with the PolledData. |
void |
setLogDirectly(boolean logDirectly)
Sets whether the data collected should be logged directly to log file in CSV(comma Separated Values) format. |
void |
setLogFile(java.lang.String logFile)
Sets the verbose CSV(Comma Separated Values) log file name. |
void |
setMappedProperties(java.util.Map mappedProps)
|
void |
setName(java.lang.String name)
Sets the name of the PolledData. |
void |
setNumericType(int numeric)
Sets the type of data that this PolledData will collect. |
void |
setOid(java.lang.String oid)
Sets the oid to be polled from an agent. |
void |
setOwnerName(java.lang.String owner)
Deprecated. as of Web NMS 5 |
void |
setParentObj(java.lang.String moname)
sets the name of the Managed Object corresponding to this PolledData. |
void |
setPeriod(int period)
Sets the polling interval for this PolledData in seconds. |
void |
setPolicyName(java.lang.String policyName)
Sets the polling Object name for this PolledData. |
void |
setPollerName(java.lang.String pollerName)
Sets the remote poller name for this PolledData. |
void |
setPort(int p)
Sets p the port number to be polled for the agent. |
void |
setPreviousSeverity(int previousSeverity)
Sets the severity of the latest event which was generated. |
void |
setProperties_CT(com.adventnet.nms.common.corba.Property_CT[] propertyList)
corba: PolledData_CIOperations interface method. |
void |
setProperties(java.util.Properties prop)
Set the object's properties with the properties that is passed. |
void |
setProtocol(java.lang.String proto)
sets the protocol string. |
void |
setSave(boolean save)
Sets whether the collected data is to be stored in compact form in database- for reports, charts, etc. |
void |
setSaveAbsolutes(boolean saveAbsolutes)
Sets whether absolute values of the counters are to be stored or not. |
void |
setSaveOnThreshold(boolean save)
Sets whether to store collected data only when an associated threshold is satisfied and threshold event is generated. |
void |
setSavePollCount(int v)
Set the value of savePollCount which is number of times after which the collected data is stored. |
void |
setSnmpVersion(java.lang.String v)
Sets the value of snmpVersion. |
void |
setStatsDataTableName(java.lang.String s)
Sets the name of the table where the data collected for this PolledData should be stored. |
void |
setSuffix(java.lang.String suffix)
Sets the index of the oid for which the data is collected. |
void |
setThreshold(boolean threshold)
Sets Whether threshold checking is to be done for the collected data. |
void |
setThresholdList(java.lang.String thresholdList)
Set the value of thresholdList. |
void |
setThresholdNames(java.util.Vector v)
Sets the ThresholdObject names for this PolledData. |
void |
setTimeAvg(boolean timeAvg)
Sets whether the data to be collected is to be averaged with time or not. |
void |
setTimeVal(long timeVal)
Sets the time in milli seconds since epoch, as to when the PolledData has to be polled again. |
void |
setUserName(java.lang.String v)
Sets the value of userName. |
void |
setUserProperty(java.lang.String name,
java.lang.String value)
Adds a new user property to the PolledData, with the given value. |
void |
setWebNMS(java.lang.String webNMS)
the WebNMS server that owns this PolledData. |
void |
updateCurrentSaveCount()
Updates the curentSaveCount after each data collection. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static PollAPI pollapi
protected static boolean isPoller
| Constructor Detail |
|---|
public PolledData()
| Method Detail |
|---|
public java.lang.String getName()
getName in interface com.adventnet.nms.poll.corba.PolledData_CIOperationssetName(String)public void setName(java.lang.String name)
setName in interface com.adventnet.nms.poll.corba.PolledData_CIOperationsname - the name for the PolledData.getName()public long getId()
getId in interface com.adventnet.nms.poll.corba.PolledData_CIOperationssetId(long)public void setId(long id)
setId in interface com.adventnet.nms.poll.corba.PolledData_CIOperationsid - the id for this PolledData.getId()public long getLastCounterValue()
public long getLastTimeValue()
public long getTimeVal()
public void setTimeVal(long timeVal)
timeVal - time in milli seconds since epoch, as to when the PolledData
has to be polled again.public java.lang.String getAgent()
getAgent in interface com.adventnet.nms.poll.corba.PolledData_CIOperationssetAgent(String),
getAgent(),
getDnsName(),
setDnsName(String)public void setAgent(java.lang.String agent)
setAgent in interface com.adventnet.nms.poll.corba.PolledData_CIOperationsagent - the agent from which data is to collected.
For DHCP nodes the physical address
is the input parameter and for non-DHCP nodes the DNS name is the
input parameter.
Please note that this also sets the DNS name of the PolledData.
This is to ensure backward compatabiliy.
i.e if the PolledData does not deal with a DHCP node the setAgent
call will suffice as it will set both the agent and the dnsName to
the same value. If it deals with the DHCP node the dnsName which is
used for polling will have to be set separtely using
setDnsName(String)
after invoking this method.getAgent(),
getDnsName(),
setDnsName(String)public java.lang.String getDnsName()
setDnsName(String),
getAgent(),
setAgent(String)public void setDnsName(java.lang.String dnsName)
dnsName - for DHCP nodes this would be the
physical address.getDnsName(),
getAgent(),
setAgent(String)public java.lang.String getCommunity()
getCommunity in interface com.adventnet.nms.poll.corba.PolledData_CIOperationssetCommunity(String)public void setCommunity(java.lang.String community)
setCommunity in interface com.adventnet.nms.poll.corba.PolledData_CIOperationscommunity - the community to be set for this PolledData.getCommunity()public int getPeriod()
getPeriod in interface com.adventnet.nms.poll.corba.PolledData_CIOperationssetPeriod(int)public void setPeriod(int period)
setPeriod in interface com.adventnet.nms.poll.corba.PolledData_CIOperationsperiod - the polling interval in secondsgetPeriod()public int getPort()
getPort in interface com.adventnet.nms.poll.corba.PolledData_CIOperationssetPort(int)public void setPort(int p)
setPort in interface com.adventnet.nms.poll.corba.PolledData_CIOperationsp - the port number to be polled for the agent.getPort()public boolean getActive()
getActive in interface com.adventnet.nms.poll.corba.PolledData_CIOperationssetActive(boolean)public void setActive(boolean active)
setActive in interface com.adventnet.nms.poll.corba.PolledData_CIOperationsactive - the status for this PolledData
"true" if PolledData is active, "false" otherwisegetActive()public java.lang.String getOid()
getOid in interface com.adventnet.nms.poll.corba.PolledData_CIOperationspublic void setOid(java.lang.String oid)
setOid in interface com.adventnet.nms.poll.corba.PolledData_CIOperationsoid - the oid to be polled from an agent.public java.lang.String getOwnerName()
public void setOwnerName(java.lang.String owner)
owner - owner name of the PolledDatapublic boolean getLogDirectly()
getLogDirectly in interface com.adventnet.nms.poll.corba.PolledData_CIOperationssetLogDirectly(boolean),
setLogFile(String),
getLogFile()public void setLogDirectly(boolean logDirectly)
setLogDirectly in interface com.adventnet.nms.poll.corba.PolledData_CIOperationslogDirectly - whether to log data collected in a separate verbose CSV log filegetLogDirectly(),
getLogFile(),
setLogFile(String)public java.lang.String getLogFile()
getLogFile in interface com.adventnet.nms.poll.corba.PolledData_CIOperationssetLogFile(String),
getLogDirectly(),
setLogDirectly(boolean)public void setLogFile(java.lang.String logFile)
setLogFile in interface com.adventnet.nms.poll.corba.PolledData_CIOperationslogFile - name of the log filegetLogFile(),
getLogDirectly(),
setLogDirectly(boolean)public boolean getSave()
getSave in interface com.adventnet.nms.poll.corba.PolledData_CIOperationssetSave(boolean),
setSavePollCount(int),
getSavePollCount()public void setSave(boolean save)
setSave in interface com.adventnet.nms.poll.corba.PolledData_CIOperationssave - "true" if collected data is to be saved,"false" otherwise.getSave()public boolean getThreshold()
getThreshold in interface com.adventnet.nms.poll.corba.PolledData_CIOperationssetThreshold(boolean),
ThresholdObjectpublic void setThreshold(boolean threshold)
setThreshold in interface com.adventnet.nms.poll.corba.PolledData_CIOperationsthreshold - "true" if threshold checking is to be done for
the collected data, "false" otherwise.getThreshold(),
ThresholdObjectpublic void setFailureCount(int fail)
fail - failureCount for this PolledData.getFailureCount()public int getFailureCount()
failureThreshold
is set for the oid to be polled in the
Polling.conf for maintaining the number of times this PolledData
has been polled after a threshold event is generated for this
PolledData.
setFailureCount(int)public void setFailureThreshold(int failThresh)
For example, if a long threshold of type max associated with this PolledData has a thresholdValue of 10000 and if the collected values for this PolledData are like 20000,25000,23000......then, setting the failureThreshold to 1 will generate a threshold event after the first value for the collected value 20000),setting it to 2 will effect in generating a threshold event after the collected value exceeds the thresholdValue twice CONSECUTIVELY. That is ,for the collected value of 25000.
failThresh - failureThreshold count as int.getFailureThreshold()public int getFailureThreshold()
setFailureThreshold(int)public boolean getIsMultiplePolledData()
getIsMultiplePolledData in interface com.adventnet.nms.poll.corba.PolledData_CIOperationssetIsMultiplePolledData(boolean),
MultiplePolledDatapublic void setIsMultiplePolledData(boolean isMultiplePolledData)
setIsMultiplePolledData in interface com.adventnet.nms.poll.corba.PolledData_CIOperationsisMultiplePolledData - whether multiple oidss are to be polled by this PolledData.
"true" only in the case of MultiplePolledData.getIsMultiplePolledData(),
MultiplePolledDatapublic int getPreviousSeverity()
getPreviousSeverity in interface com.adventnet.nms.poll.corba.PolledData_CIOperationssetPreviousSeverity(int)public void setPreviousSeverity(int previousSeverity)
setPreviousSeverity in interface com.adventnet.nms.poll.corba.PolledData_CIOperationspreviousSeverity - previous severity of this PolledData.getPreviousSeverity()public void setPolicyName(java.lang.String policyName)
policyName - the name of the policygetPolicyName(),
PollingObjectpublic java.lang.String getPolicyName()
setPolicyName(String),
PollingObjectpublic void setPollerName(java.lang.String pollerName)
pollerName - name of the remote pollergetPollerName(),
RemotePollerpublic java.lang.String getPollerName()
setPollerName(String),
RemotePollerpublic void setThresholdNames(java.util.Vector v)
Thresholds are associated
with a PolledData then thresholds with highest severity takes precedence over
other thresholds.
v - vector containing the names of the Threshold ObjectsgetThresholdNames(),
getThreshold(),
setThreshold(boolean),
ThresholdObjectpublic java.util.Vector getThresholdNames()
setThresholdNames(Vector),
getThreshold(),
setThreshold(boolean),
ThresholdObjectpublic java.lang.String getThresholdList()
public void setThresholdList(java.lang.String thresholdList)
thresholdList - Value to assign to thresholdList.public java.lang.String getInstance()
getInstance in interface com.adventnet.nms.poll.corba.PolledData_CIOperationssetInstance(String)public void setInstance(java.lang.String instance)
setInstance in interface com.adventnet.nms.poll.corba.PolledData_CIOperationsinstance - the current instance of MultiplePolledDatagetInstance()public java.lang.String getSuffix()
getSuffix in interface com.adventnet.nms.poll.corba.PolledData_CIOperationssetSuffix(String)public void setSuffix(java.lang.String suffix)
setSuffix in interface com.adventnet.nms.poll.corba.PolledData_CIOperationssuffix - the index of the oid for which the data is collected.getSuffix()public java.lang.String getExtension()
getExtension in interface com.adventnet.nms.poll.corba.PolledData_CIOperationssetExtension(String)public void setExtension(java.lang.String extension)
setExtension in interface com.adventnet.nms.poll.corba.PolledData_CIOperationsextension - the extension to be appended in the message of the threshold events.getExtension()public java.lang.String getStatsDataTableName()
setStatsDataTableName(String)public void setStatsDataTableName(java.lang.String s)
For Example,if the day is 12-9-2000 when the data collection starts, then the
table created is STATSDATA9_12_2000(assuming default table is used).
And the next day a new table (STATSDATA9_13_2000) is automatically created
and the data collected for that day will be stored in this new table
and so on. Setting a table name using this method will not create the
table. Table with the given name should exist in the database or users
have to create table explicitly on server start up or at run
time . Table creation at server start up can be done by giving an entry
in DatabaseSchema.conf file (NMS home / conf directory) . Table creation
at run time can be done using the PollAPI methods addCreateSchema(String,String) and createTable(String). If the table has the same schema as that of
STATSDATAmm_dd_yyyy or STRINGDATAmm_dd_yyyy then collected data will be
stored in the table automatically. If the table has a different schema ,
use table customization feature to enable storing of data in these
tables.
s - the name of the tablegetStatsDataTableName(),
CollectedInfo.putValuesForColumn(String,String,String,Object),
CollectedInfo.getValuesForColumn(String,String,String),
DataDecoderpublic int getNumericType()
getNumericType in interface com.adventnet.nms.poll.corba.PolledData_CIOperationssetNumericType(int)public void setNumericType(int numeric)
setNumericType in interface com.adventnet.nms.poll.corba.PolledData_CIOperationsnumeric - the numeric type of this PolledDatagetNumericType()public boolean getSaveAbsolutes()
getSaveAbsolutes in interface com.adventnet.nms.poll.corba.PolledData_CIOperationssetSaveAbsolutes(boolean)public void setSaveAbsolutes(boolean saveAbsolutes)
setSaveAbsolutes in interface com.adventnet.nms.poll.corba.PolledData_CIOperationssaveAbsolutes - whether absolute values of the counters are to be stored or notgetSaveAbsolutes()public boolean getTimeAvg()
getTimeAvg in interface com.adventnet.nms.poll.corba.PolledData_CIOperationssetTimeAvg(boolean)public void setTimeAvg(boolean timeAvg)
setTimeAvg in interface com.adventnet.nms.poll.corba.PolledData_CIOperationstimeAvg - whether the data to be collected is to be averaged with time or notgetTimeAvg()public java.lang.String getWebNMS()
getWebNMS in interface com.adventnet.nms.poll.corba.PolledData_CIOperationssetWebNMS(String)public void setWebNMS(java.lang.String webNMS)
setWebNMS in interface com.adventnet.nms.poll.corba.PolledData_CIOperationswebNMS - the name of the servergetWebNMS()public java.lang.String getGroupName()
getGroupName in interface com.adventnet.nms.poll.corba.PolledData_CIOperationssetGroupName(String)public void setGroupName(java.lang.String group)
setGroupName in interface com.adventnet.nms.poll.corba.PolledData_CIOperationsgroup - the polling groupgetGroupName()public java.lang.String getParentObj()
public void setParentObj(java.lang.String moname)
moname - name of the Managed Objectpublic void setProtocol(java.lang.String proto)
proto - protocol stringPollAPI.addProtocolProvider(String,ProtocolProvider)public java.lang.String getProtocol()
public int getSavePollCount()
public void setSavePollCount(int v)
setSave(boolean).
Note saveOnThreshold property
and this cannot be used together.The default value for
savePollCount is 1.
v - Value to assign to savePollCount.public int getCurrentSaveCount()
savePollCount
property is set to a value > 1.
This is used to keep track of number of polls that occurred after last
save. For example, if savePollCount is 3, the collected data will be
saved only after the third poll ( the collected data from the first 2
polls will be ignored) . To keep track of the number of polls that has
occured, currentSaveCount will be increased after each poll and when it
reaches 3 , the collected data will be stored and this field will be
reset to 0 and so on.
public void setCurrentSaveCount(int v)
savePollCount
property is set to a value > 1.
This is used to keep track of number of polls that occurred after last
save. For example, if savePollCount is 3, the collected data will be
saved only after the third poll ( the collected data from the first 2
polls will be ignored) . To keep track of the number of polls that has
occured, currentSaveCount will be increased after each poll and when it
reaches 3 , the collected data will be stored and this field will be
reset to 0 and so on.
v - Value to assign to currentSaveCount.public boolean getSaveOnThreshold()
public void setSaveOnThreshold(boolean save)
setSave(boolean).
NotesavePollCount property and this
cannot be used together.The default value for
saveOnThreshold is false.
save - Value to assign to saveOnThreshold.getSaveOnThreshold()public java.lang.String getSnmpVersion()
public void setSnmpVersion(java.lang.String v)
v - Value to assign to snmpVersion.public java.lang.String getUserName()
public void setUserName(java.lang.String v)
v - Value to assign to userName.public java.lang.String getContextName()
public void setContextName(java.lang.String v)
v - Value to assign to contextName.public java.lang.Object getLockId()
LockableObjectpublic void setLockId(java.lang.Object lockId)
lockId - The lock object associated with the PolledData.LockableObject
public void setUserProperty(java.lang.String name,
java.lang.String value)
setUserProperty in interface DBExtendedInterfacename - Name (key) of the user property to be added.value - Value(as an Objcet) of the user property to be added.public java.lang.String getUserProperty(java.lang.String name)
getUserProperty in interface DBExtendedInterfacename - Name of the user property whose value is to be obtained.
public java.lang.Object getDynamicUserProperty(java.lang.String nam)
public void setDynamicUserProperty(java.lang.String key,
java.lang.Object value)
public java.util.Properties getUserProperties()
getUserProperties in interface DBExtendedInterfacepublic java.lang.String removeUserProperty(java.lang.String name)
removeUserProperty in interface DBExtendedInterfacename - Name of the user property to be removed.
public void checkAgainstThresholds(long time,
java.lang.String val)
public void checkAgainstThresholds(long time,
long val)
public boolean logAllData(java.lang.String logFile)
logFile - the name of the log file
setLogDirectly(boolean)
public boolean logAllData(java.lang.String logFile,
java.lang.String date)
logFile - the name of the log filedate - the date of data collection
public boolean logAllData(java.lang.String logFile,
java.util.Date date)
logFile - the name of the filedate - the date of data collection
setLogDirectly(boolean)public java.lang.Object clone()
clone in interface DBInterfaceclone in class java.lang.Objectpublic void setProperties(java.util.Properties prop)
period , policyName, agent, dnsName, pollerName, numericType, port, lastCounterValue, lastTimeValue, timeVal, previousSeverity failureCount, failureThreshold, savePollCount, currentSaveCount snmpVersion, userName, contextName, isMultiplePolledData saveAbsolutes, timeAvg, name, community, active, oid, groupName save, logDirectly, logFile, threhsold, statsDataTableName, suffix ownerName, thresholdList, parentObj, protocol, saveOnThresholdIf any other additional property is present in the properties object , it will be taken as a user property. Id of a PolledData cannot be set using this method.
setProperties in interface DBInterfacep - Properties which has to be assigned to this PolledData.public java.util.Properties getProperties()
getProperties in interface DBInterfacepublic java.lang.String getKey()
getKey in interface com.adventnet.nms.poll.corba.PolledData_CIOperationsgetKey in interface DBInterfacepublic java.lang.String getKeyName()
getKeyName in interface com.adventnet.nms.poll.corba.PolledData_CIOperationsgetKeyName in interface DBInterfacepublic void setProperties_CT(com.adventnet.nms.common.corba.Property_CT[] propertyList)
setProperties_CT in interface com.adventnet.nms.poll.corba.PolledData_CIOperationspropertyList - the property listpublic com.adventnet.nms.common.corba.Property_CT[] getProperties_CT()
getProperties_CT in interface com.adventnet.nms.poll.corba.PolledData_CIOperationspublic java.util.Map getMappedProperties()
public void setMappedProperties(java.util.Map mappedProps)
public PollTieRefHolder getTieRefHolder_PolledData()
public void updateCurrentSaveCount()
curentSaveCount after each data collection.
public void setCounterUpdateRequired(boolean isCounter)
Can be set in protocol provider or data decoder. Please note that this is just a transient variable and is not a property of PolledData and so will not be stored in database.
public boolean getCounterUpdateRequired()
setCounterUpdateRequired(boolean)
|
"WEBNMS_5 API Docs" | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||