commands
Class AddDevices

java.lang.Object
  extended bycommands.AddDevices

public class AddDevices
extends java.lang.Object

Command to process an add new devices to the GLTMon database request.

Version:
0.1
Author:
gswalters

Constructor Summary
AddDevices()
          Construct a default AddDevices command with an empty list of devices.
 
Method Summary
 void done()
          Clean up after the command's execution.
 void execute()
          Execute the discovery of new devices to add to the GLTMon database.
 java.lang.String getAddedDevices()
           
 DeviceAddParams getParams()
           
 void initialize(java.lang.String dbContext, javax.servlet.http.HttpServletRequest request)
          Setup the command and verify all the parameters and the database connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddDevices

public AddDevices()
Construct a default AddDevices command with an empty list of devices.

Method Detail

getAddedDevices

public java.lang.String getAddedDevices()

getParams

public DeviceAddParams getParams()

initialize

public void initialize(java.lang.String dbContext,
                       javax.servlet.http.HttpServletRequest request)
                throws java.lang.Exception
Setup the command and verify all the parameters and the database connection.

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

execute

public void execute()
             throws java.lang.Exception
Execute the discovery of new devices to add to the GLTMon database.

Throws:
java.lang.Exception - to indicate problems

done

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