devices
Class DbPollResult

java.lang.Object
  extended bydevices.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

Constructor Summary
DbPollResult()
           
 
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
 

Constructor Detail

DbPollResult

public DbPollResult()
Method Detail

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 ID
ifIndex - int value of the Device Interface index
oid - 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 ID
ifIndex - int value of the Device Interface index
oid - int value of the Attribute's final OID
startDate - Date object with the starting point of the search
stopDate - Date object with the ending point of the search
Returns:
PollResult array - a null value indicates not found or an error occured