devices
Class DbPollResult
java.lang.Object
devices.DbPollResult
- public class DbPollResult
- extends java.lang.Object
Process PollResult records in the database.
Insert, retrieve, and remove records in the PollResult table.
Each PollResult record exists for a specific Device Interface's Attribute.
- Version:
- 0.1
- Author:
- gswalters
|
Method Summary |
static java.util.ArrayList |
getIfAll(java.sql.Connection dbConn,
long deviceID,
int ifIndex,
int oid)
Retrieve all the PollResult records for a specific Device Interface's Attribute. |
static java.util.ArrayList |
getIfRange(java.sql.Connection dbConn,
long deviceID,
int ifIndex,
int oid,
java.sql.Timestamp startDate,
java.sql.Timestamp stopDate)
Retrieve all the PollResult records for a specific Device Interface's Attribute within a date range. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DbPollResult
public DbPollResult()
getIfAll
public static java.util.ArrayList getIfAll(java.sql.Connection dbConn,
long deviceID,
int ifIndex,
int oid)
- Retrieve all the PollResult records for a specific Device Interface's Attribute.
- Parameters:
deviceID - long value of the ManagedDevice record IDifIndex - int value of the Device Interface indexoid - int value of the Attribute's final OID
- Returns:
- PollResult array - a null value indicates not found or an error occured
getIfRange
public static java.util.ArrayList getIfRange(java.sql.Connection dbConn,
long deviceID,
int ifIndex,
int oid,
java.sql.Timestamp startDate,
java.sql.Timestamp stopDate)
- Retrieve all the PollResult records for a specific Device Interface's Attribute within a date range.
- Parameters:
deviceID - long value of the ManagedDevice record IDifIndex - int value of the Device Interface indexoid - int value of the Attribute's final OIDstartDate - Date object with the starting point of the searchstopDate - Date object with the ending point of the search
- Returns:
- PollResult array - a null value indicates not found or an error occured