All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.install.products.ProductServerObject

java.lang.Object
   |
   +----com.sun.install.products.ProductServerObject

public class ProductServerObject
extends Object
implements ServerObject, Serializable
The ProductServerObject is an object that is used to get product size information for panel display. It interfaces to the runtime system through the use of the SystemInterface object.


Constructor Index

 o ProductServerObject()
Create a new sizeServerObject which also instantiates the correct platform-dependent system interface

Method Index

 o addRuntimeResources(Vector)
Get the runtime classes required by this ServerObject.
 o getPartitionNames()
Interfaces with the system to retrieve the runtime partition names.
 o getProperty(String, Vector)
Gets a list of properties out of the product tree, keyed by the component ID.
 o getProperty(String, Vector, String)
Gets a list of properties out of the product tree, keyed by the component ID.
 o getSelectedDestinationTable()
Get the partition size requirements for the currently selected components.
 o getTempDirectory()
Utility function to get a temporary directory name
 o getUndersizedPartitions(Hashtable)
Get the partitions for which the available space is insufficient to install this product.
 o initialize()
Initializes this product server object.
 o reduceToPartitions(Hashtable)
Merges a table together with itself, reducing to entries with partition names as keys into one entry, as well as entries that have a partition name as a prefix
 o setWizardState(WizardState)
This method sets the WizardState into the object at runtime, and creates the systerm interface for interacting with the native system.

Constructors

 o ProductServerObject
 public ProductServerObject()
Create a new sizeServerObject which also instantiates the correct platform-dependent system interface

Methods

 o setWizardState
 public void setWizardState(WizardState wizardState)
This method sets the WizardState into the object at runtime, and creates the systerm interface for interacting with the native system.

Parameters:
wizardState - The WizardState parent.
 o addRuntimeResources
 public void addRuntimeResources(Vector resourceVector)
Get the runtime classes required by this ServerObject.

Parameters:
resourceVector - the vector to add the required resources to.
 o initialize
 public Boolean initialize()
Initializes this product server object.

Returns:
Boolean(true) if the tree is valid, Boolean(false) otherwise.
 o getProperty
 public Hashtable getProperty(String values,
                              Vector rules)
Gets a list of properties out of the product tree, keyed by the component ID.

Parameters:
values - The property to retrieve out of each component
rules - The rules to use in determining if each component should report a value. If the component does not pass the rules, the value is not added to the return table.
Returns:
The table of values for the components that passed the rules, keyed by the component ID.
 o getProperty
 public Hashtable getProperty(String values,
                              Vector rules,
                              String sharedPoolKey)
Gets a list of properties out of the product tree, keyed by the component ID.

Parameters:
values - The property to retrieve out of each component
rules - The rules to use in determining if each component should report a value. If the component does not pass the rules, the value is not added to the return table.
Returns:
The table of values for the components that passed the rules, keyed by the component ID.
 o getPartitionNames
 public Vector getPartitionNames()
Interfaces with the system to retrieve the runtime partition names.

Returns:
The list of partition names
 o getTempDirectory
 public String getTempDirectory()
Utility function to get a temporary directory name

 o getSelectedDestinationTable
 public Hashtable getSelectedDestinationTable()
Get the partition size requirements for the currently selected components.

Returns:
The table of pathnames and files that would be installed by this wizard.
 o reduceToPartitions
 public Hashtable reduceToPartitions(Hashtable productTable)
Merges a table together with itself, reducing to entries with partition names as keys into one entry, as well as entries that have a partition name as a prefix

Parameters:
productTable - The table we are merging.
Returns:
The new table, with entries consisting of solely partition names.
 o getUndersizedPartitions
 public Hashtable getUndersizedPartitions(Hashtable productTable)
Get the partitions for which the available space is insufficient to install this product. If the product WILL fit, this method returns null.

Format:

"Partition name", Integer(difference in space required)

Parameters:
productTable - The table to examine for oversized entries
Returns:
A table consisting of a list of entries that will not fit into their destination partition. If all entries will fit, this method returns null.

All Packages  Class Hierarchy  This Package  Previous  Next  Index