com.ibm.jsdt.support.deploymenthelper
Class HPUXDeploymentHelper

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.HPUXDeploymentHelper

public class HPUXDeploymentHelper
extends DeploymentHelper

HPUX 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, sNEWLN, 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
HPUXDeploymentHelper()
          Sole constructor.
 
Method Summary
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)
          Checks the existence of user name on the target computer.
static boolean isHPUX_Itanium()
          Indicates whether the current architecture is HP-UX Itanium (Intel 64-bit architecture).
 
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

HPUXDeploymentHelper

public HPUXDeploymentHelper()
Sole constructor.

Method Detail

doesUserExist

public static boolean doesUserExist(java.lang.String userName)
Checks the existence of 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 - - user name that can access the target computer
Returns:
A Boolean value of
  • true if the user exists
  • false if the user does not exist

chmodDirPermissions

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

Parameters:
path - - directory on which the permissions will be set
chmodValue - - chmod value

chmodFilePermissions

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

Parameters:
fileName - - file to be set permission
chmodValue - - chmod value

isHPUX_Itanium

public static boolean isHPUX_Itanium()
Indicates whether the current architecture is HP-UX Itanium (Intel 64-bit architecture).

Returns:
A Boolean value of
  • true if target computer has HP-UX Itanium architecture
  • false otherwise