controllers
Class ReportTrendCtrl
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
controllers.ReportTrendCtrl
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- public class ReportTrendCtrl
- extends javax.servlet.http.HttpServlet
Handles the processing of a request to generate a trend report.
Web form commands handled:
- selectDevices – retrieve a list of devices in the database
Data returned:
- devList – DeviceList databean holding the list of devices
if the command was successful
- entry – DeviceSelectParams databean holding the original
data from the deviceSelect form if the command was unsuccessful
- results – FormResults databean holding the status of the
selectDevices command
- selectInterfaces – retrieve a list of interfaces for a specific
device
Data returned:
- deviceID – long value of the device's record ID
- deviceName – String containing the device's name (name : IP)
- ifList – ArrayList containing a device's interfaces
- results – FormResults databean holding the status of the
selectInterfaces command
Error data returned:
- entry – DeviceSelectParams databean holding empty values
- results – FormResults databean holding the error message
- selectAttributes – retrieve a list of attributes for a specific
device interface
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
- startTime – String containing the start date
- stopTime – String containing the stop date
- dateRange – ArrayList of dates between the start and stop
- results – FormResults databean holding the status of the
selectAttributes command
Error data returned:
- entry – DeviceSelectParams databean holding empty values
- results – FormResults databean holding the error message
- runReport – create the dataset for a trend report
Data returned:
- reportType – type of report data created (raw or dataset)
- rawData – TreeMap containing date/value pairs
- reportData – ReportDataSet report producer bean
- deviceName – String containing the device's name (name : IP)
- ifDescr – String containing the interface's description
- attribName – int value of the device interface's attribute
- startTime – String containing the report's start date/time
- stopTime – String containing the report's stop date/time
- results – FormResults databean holding the status of the
runReport command
Error data returned:
- deviceID – long value of the device's record ID (only if error)
- deviceName – String containing the device's name (name : IP)
- ifIndex – int value of the interface's ifTable index (only if error)
- ifDescr – String containing the interface's description
- attribList – ArrayList containing a device interface's attributes
- startTime – String containing the original start date
- stopTime – String containing the original stop date
- dateRange – ArrayList of dates between the start and stop
- results – FormResults databean holding the error message
Commands used:
- SelectDevices to execute the databse query to return the list of devices
- SelectInterfaces to execute the databse query to return the list of
device interfaces
- SelectAttributes to execute the databse query to return the list of
device interface attributes
- SelectPollResults to execute the database query to return the list
of poll results.
- 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 |
ReportTrendCtrl
public ReportTrendCtrl()
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