commands
Class SelectPollResults

java.lang.Object
  extended bycommands.SelectPollResults

public class SelectPollResults
extends java.lang.Object

Command to retrieve a set of PollResults from the GLTMon database. Using the deviceID, ifIndex, oid, startDate, and stopDate query the database for matching PollResults.

Version:
0.1
Author:
gswalters

Constructor Summary
SelectPollResults()
           
 
Method Summary
 void done()
          Clean up after the command's execution.
 void execute()
          Execute the SelectPollResults command.
 java.lang.String getDeviceName()
           
 java.lang.String getIfDescr()
           
 java.lang.String getOidName()
           
 java.util.ArrayList getPollResults()
           
 java.lang.String getStartDate()
           
 java.lang.String getStopDate()
           
 void initialize(java.lang.String dbContext, javax.servlet.http.HttpServletRequest request)
          Initialize the command with the parameters and database context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectPollResults

public SelectPollResults()
Method Detail

getDeviceName

public java.lang.String getDeviceName()

getIfDescr

public java.lang.String getIfDescr()

getOidName

public java.lang.String getOidName()

getPollResults

public java.util.ArrayList getPollResults()

getStartDate

public java.lang.String getStartDate()

getStopDate

public java.lang.String getStopDate()

initialize

public void initialize(java.lang.String dbContext,
                       javax.servlet.http.HttpServletRequest request)
                throws java.lang.Exception
Initialize the command with the parameters and database context. If either has problems, throw an exception to indicate the problem.

Parameters:
dbContext - String containing the JNDI context resource
request - HttpServletRequest request header from the Web page
Throws:
java.lang.Exception - containing the reason the initialize failed

execute

public void execute()
             throws java.lang.Exception
Execute the SelectPollResults command.

Throws:
java.lang.Exception - to problems

done

public void done()
Clean up after the command's execution.