com.ibm.retail.si.mgmt.swdist
Class DeviceDistributionRecord

java.lang.Object
  |
  +--com.ibm.retail.si.mgmt.swdist.DeviceDistributionRecord
All Implemented Interfaces:
java.io.Serializable

public class DeviceDistributionRecord
extends java.lang.Object
implements java.io.Serializable

Holds information about the installation/uninstallation of a package on a particular device

Version:
1.0
Author:
Chris D Arrington
See Also:
Serialized Form

Constructor Summary
protected DeviceDistributionRecord(java.lang.String deviceSystemId, int deviceType, com.ibm.retail.si.mgmt.swdist.MgmtSftPackage swPackage, boolean isInstall)
           
protected DeviceDistributionRecord(java.lang.String deviceSystemId, int deviceType, com.ibm.retail.si.mgmt.swdist.MgmtSftPackage swPackage, boolean isInstall, boolean completed, int intervalPercentage, int rc)
          Constructs a new record
protected DeviceDistributionRecord(java.lang.String deviceSystemId, int deviceType, com.ibm.retail.si.mgmt.swdist.MgmtSftPackage swPackage, boolean isInstall, int intervalPercentage)
           
 
Method Summary
 boolean equals(java.lang.Object o)
          Determines equality based on deviceType, install/uninstall, device system Id, and the target MgmtSftPackage
 int getBusyCount()
           
 java.lang.String getDeviceSystemId()
           
 int getDeviceType()
           
 int getFailedConnectionCount()
           
 int getIntervalPercentage()
           
 int getRc()
           
 com.ibm.retail.si.mgmt.swdist.MgmtSftPackage getSwPackage()
           
 void incBusyCount()
          Increments the busy count
 void incFailedConnectionCount()
          Increments the failed connection count
 boolean isCompleted()
           
 boolean isInstall()
           
 void resetBusyCount()
          Resets the busy count
 void resetFailedConnectionCount()
          Resets the failed connection count
 void setCompleted(boolean b)
           
 void setDeviceSystemId(java.lang.String string)
           
 void setDeviceType(int integer)
           
 void setInstall(boolean b)
           
 void setIntervalPercentage(int i)
           
 void setRc(int i)
           
 void setSwPackage(com.ibm.retail.si.mgmt.swdist.MgmtSftPackage package1)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeviceDistributionRecord

protected DeviceDistributionRecord(java.lang.String deviceSystemId,
                                   int deviceType,
                                   com.ibm.retail.si.mgmt.swdist.MgmtSftPackage swPackage,
                                   boolean isInstall)

DeviceDistributionRecord

protected DeviceDistributionRecord(java.lang.String deviceSystemId,
                                   int deviceType,
                                   com.ibm.retail.si.mgmt.swdist.MgmtSftPackage swPackage,
                                   boolean isInstall,
                                   int intervalPercentage)

DeviceDistributionRecord

protected DeviceDistributionRecord(java.lang.String deviceSystemId,
                                   int deviceType,
                                   com.ibm.retail.si.mgmt.swdist.MgmtSftPackage swPackage,
                                   boolean isInstall,
                                   boolean completed,
                                   int intervalPercentage,
                                   int rc)
Constructs a new record

Parameters:
deviceSystemId - System ID of the target device
deviceType - Device type of target device
swPackage - Package to install
isInstall - True if this is an install, false if an uninstall
completed - Whether or not this distribution has completed
intervalPercentage - Percentage interval for sending notifications. 0 disables them
rc - Return code from the last request.
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Determines equality based on deviceType, install/uninstall, device system Id, and the target MgmtSftPackage

Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object), MgmtSftPackage.equals(Object)

isCompleted

public boolean isCompleted()
Returns:
boolean True if this distribution has completed, false otherwise

getDeviceSystemId

public java.lang.String getDeviceSystemId()
Returns:
String SystemID of the target device

getDeviceType

public int getDeviceType()
Returns:
int Device type of the target device

getIntervalPercentage

public int getIntervalPercentage()
Returns:
int Interval percentage for status notifications. Setting this to 0 disables status notifications

isInstall

public boolean isInstall()
Returns:
boolean True if this is an install, false otherwise

getRc

public int getRc()
Returns:
int Return code from the last installation request

getSwPackage

public com.ibm.retail.si.mgmt.swdist.MgmtSftPackage getSwPackage()
Returns:
MgmtSftPackage Target software package for removal/installation

setCompleted

public void setCompleted(boolean b)
Parameters:
b -
See Also:
isCompleted()

setDeviceSystemId

public void setDeviceSystemId(java.lang.String string)
Parameters:
string -
See Also:
getDeviceSystemId()

setDeviceType

public void setDeviceType(int integer)
Parameters:
integer -
See Also:
getDeviceType()

setIntervalPercentage

public void setIntervalPercentage(int i)
Parameters:
i -
See Also:
getIntervalPercentage()

setInstall

public void setInstall(boolean b)
Parameters:
b -
See Also:
isInstall()

setRc

public void setRc(int i)
Parameters:
i -
See Also:
getRc()

setSwPackage

public void setSwPackage(com.ibm.retail.si.mgmt.swdist.MgmtSftPackage package1)
Parameters:
package1 -
See Also:
getSwPackage()

getBusyCount

public int getBusyCount()
Returns:
int The number of times this distribution has been attempted with a busy client response

getFailedConnectionCount

public int getFailedConnectionCount()
Returns:
int The number of failed connection attempts to the client

incBusyCount

public void incBusyCount()
Increments the busy count


incFailedConnectionCount

public void incFailedConnectionCount()
Increments the failed connection count


resetBusyCount

public void resetBusyCount()
Resets the busy count


resetFailedConnectionCount

public void resetFailedConnectionCount()
Resets the failed connection count



Copyright © 2004 IBM. All Rights Reserved.
Generated: July 19 2004