controllers
Class AttribMonitorCtrl
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
controllers.AttribMonitorCtrl
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- public class AttribMonitorCtrl
- extends javax.servlet.http.HttpServlet
Handles the processing of a request to change the monitoring status of a device's interfaces.
Access this controller through the InterfaceMonitor servlet.
Web form commands handled:
- selectDevices – retrieve a list of devices in the database
Success data returned:
- devList – DeviceList databean holding the list of devices
- results – FormResults databean holding the status of the
selectDevices command
Error data returned:
- entry – DeviceSelectParams databean holding the original
data from the deviceSelect form
- results – FormResults databean holding the error message
- selectInterfaces – retrieve a list of device interfaces in the database
Success data returned:
- deviceID – long value of the device's record ID
- deviceName – String containing the device's name (name : IP)
- ifList – ArrayList holding the list of device interfaces
- results – FormResults databean holding the status of the
selectInterfaces command
Error data returned:
- entry – DeviceSelectParams databean holding the original
data from the deviceSelect form
- results – FormResults databean holding the error message
- selectAttributes – retrieve a list of device interface attributes in the database
Success data returned:
- deviceID – long value of the device's record ID
- deviceName – String containing the device's name (name : IP)
- ifIndex – int value of the interface's ifTable index
- ifDescr – String containing the interface's description
- attribList – ArrayList containing a device interface's attributes
- results – FormResults databean holding the status of the
selectInterfaces command
Error data returned:
- entry – DeviceSelectParams databean holding the original
data from the deviceSelect form
- results – FormResults databean holding the error message
- updateAttributes – execute the update of a device interface's attributes
monitoring status
Data returned:
- results – FormResults databean holding the status of the
updateAttributes command (list of modified device interface attributes if okay and
error message if not okay)
Commands used:
- SelectDevices to execute the databse query and return the list of devices
- SelectInterfaces to execute the databse query and return the list of device
interfaces
- SelectAttributes to execute the databse query to return the list of
device interface attributes
- UpdateAttribute to execute the update of device interface attributes with
a change in monitoring status
- Version:
- 0.1
- Author:
- gswalters
- See Also:
- Serialized Form
|
Method Summary |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttribMonitorCtrl
public AttribMonitorCtrl()
doGet
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
- Throws:
javax.servlet.ServletException
java.io.IOException
doPost
public void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
- Throws:
javax.servlet.ServletException
java.io.IOException