|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdevices.Change
Changes represent database changes the polling process needs to know. Each Change record indicates the monitoring or unmonitoring of a Device, DeviceInterface, or Attribute, the indication that a Device, Interface, or Attribute's DB record changed, or a record may indicate time to shutdown the system.
| Field Summary | |
static java.lang.String |
MONITOR
|
static java.lang.String |
SHUTDOWN
|
static java.lang.String |
UNMONITOR
|
static java.lang.String |
UPDATE
|
| Constructor Summary | |
Change(long changeID,
java.lang.String changeType,
long deviceID,
int ifIndex,
int oid)
Construct full object. |
|
| Method Summary | |
boolean |
dbDeleteChange(java.sql.Connection dbConn)
Delete this Change record from the database. |
boolean |
dbInsertChange(java.sql.Connection dbConn)
Insert a new Change into the database. |
long |
getChangeID()
Getters |
java.lang.String |
getChangeType()
|
long |
getDeviceID()
|
int |
getIfIndex()
|
int |
getOid()
|
java.lang.String |
toString()
Convert the Change object into a printable String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String MONITOR
public static final java.lang.String UNMONITOR
public static final java.lang.String UPDATE
public static final java.lang.String SHUTDOWN
| Constructor Detail |
public Change(long changeID,
java.lang.String changeType,
long deviceID,
int ifIndex,
int oid)
Valid combinations:
shutdown, 0, 0, 0
monitor, x, 0, 0 (device)
unmonitor, x, 0, 0 (device)
monitor, x, x, 0 (interface)
unmonitor, x, x, 0 (interface)
monitor, x, x, x (attribute)
unmonitor, x, x, x (attribute)
update, x, 0, 0 (device)
update, x, x, 0 (interface)
update, x, x, x (attribute)
changeID - int value of the Change table record IDchangeType - String containing the type of changedeviceID - int value of the changed Device record in the databaseifIndex - int value of the changed DeviceInterface's indexoid - int value of the changed Attribute's OID| Method Detail |
public boolean dbInsertChange(java.sql.Connection dbConn)
public boolean dbDeleteChange(java.sql.Connection dbConn)
dbConn - Connection to the databse
public java.lang.String toString()
public long getChangeID()
public java.lang.String getChangeType()
public long getDeviceID()
public int getIfIndex()
public int getOid()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||