|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.product.WASProduct
public class WASProduct
WASProduct provides an interface into the product version information. The file set contains information about the Websphere Application Server e.g Product Name, Edition, Build Number, Build Date etc. Note: If this class is used outside the confines of the WebSphere product then the System property "was.install.root" must be set to point to the directory that Websphere is installed in. e.g "c:\websphere\appserver"
Field Summary | |
---|---|
static java.lang.String |
BACKUP_DIR_NAME
Deprecated. Default names for product directories. |
static java.lang.String |
BACKUP_DIR_PROPERTY_NAME
Deprecated. Constants for providing product directories. |
protected java.io.File |
backupDir
Deprecated. |
protected java.lang.String |
backupDirName
Deprecated. |
protected java.util.ArrayList |
boundExceptions
Deprecated. |
static java.lang.String |
bundleIdMsg
Deprecated. The id of the message bundle use by WASProduct. |
static java.lang.String |
bundleIdText
Deprecated. |
static java.lang.String |
COMPONENT_TYPE
Deprecated. Typing constants for loading version info. |
protected java.util.ArrayList |
componentNames
Deprecated. |
protected java.util.ArrayList |
components
Deprecated. |
static java.lang.String |
CURRENT_VERSION_DIR_NAME
Deprecated. Default names for product directories. |
static java.lang.String |
DEFAULT_TMP_DIR_NAME
Deprecated. Default names for product directories. |
static java.lang.String |
DTD_DIR_NAME
Deprecated. Default names for product directories. |
static java.lang.String |
DTD_DIR_PROPERTY_NAME
Deprecated. Constants for providing product directories. |
protected java.io.File |
dtdDir
Deprecated. |
protected java.lang.String |
dtdDirName
Deprecated. |
static java.lang.String |
EFIX_TYPE
Deprecated. Typing constants for loading version info. |
protected java.util.ArrayList |
efixes
Deprecated. |
protected java.util.ArrayList |
efixNames
Deprecated. |
static java.lang.String |
EXTENSION_TYPE
Deprecated. Typing constants for loading version info. |
protected java.util.ArrayList |
extensionNames
Deprecated. |
protected java.util.ArrayList |
extensions
Deprecated. |
static java.lang.String |
FULL_INSTALL_DIR_NAME
Deprecated. Default names for product directories. |
static java.lang.String |
INSTALL_ROOT_PROPERTY_NAME
Deprecated. Constants for providing product directories. |
static java.lang.String |
JAVA_TMP_DIR_PROPERTY_NAME
Deprecated. Constants for providing product directories. |
static java.lang.String |
LOG_DIR_NAME
Deprecated. Default names for product directories. |
static java.lang.String |
LOG_DIR_PROPERTY_NAME
Deprecated. Constants for providing product directories. |
protected java.io.File |
logDir
Deprecated. |
protected java.lang.String |
logDirName
Deprecated. |
static java.util.ResourceBundle |
msgs
Deprecated. The initialized resource bundle. |
static java.lang.String |
NIF_DIR_NAME
Deprecated. Default names for product directories. |
static java.lang.String |
pgmUpdate
Deprecated. Constants holding CMVC version information. |
static java.lang.String |
pgmVersion
Deprecated. Constants holding CMVC version information. |
static java.lang.String[] |
PRODUCT_IDS
Deprecated. The array of known product ids. |
static java.lang.String |
PRODUCT_TYPE
Deprecated. Typing constants for loading version info. |
protected java.io.File |
productDir
Deprecated. |
protected java.lang.String |
productDirName
Deprecated. |
static java.lang.String |
PRODUCTID_BASE
Deprecated. Constants for the known product ids. |
static java.lang.String |
PRODUCTID_CLIENT
Deprecated. Constants for the known product ids. |
static java.lang.String |
PRODUCTID_EMBEDDED_EXPRESS
Deprecated. Constants for the known product ids. |
static java.lang.String |
PRODUCTID_EXPRESS
Deprecated. Constants for the known product ids. |
static java.lang.String |
PRODUCTID_JDK
Deprecated. Constants for the known product ids. |
static java.lang.String |
PRODUCTID_ND
Deprecated. Constants for the known product ids. |
static java.lang.String |
PRODUCTID_PME
Deprecated. Constants for the known product ids. |
static java.lang.String |
PRODUCTID_WXD
Deprecated. Constants for the known product ids. |
static java.lang.String |
PRODUCTID_XD
Deprecated. Constants for the known product ids. |
protected java.util.ArrayList |
productNames
Deprecated. |
protected java.util.ArrayList |
products
Deprecated. |
static java.lang.String |
PROPERTIES_DIR_NAME
Deprecated. Default names for product directories. |
static java.lang.String |
PTF_TYPE
Deprecated. Typing constants for loading version info. |
protected java.util.ArrayList |
ptfNames
Deprecated. |
protected java.util.ArrayList |
ptfs
Deprecated. |
protected java.util.ArrayList |
recoverableErrors
Deprecated. |
static java.lang.String |
REGISTRARID_ADD
Deprecated. Constants for the known registrar ids. |
static java.lang.String |
REGISTRARID_BASE
Deprecated. Constants for the known registrar ids. |
protected java.util.ArrayList |
registrarNames
Deprecated. |
protected java.util.ArrayList |
registrars
Deprecated. |
static java.util.ResourceBundle |
texts
Deprecated. |
static java.lang.String |
TMP_DIR_PROPERTY_NAME
Deprecated. Constants for providing product directories. |
static java.lang.String |
UPDATE_DIR_NAME
Deprecated. Default names for product directories. |
static java.lang.String |
VERSION_DIR_NAME
Deprecated. Default names for product directories. |
static java.lang.String |
VERSION_DIR_PROPERTY_NAME
Deprecated. Constants for providing product directories. |
protected java.io.File |
versionDir
Deprecated. |
protected java.lang.String |
versionDirName
Deprecated. |
protected java.util.HashMap |
versionInfo
Deprecated. |
protected java.util.ArrayList |
warnings
Deprecated. |
Constructor Summary | |
---|---|
WASProduct()
Deprecated. As of WAS 8.0. |
|
WASProduct(java.lang.String productDirName)
Deprecated. As of WAS 8.0. |
|
WASProduct(java.lang.String productDirName,
java.lang.String versionDirName,
java.lang.String dtdDirName,
java.lang.String logDirName,
java.lang.String backupDirName)
Deprecated. As of WAS 8.0 |
Method Summary | |
---|---|
boolean |
addComponent(com.ibm.websphere.product.xml.component.component aComponent)
Deprecated. As of WAS 8.0. |
protected void |
addComponentName(java.lang.String componentName)
Deprecated. As of V8.0 |
protected void |
addEFix(com.ibm.websphere.product.xml.efix.efix anEFix)
Deprecated. As of WAS 8.0. |
protected void |
addEFixName(java.lang.String efixName)
Deprecated. As of WAS 8.0. |
protected void |
addException(java.lang.String msgKey)
Deprecated. As of V8.0 |
protected void |
addException(java.lang.String msgKey,
java.lang.Exception e)
Deprecated. As of V8.0 |
protected void |
addException(java.lang.String msgKey,
java.lang.Object[] msgArgs,
java.lang.Exception e)
Deprecated. As of V8.0 |
protected void |
addException(com.ibm.websphere.product.WASProductException e)
Deprecated. As of V8.0 |
protected void |
addProductName(java.lang.String productName)
Deprecated. As of V8.0 |
protected void |
addPTF(com.ibm.websphere.product.xml.efix.ptf aPTF)
Deprecated. As of V8.0 |
protected void |
addPTFName(java.lang.String ptfName)
Deprecated. As of V8.0 |
protected void |
addRecoverableError(org.xml.sax.SAXParseException e)
Deprecated. As of V8.0 |
protected void |
addWarning(org.xml.sax.SAXParseException e)
Deprecated. As of V8.0 |
protected void |
basicAddComponent(com.ibm.websphere.product.xml.component.component aComponent)
Deprecated. As of V8.0 |
protected void |
basicAddProduct(com.ibm.websphere.product.product aProduct)
Deprecated. As of V8.0 |
protected java.util.ArrayList |
basicGetComponentNames()
Deprecated. As of V8.0 |
protected java.util.ArrayList |
basicGetComponents()
Deprecated. As of V8.0 |
protected java.util.ArrayList |
basicGetEFixes()
Deprecated. As of WAS 8.0. |
protected java.util.ArrayList |
basicGetEFixNames()
Deprecated. As of WAS 8.0. |
protected java.util.ArrayList |
basicGetExtensionNames()
Deprecated. As of WAS 8.0. |
protected java.util.ArrayList |
basicGetExtensions()
Deprecated. As of WAS 8.0. |
protected java.util.ArrayList |
basicGetProductNames()
Deprecated. As of V8.0 |
protected java.util.ArrayList |
basicGetProducts()
Deprecated. As of V8.0 |
protected java.util.ArrayList |
basicGetPTFNames()
Deprecated. As of V8.0 |
protected java.util.ArrayList |
basicGetPTFs()
Deprecated. As of V8.0 |
protected java.util.ArrayList |
basicGetRegistrarNames()
Deprecated. |
protected java.util.ArrayList |
basicGetRegistrars()
Deprecated. |
protected void |
basicRemoveComponent(com.ibm.websphere.product.xml.component.component aComponent)
Deprecated. As of V8.0 |
protected void |
basicRemoveEFix(com.ibm.websphere.product.xml.efix.efix anEFix)
Deprecated. As of WAS 8.0. |
protected void |
basicRemoveProduct(com.ibm.websphere.product.product aProduct)
Deprecated. As of V8.0 |
protected void |
basicRemovePTF(com.ibm.websphere.product.xml.efix.ptf aPTF)
Deprecated. As of V8.0 |
protected void |
clearExceptions()
Deprecated. As of V8.0 |
protected java.util.ArrayList |
collectVersionInfo(java.util.Iterator names)
Deprecated. As of V8.0 |
boolean |
componentPresent(java.lang.String name)
Deprecated. As of WAS 8.0, replaced by com.ibm.websphere.product.WASDirectory.isComponentInstalled(String componentName) |
static java.lang.String |
computeBackupDirName(java.lang.String versionDirName)
Deprecated. As of WAS 8.0, replaced by com.ibm.websphere.product.utils.WASDirectoryHelper.getBackupDirPath(String installRoot) |
static java.lang.String |
computeDTDDirName(java.lang.String versionDirName)
Deprecated. As of WAS 8.0, replaced by com.ibm.websphere.product.utils.WASDirectoryHelper.getDTDDirPath(String installRoot) |
static java.lang.String |
computeLogDirName(java.lang.String productDirName)
Deprecated. As of WAS 8.0, replaced by com.ibm.websphere.product.utils.WASDirectoryHelper.getLogDirPath(String installRoot) |
static java.lang.String |
computeVersionDirName(java.lang.String productDirName)
Deprecated. As of WAS 8.0, replaced by com.ibm.websphere.product.utils.WASDirectoryHelper.getVersionDirPath(String installRoot) |
protected static com.ibm.websphere.product.WASProductException |
createException(java.lang.String msgKey,
java.lang.Object[] msgArgs,
java.lang.Exception e)
Deprecated. As of V8.0 |
boolean |
efixPresent(java.lang.String id)
Deprecated. As of WAS 8.0. |
boolean |
extensionPresent(java.lang.String name)
Deprecated. As of WAS 8.0. |
java.lang.String |
getBackupDirName()
Deprecated. As of WAS 8.0, replaced by com.ibm.websphere.product.WASDirectoryHelper.getBackupDirPath(String installRoot). |
static java.lang.String |
getBackupDirName(java.lang.String versionDirName)
Deprecated. As of WAS 8.0, replaced by com.ibm.websphere.product.utils.WASDirectoryHelper.getBackupDirPath(String installRoot) |
com.ibm.websphere.product.xml.component.component |
getComponentByFilename(java.lang.String basename)
Deprecated. As of WAS 8.0, replaced by com.ibm.websphere.product.WASDirectory.getComponentByName(String componentName) |
com.ibm.websphere.product.xml.component.component |
getComponentByName(java.lang.String name)
Deprecated. As of WAS 8.0, replaced by com.ibm.websphere.product.WASDirectory.getComponentByName(String componentName) |
java.util.Iterator |
getComponentNames()
Deprecated. As of WAS 8.0. |
java.util.Iterator |
getComponents()
Deprecated. As of WAS 8.0, replaced by com.ibm.websphere.product.WASDirectory.getInstalledComponentList() |
java.lang.String |
getDTDDirName()
Deprecated. As of WAS 8.0, replaced by com.ibm.websphere.product.WASDirectoryHelper.getDTDDirPath(String installRoot). |
static java.lang.String |
getDTDDirName(java.lang.String versionDirName)
Deprecated. As of WAS 8.0, replaced by com.ibm.websphere.product.utils.WASDirectoryHelper.getDTDDirPath(String installRoot) |
com.ibm.websphere.product.xml.efix.efix |
getEFixByFilename(java.lang.String basename)
Deprecated. As of WAS 8.0. |
com.ibm.websphere.product.xml.efix.efix |
getEFixById(java.lang.String id)
Deprecated. As of WAS 8.0. |
int |
getEFixCount()
Deprecated. As of WAS 8.0. |
java.util.Iterator |
getEFixes()
Deprecated. As of WAS 8.0. |
java.util.Iterator |
getEFixNames()
Deprecated. As of WAS 8.0. |
java.util.Iterator |
getExceptions()
Deprecated. As of WAS 8.0. |
com.ibm.websphere.product.xml.extension.extension |
getExtensionByFilename(java.lang.String basename)
Deprecated. As of WAS 8.0. |
com.ibm.websphere.product.xml.extension.extension |
getExtensionByName(java.lang.String name)
Deprecated. As of WAS 8.0. |
java.util.Iterator |
getExtensionNames()
Deprecated. As of WAS 8.0. |
java.util.Iterator |
getExtensions()
Deprecated. As of WAS 8.0. |
java.lang.String |
getLogDirName()
Deprecated. As of WAS 8.0, replaced by com.ibm.websphere.product.WASDirectoryHelper.getLogDirPath(String installRoot). |
static java.lang.String |
getLogDirName(java.lang.String productDirName)
Deprecated. As of WAS 8.0, replaced by com.ibm.websphere.product.utils.WASDirectoryHelper.getLogDirPath(String installRoot) |
com.ibm.websphere.product.xml.websphere.websphere |
getPlatform()
Deprecated. As of WAS 8.0. Replaced by WASDirectory.getWASProductInfo(String productID) |
protected java.io.File |
getProductDir()
Deprecated. As of WAS 8.0. |
java.lang.String |
getProductDirName()
Deprecated. |
com.ibm.websphere.product.xml.efix.ptf |
getPTFByFilename(java.lang.String basename)
Deprecated. As of WAS 8.0, replaced by com.ibm.websphere.product.WASDirectory.getInstalledMaintenancePackageByID(String maintenancePackageID) |
com.ibm.websphere.product.xml.efix.ptf |
getPTFById(java.lang.String id)
Deprecated. As of WAS 8.0, replaced by com.ibm.websphere.product.WASDirectory.getInstalledMaintenancePackageByID(String maintenancePackageID) |
java.util.Iterator |
getPTFNames()
Deprecated. As of WAS 8.0. |
java.util.Iterator |
getPTFs()
Deprecated. As of WAS 8.0, replaced by com.ibm.websphere.product.WASDirectory.getInstalledMaintenancePackageList() |
java.util.Iterator |
getRecoverableErrors()
Deprecated. As of WAS 8.0. |
com.ibm.websphere.product.xml.registrar.registrar |
getRegistrarById(java.lang.String id)
Deprecated. As of WAS 8.0, replaced by com.ibm.websphere.product.WASDirectory.getRegistrarById(String id) |
java.util.Iterator |
getRegistrarNames()
Deprecated. As of WAS 8.0, replaced by com.ibm.websphere.product.WASDirectory.getRegistrarFileNames() |
java.util.Iterator |
getRegistrars()
Deprecated. As of WAS 8.0, replaced by com.ibm.websphere.product.WASDirectory.getRegistrarInstances() |
protected static java.lang.String |
getString(java.lang.String msgCode)
Deprecated. As of V8.0 |
protected static java.lang.String |
getString(java.lang.String msgCode,
java.lang.Object arg)
Deprecated. As of V8.0 |
protected static java.lang.String |
getString(java.lang.String msgCode,
java.lang.Object[] msgArgs)
Deprecated. As of V8.0 |
protected static java.lang.String |
getString(java.lang.String msgCode,
java.lang.Object arg1,
java.lang.Object arg2)
Deprecated. As of V8.0 |
static java.lang.String |
getTmpDirName()
Deprecated. As of WAS 8.0, replaced by com.ibm.websphere.product.utils.WASDirectoryHelper.getTmpDirPath() |
protected java.io.File |
getVersionDir()
Deprecated. As of WAS 8.0. |
java.lang.String |
getVersionDirName()
Deprecated. As of WAS 8.0, replaced by com.ibm.websphere.product.WASDirectoryHelper.getVersionDirPath(String installRoot). |
static java.lang.String |
getVersionDirName(java.lang.String productDirName)
Deprecated. As of WAS 8.0, replaced by com.ibm.websphere.product.utils.WASDirectoryHelper.getVersionDirPath(String installRoot) |
java.lang.String |
getVersionFileName(java.lang.String baseName)
Deprecated. As of WAS 8.0. |
protected java.lang.Object |
getVersionInfo(java.lang.String filename)
Deprecated. As of V8.0 |
java.util.Iterator |
getWarnings()
Deprecated. As of WAS 8.0. |
protected void |
initialize(java.lang.String useProductDirName,
java.lang.String useVersionDirName,
java.lang.String useDTDDirName,
java.lang.String useLogDirName,
java.lang.String useBackupDirName)
Deprecated. As of V8.0 |
boolean |
initializeLogAndBackup()
Deprecated. As of WAS 8.0. |
protected boolean |
initMetadataInstance()
Deprecated. Init the WASMetadata instance if it's not initialized yet. |
static void |
InitResourceBundle()
Deprecated. As of WAS 8.0. |
protected java.util.ArrayList |
listFileNames(java.io.File[] files)
Deprecated. As of WAS V8.0 |
protected java.util.ArrayList |
listFileNames(java.io.FilenameFilter filter)
Deprecated. As of WAS V8.0 |
protected java.io.File[] |
listFiles(java.io.FilenameFilter filter)
Deprecated. As of WAS V8.0 |
java.lang.String[] |
loadAllVersionInfoByType(java.lang.String type)
Deprecated. This method is not the recommended way to retrieve version information of installed products by parsing product XML files. As of WAS 8.0 this method is deprecated. |
protected java.lang.String |
loadFile(java.io.File file,
java.lang.String fileName)
Deprecated. As of WAS 8.0. |
protected java.lang.Object |
loadVersionInfo(java.lang.String filename)
Deprecated. As of V8.0 |
protected java.lang.String |
loadVersionInfoAsXMLString(java.lang.String filename,
boolean doXSLTransform)
Deprecated. As of V8.0 |
int |
numExceptions()
Deprecated. As of WAS 8.0. |
int |
numRecoverableErrors()
Deprecated. As of WAS 8.0. |
int |
numWarnings()
Deprecated. As of WAS 8.0. |
static java.lang.String |
preparePath(java.lang.String path,
boolean trailSeparator)
Deprecated. As of WAS 8.0, replaced by com.ibm.websphere.product.utils.WASDirectoryHelper.normalizeLocationAccordingToPlatform(String location, boolean trailSeparator) |
boolean |
ptfPresent(java.lang.String id)
Deprecated. As of WAS 8.0, replaced by com.ibm.websphere.product.WASDirectory.isMaintenancePackageInstalled(String maintenancePackageID) |
boolean |
registrarPresent(java.lang.String id)
Deprecated. As of WAS 8.0, replaced by com.ibm.websphere.product.WASDirectory.isRegistrarPresent(String id) |
boolean |
removeComponent(com.ibm.websphere.product.xml.component.component aComponent)
Deprecated. As of WAS 8.0. |
protected void |
removeComponentName(java.lang.String componentName)
Deprecated. As of V8.0 |
boolean |
removeEFix(com.ibm.websphere.product.xml.efix.efix anEFix)
Deprecated. As of WAS 8.0. |
protected void |
removeEFixName(java.lang.String efixName)
Deprecated. As of WAS 8.0. |
protected void |
removeProductName(java.lang.String productName)
Deprecated. As of V8.0 |
boolean |
removePTF(com.ibm.websphere.product.xml.efix.ptf aPTF)
Deprecated. As of WAS 8.0. |
protected void |
removePTFName(java.lang.String ptfName)
Deprecated. As of V8.0 |
boolean |
saveEFix(com.ibm.websphere.product.xml.efix.efix anEFix)
Deprecated. As of WAS 8.0. |
boolean |
savePTF(com.ibm.websphere.product.xml.efix.ptf aPTF)
Deprecated. As of WAS 8.0. |
java.lang.String |
toString()
Deprecated. As of WAS 8.0. |
protected void |
transferErrors(com.ibm.websphere.product.xml.BaseFactory factory)
Deprecated. As of V8.0 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String pgmVersion
public static final java.lang.String pgmUpdate
public static final java.lang.String PRODUCTID_EMBEDDED_EXPRESS
public static final java.lang.String PRODUCTID_EXPRESS
public static final java.lang.String PRODUCTID_BASE
public static final java.lang.String PRODUCTID_ND
public static final java.lang.String PRODUCTID_XD
public static final java.lang.String PRODUCTID_WXD
public static final java.lang.String PRODUCTID_PME
public static final java.lang.String PRODUCTID_CLIENT
public static final java.lang.String PRODUCTID_JDK
public static final java.lang.String[] PRODUCT_IDS
public static final java.lang.String REGISTRARID_BASE
public static final java.lang.String REGISTRARID_ADD
public static final java.lang.String bundleIdMsg
public static final java.lang.String bundleIdText
public static java.util.ResourceBundle msgs
public static java.util.ResourceBundle texts
protected java.util.ArrayList boundExceptions
protected java.util.ArrayList recoverableErrors
protected java.util.ArrayList warnings
public static final java.lang.String INSTALL_ROOT_PROPERTY_NAME
public static final java.lang.String VERSION_DIR_PROPERTY_NAME
public static final java.lang.String DTD_DIR_PROPERTY_NAME
public static final java.lang.String LOG_DIR_PROPERTY_NAME
public static final java.lang.String BACKUP_DIR_PROPERTY_NAME
public static final java.lang.String TMP_DIR_PROPERTY_NAME
public static final java.lang.String JAVA_TMP_DIR_PROPERTY_NAME
public static final java.lang.String PROPERTIES_DIR_NAME
public static final java.lang.String VERSION_DIR_NAME
public static final java.lang.String DTD_DIR_NAME
public static final java.lang.String LOG_DIR_NAME
public static final java.lang.String UPDATE_DIR_NAME
public static final java.lang.String BACKUP_DIR_NAME
public static final java.lang.String DEFAULT_TMP_DIR_NAME
public static final java.lang.String FULL_INSTALL_DIR_NAME
public static final java.lang.String CURRENT_VERSION_DIR_NAME
public static final java.lang.String NIF_DIR_NAME
protected java.util.ArrayList products
protected java.util.ArrayList productNames
protected java.util.ArrayList components
protected java.util.ArrayList componentNames
protected java.util.ArrayList efixes
protected java.util.ArrayList efixNames
protected java.util.ArrayList ptfs
protected java.util.ArrayList ptfNames
protected java.util.ArrayList extensions
protected java.util.ArrayList extensionNames
protected java.util.ArrayList registrars
protected java.util.ArrayList registrarNames
protected java.util.HashMap versionInfo
public static final java.lang.String PRODUCT_TYPE
Typing constants for loading version info.
public static final java.lang.String COMPONENT_TYPE
Typing constants for loading version info.
public static final java.lang.String EFIX_TYPE
Typing constants for loading version info.
public static final java.lang.String PTF_TYPE
Typing constants for loading version info.
public static final java.lang.String EXTENSION_TYPE
Typing constants for loading version info.
protected java.io.File productDir
protected java.lang.String productDirName
protected java.io.File versionDir
protected java.lang.String versionDirName
protected java.io.File dtdDir
protected java.lang.String dtdDirName
protected java.io.File logDir
protected java.lang.String logDirName
protected java.io.File backupDir
protected java.lang.String backupDirName
Constructor Detail |
---|
public WASProduct()
Default constructor. The new instance is initialized wholly from system properties. Exceptions may be registed in the new instance.
public WASProduct(java.lang.String productDirName)
Parameterized constructor. The product directories are computed from the specified directory. No system properties are used. Exceptions may be registed in the new instance.
productDirName
- The base product directory.public WASProduct(java.lang.String productDirName, java.lang.String versionDirName, java.lang.String dtdDirName, java.lang.String logDirName, java.lang.String backupDirName)
Parameterized constructor. All product directories are assigned directly from arguments. No system properties are used. Exceptions may be registed in the new instance.
productDirName
- The product directory for use.versionDirName
- The version directory for use.dtdDirName
- The DTD directory for use.logDirName
- The log directory for use.backupDirName
- The backup directory for use.Method Detail |
---|
public static void InitResourceBundle()
protected static java.lang.String getString(java.lang.String msgCode)
protected static java.lang.String getString(java.lang.String msgCode, java.lang.Object arg)
protected static java.lang.String getString(java.lang.String msgCode, java.lang.Object arg1, java.lang.Object arg2)
protected static java.lang.String getString(java.lang.String msgCode, java.lang.Object[] msgArgs)
protected void addException(com.ibm.websphere.product.WASProductException e)
public int numExceptions()
Answer the number of exceptions which were registered within the last operation.
public java.util.Iterator getExceptions()
Answer an iterator across the registered exceptions.
protected void addRecoverableError(org.xml.sax.SAXParseException e)
public int numRecoverableErrors()
Answer the number of recoverable errors which were registered within the last operation.
public java.util.Iterator getRecoverableErrors()
Answer an iterator across the registered recoverable errors.
protected void addWarning(org.xml.sax.SAXParseException e)
public int numWarnings()
Answer the number of warnings which were registered within the last operation.
public java.util.Iterator getWarnings()
Answer an iterator across the registered warnings.
protected void transferErrors(com.ibm.websphere.product.xml.BaseFactory factory)
protected void clearExceptions()
protected void addException(java.lang.String msgKey)
protected void addException(java.lang.String msgKey, java.lang.Exception e)
protected void addException(java.lang.String msgKey, java.lang.Object[] msgArgs, java.lang.Exception e)
protected static com.ibm.websphere.product.WASProductException createException(java.lang.String msgKey, java.lang.Object[] msgArgs, java.lang.Exception e)
public static java.lang.String computeVersionDirName(java.lang.String productDirName)
Determine and return the version directory from system properties. The argument product directory will be used, with adjustment, if no version directory property is set. An exception is thrown if the version directory cannot be determined.
productDirName
- The base directory from which to compute
the version directory, used in case no
version directory property is set.
public static java.lang.String getVersionDirName(java.lang.String productDirName)
Answer a version directory based on the argument product directory.
public static java.lang.String computeDTDDirName(java.lang.String versionDirName) throws com.ibm.websphere.product.WASProductException
Determine and return the DTD directory from system properties. The argument version directory will be used, with adjustment, if no DTD directory property is set. An exception is thrown if the DTD directory cannot be determined.
versionDirName
- The base directory from which to compute
the DTD directory, used in case no
DTD directory property is set.
WASProductException
- An exception which is thrown
if the DTD directory cannot
be determined.public static java.lang.String getDTDDirName(java.lang.String versionDirName)
Answer a DTD directory based on the argument version directory.
public static java.lang.String computeLogDirName(java.lang.String productDirName) throws com.ibm.websphere.product.WASProductException
Determine and return the log directory from system properties. The argument version directory will be used, with adjustment, if no log directory property is set. An exception is thrown if the log directory cannot be determined.
productDirName
- The base directory from which to compute
the log directory, used in case no
log directory property is set.
WASProductException
- An exception which is thrown
if the log directory cannot
be determined.public static java.lang.String getLogDirName(java.lang.String productDirName)
Answer a log directory based on the argument version directory.
public static java.lang.String computeBackupDirName(java.lang.String versionDirName) throws com.ibm.websphere.product.WASProductException
Determine and return the backup directory from system properties. The argument version directory will be used, with adjustment, if no backup directory property is set. An exception is thrown if the backup directory cannot be determined.
versionDirName
- The base directory from which to compute
the backup directory, used in case no
backup directory property is set.
WASProductException
- An exception which is thrown
if the backup directory cannot
be determined.public static java.lang.String getBackupDirName(java.lang.String versionDirName)
Answer a backup directory based on the argument version directory.
public static java.lang.String getTmpDirName()
Determine and return the TMP directory from system properties. The TMP_DIR_PROPERTY_NAME system property is tested, then the JAVA_TMP_DIR_PROPERTY_NAME is tested. If neither is set, then DEFAULT_TMP_DIR_NAME is used.
public static java.lang.String preparePath(java.lang.String path, boolean trailSeparator)
Utility method for replacing slashes in the argument path with the file separator character. Optionally, a trailing separator is added to (or kept off of) the result path.
path
- The argument path to be processed.trailSeparator
- A flag specifying if the result path is to
have a trailing separator character.
protected void initialize(java.lang.String useProductDirName, java.lang.String useVersionDirName, java.lang.String useDTDDirName, java.lang.String useLogDirName, java.lang.String useBackupDirName)
public boolean initializeLogAndBackup()
Initialize the log and backup directories associated with the receiver. If necessary, these directories are created, and are verified to exist as directories.
This method clears and will register new exceptions, as needed.
The result indicates whether the log and backup directories were successfully initialized.
public com.ibm.websphere.product.xml.websphere.websphere getPlatform()
Answer the websphere object, which is representative of a websphere installation.
public com.ibm.websphere.product.xml.component.component getComponentByFilename(java.lang.String basename)
Answer the component stored in the named component file. Answer null if the named file does not exist or cannot be loaded.
basename
- The name of the file holding a
component object.
public com.ibm.websphere.product.xml.component.component getComponentByName(java.lang.String name)
Answer the component having the specified name. Answer null if no matching component is available.
name
- The name of the component to be returned.
public boolean componentPresent(java.lang.String name)
Answer true or false, telling if a component having the specified name is present.
name
- The name of the component which is tested.
public boolean addComponent(com.ibm.websphere.product.xml.component.component aComponent)
Save the argument component into the bound component directory. Answer true or false, telling if the component was successfully saved.
aComponent
- A component to be saved.
public boolean removeComponent(com.ibm.websphere.product.xml.component.component aComponent)
Remove the argument component from the bound component directory. Answer true or false, telling if the component was successfully removed.
aComponent
- A component to be removed.
public com.ibm.websphere.product.xml.efix.efix getEFixByFilename(java.lang.String basename)
Answer the efix stored in the named efix file. Answer null if the named file does not exist or cannot be loaded.
basename
- The name of the file holding an efix
object.
public com.ibm.websphere.product.xml.efix.efix getEFixById(java.lang.String id)
Answer the efix having the specified id. Answer null if no matching efix is available.
id
- The id of the efix to be returned.
public boolean efixPresent(java.lang.String id)
Answer true or false, telling if a efix having the specified name is present.
id
- The id of the efix which is tested.
public com.ibm.websphere.product.xml.efix.ptf getPTFByFilename(java.lang.String basename)
Answer the PTF stored in the named PTF file. Answer null if the named file does not exist or cannot be loaded.
basename
- The name of the file holding an PTF
object.
public com.ibm.websphere.product.xml.efix.ptf getPTFById(java.lang.String id)
Answer the PTF having the specified id. Answer null if no matching PTF is available.
id
- The id of the PTF to be returned.
public boolean ptfPresent(java.lang.String id)
Answer true or false, telling if a PTF having the specified name is present.
id
- The id of the PTF which is tested.
public com.ibm.websphere.product.xml.extension.extension getExtensionByFilename(java.lang.String basename)
Answer the extension stored in the named extension file. Answer null if the named file does not exist or cannot be loaded.
basename
- The name of the file holding an extension
object.
public com.ibm.websphere.product.xml.extension.extension getExtensionByName(java.lang.String name)
Answer the extension having the specified name. Answer null if no matching extension is available.
name
- The name of the extension to be returned.
public boolean extensionPresent(java.lang.String name)
Answer true or false, telling if an extension having the specified name is present.
name
- The name of the extension which is tested.
public com.ibm.websphere.product.xml.registrar.registrar getRegistrarById(java.lang.String id)
id
- The id of the registrar to be returned.
public boolean registrarPresent(java.lang.String id)
id
- The id of the registrar which is tested.
protected java.util.ArrayList basicGetProducts()
protected void basicAddProduct(com.ibm.websphere.product.product aProduct)
protected void basicRemoveProduct(com.ibm.websphere.product.product aProduct)
protected java.util.ArrayList basicGetProductNames()
protected void addProductName(java.lang.String productName)
protected void removeProductName(java.lang.String productName)
public java.util.Iterator getComponents()
Answer an iterator across the components in the associated product directory.
protected void basicAddComponent(com.ibm.websphere.product.xml.component.component aComponent)
protected void basicRemoveComponent(com.ibm.websphere.product.xml.component.component aComponent)
protected java.util.ArrayList basicGetComponents()
public java.util.Iterator getComponentNames()
Answer an iterator across the names of the components in the associated product directory.
protected java.util.ArrayList basicGetComponentNames()
protected void addComponentName(java.lang.String componentName)
protected void removeComponentName(java.lang.String componentName)
public boolean saveEFix(com.ibm.websphere.product.xml.efix.efix anEFix)
Save the argument efix into the bound product directory. Answer true or false, telling if the efix was successfully saved.
anEFix
- A efix to be saved.
public boolean removeEFix(com.ibm.websphere.product.xml.efix.efix anEFix)
Remove the argument efix from the bound product directory. Answer true or false, telling if the efix was successfully removed.
anEFix
- A efix to be removed.
protected void addEFix(com.ibm.websphere.product.xml.efix.efix anEFix)
protected void basicRemoveEFix(com.ibm.websphere.product.xml.efix.efix anEFix)
public java.util.Iterator getEFixes()
Answer an iterator across the efixes in the associated product directory.
public int getEFixCount()
Answer the count of efixes in the bound product directory.
protected java.util.ArrayList basicGetEFixes()
protected void addEFixName(java.lang.String efixName)
protected void removeEFixName(java.lang.String efixName)
public java.util.Iterator getEFixNames()
Answer an iterator across the ids of the efixes in the associated product directory.
protected java.util.ArrayList basicGetEFixNames()
public boolean savePTF(com.ibm.websphere.product.xml.efix.ptf aPTF)
Save the argument PTF into the bound product directory. Answer true or false, telling if the PTF was successfully saved.
aPTF
- A PTF to be saved.
public boolean removePTF(com.ibm.websphere.product.xml.efix.ptf aPTF)
Remove the argument PTF from the bound product directory. Answer true or false, telling if the PTF was successfully removed.
aPTF
- A PTF to be removed.
protected void addPTF(com.ibm.websphere.product.xml.efix.ptf aPTF)
protected void basicRemovePTF(com.ibm.websphere.product.xml.efix.ptf aPTF)
public java.util.Iterator getPTFs()
Answer an iterator across the PTFs in the associated product directory.
protected java.util.ArrayList basicGetPTFs()
protected void addPTFName(java.lang.String ptfName)
protected void removePTFName(java.lang.String ptfName)
public java.util.Iterator getPTFNames()
Answer an iterator across the ids of the PTFs in the associated product directory.
protected java.util.ArrayList basicGetPTFNames()
public java.util.Iterator getExtensions()
Answer an iterator across the extensions in the associated product directory.
protected java.util.ArrayList basicGetExtensions()
public java.util.Iterator getExtensionNames()
Answer an iterator across the names of the extensions in the associated product directory.
protected java.util.ArrayList basicGetExtensionNames()
public java.util.Iterator getRegistrars()
protected java.util.ArrayList basicGetRegistrars()
public java.util.Iterator getRegistrarNames()
protected java.util.ArrayList basicGetRegistrarNames()
protected java.util.ArrayList collectVersionInfo(java.util.Iterator names)
protected java.lang.Object getVersionInfo(java.lang.String filename)
protected java.lang.Object loadVersionInfo(java.lang.String filename)
public java.lang.String[] loadAllVersionInfoByType(java.lang.String type)
Answer a string array containing the contents of all files in the bound product directory having the specified type.
type
- The type of file to load; see the constants
'PRODUCT_TYPE', and others.
protected java.lang.String loadVersionInfoAsXMLString(java.lang.String filename, boolean doXSLTransform)
protected java.lang.String loadFile(java.io.File file, java.lang.String fileName) throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
protected java.io.File getProductDir()
public java.lang.String getProductDirName()
protected java.io.File getVersionDir()
public java.lang.String getVersionDirName()
Answer the version directory name bound into the receiver.
public java.lang.String getVersionFileName(java.lang.String baseName)
Answer the name of the argument file qualified to be within the bound version directory.
baseName
- The base file name, to be qualified.
public java.lang.String getDTDDirName()
Answer the DTD directory name bound into the receiver.
public java.lang.String getLogDirName()
Answer the log directory name bound into the receiver.
public java.lang.String getBackupDirName()
Answer the backup directory name bound into the receiver.
protected java.util.ArrayList listFileNames(java.io.FilenameFilter filter)
protected java.util.ArrayList listFileNames(java.io.File[] files)
protected java.io.File[] listFiles(java.io.FilenameFilter filter)
public java.lang.String toString()
Answer a string representation of the receiver. This representation currently displays the bound product directory name and the bound version directory name.
toString
in class java.lang.Object
protected boolean initMetadataInstance()
true
if the instance is initialized properly.
Else return false
.
true
if the instance is initialized properly.
Else return false
.
|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |