|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcommands.SelectAttributes
Commands to retrieve a list of attributes for a device interface from the GLTMon database. The commands return either monitored, unmonitored, unremoved, or removed attributes. Using the deviceID and ifIndex, query the database for Device interface's attributes.
| Constructor Summary | |
SelectAttributes()
Construct a default SelectAttributes command with an empty array. |
|
| Method Summary | |
void |
done()
Clean up after the command's execution. |
java.util.ArrayList |
getAttributes()
|
Device |
getDevice()
|
DeviceInterface |
getInterface()
|
void |
initialize(java.sql.Connection dbConn,
long deviceID,
int ifIndex)
|
void |
initialize(java.lang.String dbContext,
javax.servlet.http.HttpServletRequest request)
Initialize the command with the parameters and database context. |
void |
initialize(java.lang.String dbContext,
long deviceID,
int ifIndex)
Initialize the command with the deviceID and ifIndex and database context. |
void |
selAllAttributes()
Select all attributes for a device interface. |
void |
selMonAttributes()
Select the monitored attributes for a device interface. |
void |
selRemAttributes()
Select the monitored attributes for a device interface. |
void |
selUnMonAttributes()
Select the unmonitored attributes for a device interface. |
void |
selUnRemAttributes()
Select the unremoved attributes for a device interface. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SelectAttributes()
| Method Detail |
public Device getDevice()
public DeviceInterface getInterface()
public java.util.ArrayList getAttributes()
public void initialize(java.lang.String dbContext,
long deviceID,
int ifIndex)
throws java.lang.Exception
dbContext - String containing the JNDI context resourcedeviceID - long record ID of a single deviceifIndex - int value of the interface index for a device
java.lang.Exception - containing the reason the initialize failed
public void initialize(java.lang.String dbContext,
javax.servlet.http.HttpServletRequest request)
throws java.lang.Exception
dbContext - String containing the JNDI context resourcerequest - HttpServletRequest request header from the Web page
java.lang.Exception - containing the reason the initialize failed
public void initialize(java.sql.Connection dbConn,
long deviceID,
int ifIndex)
throws java.lang.Exception
java.lang.Exception
public void selMonAttributes()
throws java.lang.Exception
java.lang.Exception - to problems
public void selUnMonAttributes()
throws java.lang.Exception
java.lang.Exception - to problems
public void selUnRemAttributes()
throws java.lang.Exception
java.lang.Exception - to problems
public void selRemAttributes()
throws java.lang.Exception
java.lang.Exception - to problems
public void selAllAttributes()
throws java.lang.Exception
java.lang.Exception - to problemspublic void done()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||