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.
-
ProductServerObject()
- Create a new sizeServerObject which also instantiates the
correct platform-dependent system interface
-
addRuntimeResources(Vector)
- Get the runtime classes required by this ServerObject.
-
getPartitionNames()
- Interfaces with the system to retrieve the runtime partition names.
-
getProperty(String, Vector)
- Gets a list of properties out of the product tree, keyed by the component ID.
-
getProperty(String, Vector, String)
- Gets a list of properties out of the product tree, keyed by the component ID.
-
getSelectedDestinationTable()
- Get the partition size requirements for the currently selected
components.
-
getTempDirectory()
- Utility function to get a temporary directory name
-
getUndersizedPartitions(Hashtable)
- Get the partitions for which the available space is insufficient to
install this product.
-
initialize()
- Initializes this product server object.
-
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
-
setWizardState(WizardState)
- This method sets the WizardState into the object at runtime, and creates the systerm interface
for interacting with the native system.
ProductServerObject
public ProductServerObject()
- Create a new sizeServerObject which also instantiates the
correct platform-dependent system interface
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.
addRuntimeResources
public void addRuntimeResources(Vector resourceVector)
- Get the runtime classes required by this ServerObject.
- Parameters:
- resourceVector - the vector to add the required resources to.
initialize
public Boolean initialize()
- Initializes this product server object.
- Returns:
- Boolean(true) if the tree is valid, Boolean(false) otherwise.
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.
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.
getPartitionNames
public Vector getPartitionNames()
- Interfaces with the system to retrieve the runtime partition names.
- Returns:
- The list of partition names
getTempDirectory
public String getTempDirectory()
- Utility function to get a temporary directory name
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.
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.
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