common
Class DeviceAdd

java.lang.Object
  extended bycommon.DeviceAdd

public class DeviceAdd
extends java.lang.Object

The main class of the network device auto-discovery process. Using either a range of IP addresses, or a single address, harvest the devices that respond, and if told to, set them to monitored as well.

For a single device run, the start equals the stop.

This class requires an established database connection and does not close that connection. Also, the parameters must be valid before using this class.

This class provides funtionality common to the Web application and the server application.

Version:
0.1
Author:
gswalters

Constructor Summary
DeviceAdd(DeviceAddParams params, java.sql.Connection dbConn)
          Default constructor for an DeviceAdd run.
 
Method Summary
 java.lang.String scanDevices()
          Scan a range of IP addresses from the base.start to the base.stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeviceAdd

public DeviceAdd(DeviceAddParams params,
                 java.sql.Connection dbConn)
Default constructor for an DeviceAdd run. Creates the DeviceAdd object w/ the arguments passed into the constructor. Requires an established database connection object.

Parameters:
params - DeviceAddParams containing the individual run arguments
dbConn - Connection containing the established database connection
Method Detail

scanDevices

public java.lang.String scanDevices()
Scan a range of IP addresses from the base.start to the base.stop