commands
Class SelectDevices

java.lang.Object
  extended bycommands.SelectDevices

public class SelectDevices
extends java.lang.Object

Commands to retrieve a list of devices from the GLTMon database. The commands return either monitored, unmonitored, unremoved, or removed devices. The parameters indicate whether we will retrieve all, some (via a subnet or range), or one of the Devices.

Version:
0.1
Author:
gswalters

Constructor Summary
SelectDevices()
          Construct a default SelectDevices command with an empty array.
 
Method Summary
 void done()
          Clean up after the command's execution.
 DeviceList getDevices()
           
 DeviceSelectParams getParams()
           
 void initialize(java.lang.String dbContext, DeviceSelectParams params)
          Initialize the commands with the parameter and database context.
 void selAllDevices()
          Retrieve a list of all devices.
 void selMonDevices()
          Retrieve a list of unremoved monitored devices.
 void selRemDevices()
          Retrieve a list of removed devices.
 void selUnMonDevices()
          Retrieve a list of unremoved unmonitored devices.
 void selUnRemDevices()
          Retrieve a list of unremoved devices.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectDevices

public SelectDevices()
Construct a default SelectDevices command with an empty array.

Method Detail

getDevices

public DeviceList getDevices()

getParams

public DeviceSelectParams getParams()

initialize

public void initialize(java.lang.String dbContext,
                       DeviceSelectParams params)
                throws java.lang.Exception
Initialize the commands with the parameter and database context. If either has problems, throw an exception to indicate the problem.

Parameters:
dbContext - String containing the JNDI context resource
params - a DeviceSelectParams object containing the parameters
Throws:
java.lang.Exception - containing the reason the initialize failed

selMonDevices

public void selMonDevices()
                   throws java.lang.Exception
Retrieve a list of unremoved monitored devices. Construct the database query and submit it to the database.

Throws:
java.lang.Exception - to indicate a failed query

selUnMonDevices

public void selUnMonDevices()
                     throws java.lang.Exception
Retrieve a list of unremoved unmonitored devices. Construct the database query and submit it to the database.

Throws:
java.lang.Exception - to indicate a failed query

selUnRemDevices

public void selUnRemDevices()
                     throws java.lang.Exception
Retrieve a list of unremoved devices. Construct the database query and submit it to the database.

Throws:
java.lang.Exception - to indicate a failed query

selRemDevices

public void selRemDevices()
                   throws java.lang.Exception
Retrieve a list of removed devices. Construct the database query and submit it to the database.

Throws:
java.lang.Exception - to indicate a failed query

selAllDevices

public void selAllDevices()
                   throws java.lang.Exception
Retrieve a list of all devices. Construct the database query and submit it to the database.

Throws:
java.lang.Exception - to indicate a failed query

done

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