|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdevices.DeviceInterface
An interface (e.g., port) contained within a Device. Each interface may be a port, or a module of other ports. It is the interface that contains attributes to poll and monitor.
| Constructor Summary | |
DeviceInterface(java.sql.Connection dbConn,
long deviceID,
int ifIndex)
Query the database and create a DeviceInterface from the query results. |
|
DeviceInterface(long deviceID,
int ifIndex,
java.lang.String ifDescr,
long ifSpeed,
int ifOperStatus,
boolean monitored,
boolean removed)
Create a full DeviceInterface object. |
|
DeviceInterface(java.sql.ResultSet sqlResults)
Create a DeviceInterface from a database query result set. |
|
| Method Summary | |
boolean |
dbInsertInterface(java.sql.Connection dbConn)
Add a new Interface to the database. |
boolean |
dbUpdateInterface(java.sql.Connection dbConn)
Update detail fields in a DeviceInterface record in the database. |
long |
getDeviceID()
Getters |
java.lang.String |
getIfDescr()
|
int |
getIfIndex()
|
int |
getIfOperStatus()
|
long |
getIfSpeed()
|
boolean |
isMonitored()
|
boolean |
isRemoved()
|
void |
setDeviceID(long deviceID)
Setters |
void |
setIfDescr(java.lang.String ifDescr)
|
void |
setIfIndex(int ifIndex)
|
void |
setIfOperStatus(int ifOperStatus)
|
void |
setIfSpeed(long ifSpeed)
|
void |
setMonitored(boolean monitored)
|
void |
setRemoved(boolean removed)
|
java.lang.String |
toString()
Convert the DeviceInterface object into a printable String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DeviceInterface(long deviceID,
int ifIndex,
java.lang.String ifDescr,
long ifSpeed,
int ifOperStatus,
boolean monitored,
boolean removed)
ifIndex - index of the DeviceInterface within the Device.ifDescr - name of the DeviceInterface.ifSpeed - port speed of the interface (e.g., 10000 for 10Mbit)ifOperStatus - current status of the interface (up/down/testing)monitored - monitoring state of the Interfaceremoved - availability of the Interface
public DeviceInterface(java.sql.Connection dbConn,
long deviceID,
int ifIndex)
throws java.sql.SQLException
dbConn - Connection to the databasedeviceID - long value of the Device's DB record IDifIndex - index of the DeviceInterface within the Device
public DeviceInterface(java.sql.ResultSet sqlResults)
throws java.sql.SQLException
sqlResults - single result set from a database query of the Interface table| Method Detail |
public boolean dbInsertInterface(java.sql.Connection dbConn)
public boolean dbUpdateInterface(java.sql.Connection dbConn)
dbConn - Connection to the database
public java.lang.String toString()
public void setDeviceID(long deviceID)
public void setIfIndex(int ifIndex)
public void setIfDescr(java.lang.String ifDescr)
public void setIfSpeed(long ifSpeed)
public void setIfOperStatus(int ifOperStatus)
public void setMonitored(boolean monitored)
public void setRemoved(boolean removed)
public long getDeviceID()
public int getIfIndex()
public java.lang.String getIfDescr()
public long getIfSpeed()
public int getIfOperStatus()
public boolean isMonitored()
public boolean isRemoved()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||