|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.jsdt.common.Base
com.ibm.jsdt.support.deploymenthelper.DeploymentHelper
com.ibm.jsdt.support.deploymenthelper.SolarisDeploymentHelper
public class SolarisDeploymentHelper
Solaris specific helper functionality.
Field Summary |
---|
Fields inherited from class com.ibm.jsdt.support.deploymenthelper.DeploymentHelper |
---|
DEPLOYER_SPECIFICATION_VERSION_KEY, ENTRY_STAGE, EXIT_STAGE, FAILURE, ISMP_GLOBAL_PROPERTY, ISMP_PRODUCT_PROPERTY, ISMP_WIZARD_PROPERTY, MAIN_STAGE, PDC_CANCEL_INSTALL, PDC_DO_NOT_INSTALL, PDC_DOES_NOT_EXIST, PDC_EXISTS, resourceBundle, SELECTED_TASK_NAMES_KEY, SUCCESS, VERSIONCHECKER_STAGE, VPD_INSTALL_LOCATION_PIPE, VPD_VERSION_PIPE |
Fields inherited from class com.ibm.jsdt.common.Base |
---|
NEW_LINE, OS_NAME, SLASH |
Constructor Summary | |
---|---|
SolarisDeploymentHelper()
Sole constructor. |
Method Summary | |
---|---|
static boolean |
areAllPackagesInstalled(java.util.Vector installedPackages)
Checks for the installation of all packages in a Vector of packages on the target computer. |
static boolean |
areAnyPackagesInstalled(java.util.Vector installedPackages)
Checks for the installation of any package in a Vector of packages on the target computer. |
static void |
chmodDirPermissions(java.lang.String path,
java.lang.String chmodValue)
Changes the permissions on a directory. |
static void |
chmodFilePermissions(java.lang.String fileName,
java.lang.String chmodValue)
Changes the permissions on a file. |
static boolean |
doesUserExist(java.lang.String userName)
Verify the existence of a user name on the target computer. |
static java.util.Vector |
installedPackages(java.util.Vector packages)
Finds a subset of packages which are installed on the target computer. |
static boolean |
isEnoughSpaceAvailable(int spaceRequired,
java.lang.String path)
Verifies that the space required is less than the total free space. |
static boolean |
isIntelBasedSunOS()
Determine whether the machine is an Intel-based machine on Sun. |
static boolean |
isPackageInstalled(java.lang.String packageName)
Checks for the installation of a package on the target computer. |
static boolean |
isSparcBasedSunOS()
Determine whether the machine is a SPARC-based machine on Sun. |
static boolean |
isSunOS64()
Indicates whether the current architecture is Solaris 64 bit. |
Methods inherited from class com.ibm.jsdt.common.Base |
---|
getBuildPropertiesAccessor, getFullVersion, getMainResources, getResourceString, getResourceString, getResourceString, getResourceString, getResourceString, getResourceStringArray, getResourceStringArray, showBuildProperties, showFullVersion |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SolarisDeploymentHelper()
Method Detail |
---|
public static boolean doesUserExist(java.lang.String userName)
userName
- - a user name
boolean
value oftrue
if the user exists
false
the user does not existpublic static boolean isEnoughSpaceAvailable(int spaceRequired, java.lang.String path)
spaceRequired
- - space required to install a software package
boolean
true
if there is enough space on the target computer to install the product
false
if there is not enough space to install the productpublic static boolean areAnyPackagesInstalled(java.util.Vector installedPackages)
Vector
of packages on the target computer.
installedPackages
- - a vector
of packages
boolean
value oftrue
if at least one of the packages in the Vector
is installed on the target
false
otherwisepublic static boolean areAllPackagesInstalled(java.util.Vector installedPackages)
Vector
of packages on the target computer.
installedPackages
- - vector
of packages
boolean
true
if all of the packages in the Vector
are installed on the target
false
otherwisepublic static boolean isPackageInstalled(java.lang.String packageName)
packageName
- - a package name
boolean
true
if the package is installed on target computer.
false
if the package is not installed.public static java.util.Vector installedPackages(java.util.Vector packages)
Vector
which are installed on the target computer are returned
in a Vector
.
packages
- - Vector
of packages.
Vector
of Strings
, each
String
representing a packagepublic static void chmodDirPermissions(java.lang.String path, java.lang.String chmodValue)
path
- - directory on which to set access permissionchmodValue
- - a chmod value indicating the level of permission to set.public static void chmodFilePermissions(java.lang.String fileName, java.lang.String chmodValue)
fileName
- - a file on which to set access permissionchmodValue
- - a chmod value indicating the level of permission to setpublic static boolean isSunOS64()
Boolean
value oftrue
if the architecture of the target computer is Solaris 64-bit
false
if the architecture of the target computer is not Solaris 64-bitpublic static boolean isIntelBasedSunOS()
boolean
true
if the target computer is an Intel-based machine on Sun
false
if the target computer is not an Intel-based machine on Sun public static boolean isSparcBasedSunOS()
boolean
true
if the target computer is an SPARC-based machine on Sun
false
if the target computer is not an SPARC-based machine on Sun
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |