devices
Class DbAttribute

java.lang.Object
  extended bydevices.DbAttribute

public class DbAttribute
extends java.lang.Object

Process Attribute records in the database. Insert, retrieve, and remove records in the Attribute table. Each Attribute exists for one and only one Device Interface. Therefore, an Interface must exist prior to adding a new Attribute. It is the Attributes that are individually polled by the system.

Version:
0.1
Author:
gswalters

Constructor Summary
DbAttribute()
           
 
Method Summary
static java.util.Vector dbGetAllAttributes(java.sql.Connection dbConn, long devID, int ifIndex)
          Retrieve all Attributes from the database for a specific Device Interface.
static java.util.Vector dbGetMonitoredAttributes(java.sql.Connection dbConn, long devID, int ifIndex)
          Retrieve all monitored Attributes from the database for a specific Device Interface.
static java.util.Vector dbGetRemovedAttributes(java.sql.Connection dbConn, long devID, int ifIndex)
          Retrieve all removed Attributes from the database for a specific Device Interface.
static java.util.Vector dbGetUnmonitoredAttributes(java.sql.Connection dbConn, long devID, int ifIndex)
          Retrieve all unmonitored Attributes from the database for a specific Device Interface.
static java.util.Vector dbGetUnremovedAttributes(java.sql.Connection dbConn, long devID, int ifIndex)
          Retrieve all unremoved Attributes from the database for a specific Device Interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbAttribute

public DbAttribute()
Method Detail

dbGetAllAttributes

public static java.util.Vector dbGetAllAttributes(java.sql.Connection dbConn,
                                                  long devID,
                                                  int ifIndex)
Retrieve all Attributes from the database for a specific Device Interface.

Parameters:
devID - long value of the ManagedDevice record
ifIndex - int value of the DeviceInterface Index
Returns:
Attribute array - a null value indicates not found or an error occured

dbGetRemovedAttributes

public static java.util.Vector dbGetRemovedAttributes(java.sql.Connection dbConn,
                                                      long devID,
                                                      int ifIndex)
Retrieve all removed Attributes from the database for a specific Device Interface.

Parameters:
devID - long value of the ManagedDevice record
ifIndex - int value of the DeviceInterface Index
Returns:
Attribute array - a null value indicates not found or an error occured

dbGetUnremovedAttributes

public static java.util.Vector dbGetUnremovedAttributes(java.sql.Connection dbConn,
                                                        long devID,
                                                        int ifIndex)
Retrieve all unremoved Attributes from the database for a specific Device Interface.

Parameters:
devID - long value of the ManagedDevice record
ifIndex - int value of the DeviceInterface Index
Returns:
Attribute array - a null value indicates not found or an error occured

dbGetMonitoredAttributes

public static java.util.Vector dbGetMonitoredAttributes(java.sql.Connection dbConn,
                                                        long devID,
                                                        int ifIndex)
Retrieve all monitored Attributes from the database for a specific Device Interface.

Parameters:
devID - long value of the ManagedDevice record
ifIndex - int value of the DeviceInterface Index
Returns:
Attribute array - a null value indicates not found or an error occured

dbGetUnmonitoredAttributes

public static java.util.Vector dbGetUnmonitoredAttributes(java.sql.Connection dbConn,
                                                          long devID,
                                                          int ifIndex)
Retrieve all unmonitored Attributes from the database for a specific Device Interface.

Parameters:
devID - long value of the ManagedDevice record
ifIndex - int value of the DeviceInterface Index
Returns:
Attribute array - a null value indicates not found or an error occured