jhomenet.server.work.units
Class RegisterHardwareWorkUnit

java.lang.Object
  extended by 
      extended by jhomenet.server.work.units.RegisterHardwareWorkUnit
All Implemented Interfaces:
java.io.Serializable

public final class RegisterHardwareWorkUnit
extends
implements java.io.Serializable

TODO: Class description.

Id: $Id: $

Author:
Dave Irwin (jhomenet at gmail dot com)

Constructor Summary
RegisterHardwareWorkUnit(HardwareRegistrationRequest registrationRequest)
          Constructor.
RegisterHardwareWorkUnit(RegisteredHardware hardware)
          Constructor.
 
Method Summary
 RegisteredHardware execute()
          Attempt to register a hardware object with the server.
 java.lang.String getDescription()
           
 void setHardwareManager(HardwareManager hardwareRegister)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegisterHardwareWorkUnit

public RegisterHardwareWorkUnit(HardwareRegistrationRequest registrationRequest)
Constructor.

Parameters:
registrationRequest -

RegisterHardwareWorkUnit

public RegisterHardwareWorkUnit(RegisteredHardware hardware)
Constructor.

Parameters:
hardware -
Method Detail

execute

public final RegisteredHardware execute()
                                 throws WorkException
Attempt to register a hardware object with the server. This process includes doing the following: 1) Create a hardware instance using the HardwareFactory factory class 2) Attempt to register the new hardware instance with the HardwareRegistry

Throws:
WorkException
See Also:
jhomenet.commons.work.unit.IWorkUnit#execute()

setHardwareManager

public final void setHardwareManager(HardwareManager hardwareRegister)
Parameters:
hardwareRegister - The hardware registration interrogator to set

getDescription

public java.lang.String getDescription()
See Also:
jhomenet.commons.work.unit.IWorkUnit#getDescription()


Copyright © 2004-2007 David Irwin. All Rights Reserved.