com.ibm.jsdt.support.deploymenthelper
Class SolarisDeploymentHelper

java.lang.Object
  extended by com.ibm.jsdt.common.Base
      extended by com.ibm.jsdt.support.deploymenthelper.DeploymentHelper
          extended by com.ibm.jsdt.support.deploymenthelper.SolarisDeploymentHelper

public class SolarisDeploymentHelper
extends DeploymentHelper

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.support.deploymenthelper.DeploymentHelper
arraySearch, checkFreeSpaceAvailable, checkTargetDirectory, compareVersions, copyAndRenameFile, copyDirectory, copyFile, deleteFile, determineLogFileName, directorySearch, endOfFileScan, executeCommand, fileExists, fileGrep, fileLength, fileScan, fileSearchAndReplace, fileSearchAndReplaceLine, fileSearchAndReturnLinesWithSearch, getAgentRelease, getBackLevelDeployerMessage, getBackLevelJsdtMessage, getDeployerLocale, getDeploymentPackageJarName, getDeploymentWizardSpecificationVersion, getDomain, getEntryResponseFilePath, getEntryResponseFilePath, getExitResponseFilePath, getExitResponseFilePath, getGroupLocale, getHostName, getIbmNsiISMPPropValue, getIbmNsiProperties, getIbmnsiPropertyKeyPrefix, getIbmNsiPropValue, getIbmNsiPropValueByKey, getIimInstallLocationArray, getIimVersionArray, getKeyValue, getLogFileName, getLogger, getLogsDir, getMainResponseFilePath, getMainResponseFilePath, getOSType, getPartitionCapacity, getPartitionFileSystemType, getPartitionVolumeLabel, getPasswordValue, getPasswordValueByKey, getPreDeploymentCheckerResponseFilePath, getPreDeploymentCheckerResponseFilePath, getProductInstallingBundleProperties, getProductInstallingId, getProductInstallingVersion, getPropertyLogFileName, getQualifiedHostName, getQualifiedTiedPasswordValue, getQualifiedTiedVariableValue, getResourceString, getResponseFilePath, getResponseFilePath, getResponseFileProperties, getResponseFileProperty, getResponseFileValue, getSelectedTaskList, getSetupFileRemovalSetting, getStringFromCommandArray, getSystemEnvVar, getTaskApplicationList, getTaskHostnameList, getTempDir, getTiedPasswordValue, getTiedPasswordValueForKey, getTiedVariableValue, getTiedVariableValueForKey, getTranslatedMessage, getUnpackedDir, getVariableValueForTaskApplication, getVpdInstallLocationArray, getVpdPropertyList, getVpdVersionArray, isAix, isAixOSType, isApplicationVersionEqual, isEnoughTargetDirSpaceAvailable, isHPUX, isHPUXOSType, isIpv6Address, isLinux, isLinuxOSType, isLinuxX86_32, isLinuxX86_64, isOS400, isOS400OSType, isPortOpen, isPortRegistered, isPowerLinuxOSType, isSameDirectoryName, isSunOS, isSunOSType, isVersionSupported, isWindows, isWindowsOSType, log, log, logAppendFile, logAppendFile, logNewLine, logStatus, modifyResponseFile, postCompletionMessageToDeployerUI, postErrorMessageToDeployerMainUI, postErrorMessageToDeployerUI, postInformationMessageToDeployerMainUI, postInformationMessageToDeployerUI, postSuccessMessageToDeployerMainUI, postSuccessMessageToDeployerUI, postWarningMessageToDeployerMainUI, postWarningMessageToDeployerUI, readFile, removeAlphaCharsFromString, replaceSubstring, runAs, runAs, setIbmNsiProperty, setKeyValue, setLogFileName, setMainResources, setResponseFileProperty, setResponseFileValue, trace, trace, trace, trimDoubleQuotes, unPackJar, valueExists, waitForFile, writeFile
 
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

SolarisDeploymentHelper

public SolarisDeploymentHelper()
Sole constructor.

Method Detail

doesUserExist

public static boolean doesUserExist(java.lang.String userName)
Verify the existence of a user name on the target computer. Determines whether or not the given user exists on the system by searching the /etc/passwd file.

Parameters:
userName - - a user name
Returns:
a boolean value of
  • true if the user exists
  • false the user does not exist

isEnoughSpaceAvailable

public static boolean isEnoughSpaceAvailable(int spaceRequired,
                                             java.lang.String path)
Verifies that the space required is less than the total free space.

Parameters:
spaceRequired - - space required to install a software package
Returns:
a 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 product

areAnyPackagesInstalled

public static boolean areAnyPackagesInstalled(java.util.Vector installedPackages)
Checks for the installation of any package in a Vector of packages on the target computer.

Parameters:
installedPackages - - a vector of packages
Returns:
a boolean value of
  • true if at least one of the packages in the Vector is installed on the target
  • false otherwise

areAllPackagesInstalled

public static boolean areAllPackagesInstalled(java.util.Vector installedPackages)
Checks for the installation of all packages in a Vector of packages on the target computer.

Parameters:
installedPackages - - vector of packages
Returns:
boolean
  • true if all of the packages in the Vector are installed on the target
  • false otherwise

isPackageInstalled

public static boolean isPackageInstalled(java.lang.String packageName)
Checks for the installation of a package on the target computer.

Parameters:
packageName - - a package name
Returns:
a boolean
  • true if the package is installed on target computer.
  • false if the package is not installed.

installedPackages

public static java.util.Vector installedPackages(java.util.Vector packages)
Finds a subset of packages which are installed on the target computer. All of the packages in the Vector which are installed on the target computer are returned in a Vector.

Parameters:
packages - - Vector of packages.
Returns:
A Vector of Strings, each String representing a package

chmodDirPermissions

public static void chmodDirPermissions(java.lang.String path,
                                       java.lang.String chmodValue)
Changes the permissions on a directory.

Parameters:
path - - directory on which to set access permission
chmodValue - - a chmod value indicating the level of permission to set.

chmodFilePermissions

public static void chmodFilePermissions(java.lang.String fileName,
                                        java.lang.String chmodValue)
Changes the permissions on a file.

Parameters:
fileName - - a file on which to set access permission
chmodValue - - a chmod value indicating the level of permission to set

isSunOS64

public static boolean isSunOS64()
Indicates whether the current architecture is Solaris 64 bit.

Returns:
A Boolean value of
  • true if the architecture of the target computer is Solaris 64-bit
  • false if the architecture of the target computer is not Solaris 64-bit

isIntelBasedSunOS

public static boolean isIntelBasedSunOS()
Determine whether the machine is an Intel-based machine on Sun.

Returns:
a 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

isSparcBasedSunOS

public static boolean isSparcBasedSunOS()
Determine whether the machine is a SPARC-based machine on Sun.

Returns:
a 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