|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdevices.PollResult
The actual information retrieved from a managed Attribute. The class conatins all the information about a specific Attribute at a single point in time.
It does not contain the actual IP Address of the Device. Retrieve this from the Device for which the Attribute was polled.
| Constructor Summary | |
PollResult(long deviceID,
int ifIndex,
int oid,
java.lang.String ifDescr,
long value)
Create a PollResult w/o the timeStamp. |
|
PollResult(long deviceID,
int ifIndex,
int oid,
java.sql.Timestamp timeStamp,
java.lang.String ifDescr,
long value)
Create a full PollResults object. |
|
PollResult(java.sql.ResultSet sqlResults)
Create a PollResult from a database query result. |
|
| Method Summary | |
boolean |
dbAddPoll(java.sql.Connection dbConn)
Save a poll of an Attribute to the databse. |
long |
getDeviceID()
Getters & Setters |
java.lang.String |
getIfDescr()
|
int |
getIfIndex()
|
int |
getOid()
|
java.sql.Timestamp |
getTimeStamp()
|
long |
getValue()
|
void |
setValue(long value)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PollResult(long deviceID,
int ifIndex,
int oid,
java.lang.String ifDescr,
long value)
deviceID - database record ID of the DeviceifIndex - index of the Interface on the Deviceoid - which Attribute of the Interface was polledifDescr - the description of the interfacevalue - long result of the poll
public PollResult(long deviceID,
int ifIndex,
int oid,
java.sql.Timestamp timeStamp,
java.lang.String ifDescr,
long value)
deviceID - database record ID of the DeviceifIndex - index of the Interface on the DevicetimeStamp - date the poll occuredoid - which Attribute of the Interface was polledifDescr - the description of the interfacevalue - long result of the poll
public PollResult(java.sql.ResultSet sqlResults)
throws java.sql.SQLException
sqlResults - ResultSet holding the row from which to create the PollResult
java.sql.SQLException - to indicate any data translation problems| Method Detail |
public boolean dbAddPoll(java.sql.Connection dbConn)
dbConn - Connection to the databasepublic java.lang.String toString()
public long getDeviceID()
public int getIfIndex()
public int getOid()
public java.sql.Timestamp getTimeStamp()
public java.lang.String getIfDescr()
public long getValue()
public void setValue(long value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||