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

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

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

Holds information about a software package, which is a group of MgmtSftComponents installed as one unit

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

Constructor Summary
MgmtSftPackage(java.lang.String name)
          Creates a package with no components
MgmtSftPackage(java.lang.String name, com.ibm.retail.si.mgmt.swdist.MgmtSftComponent[] comps)
          Creates a package with an initial set of components
 
Method Summary
 void addComponent(com.ibm.retail.si.mgmt.swdist.MgmtSftComponent component)
           
 boolean equals(java.lang.Object o)
          Determines equality based on name, hostPath, clientPath, and each MgmtCftComponent
 java.lang.String getClientPath()
          Optional installation parameter specifying a path on the client to install
 com.ibm.retail.si.mgmt.swdist.MgmtSftComponent[] getComponents()
           
 java.lang.String getHostPath()
           
 java.lang.String getName()
           
 long getSize()
          Returns the total size of all MgmtSftComponent in this package
 void setClientPath(java.lang.String clientPath)
           
 void setHostPath(java.lang.String hostPath)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MgmtSftPackage

public MgmtSftPackage(java.lang.String name)
Creates a package with no components

Parameters:
name - Name of the package

MgmtSftPackage

public MgmtSftPackage(java.lang.String name,
                      com.ibm.retail.si.mgmt.swdist.MgmtSftComponent[] comps)
Creates a package with an initial set of components

Parameters:
name - Name of the package
comps - Array of MgmtSftComponent
Method Detail

getName

public java.lang.String getName()

addComponent

public void addComponent(com.ibm.retail.si.mgmt.swdist.MgmtSftComponent component)

getComponents

public com.ibm.retail.si.mgmt.swdist.MgmtSftComponent[] getComponents()

getClientPath

public java.lang.String getClientPath()
Optional installation parameter specifying a path on the client to install

Returns:
Client path for installation

getHostPath

public java.lang.String getHostPath()
Returns:
Path on the FTP server where this package can be located

setClientPath

public void setClientPath(java.lang.String clientPath)
Parameters:
clientPath - New local client path
See Also:
getClientPath()

setHostPath

public void setHostPath(java.lang.String hostPath)
Parameters:
hostPath - New FTP server path for this package
See Also:
getHostPath()

getSize

public long getSize()
Returns the total size of all MgmtSftComponent in this package

Returns:
Sum of all MgmtSftComponent's sizes

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 name, hostPath, clientPath, and each MgmtCftComponent

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


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