|
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.WASDirectory
public class WASDirectory
WASDirectory provides an interface into the product version information. For example, Product Name, Edition, Build Number, Build Date etc. This class contains methods that replaced deprecated methods in WASProduct class.
Field Summary | |
---|---|
static java.lang.String |
ID_BASE
Deprecated. Since V8.0 |
static java.lang.String |
ID_CLIENT
Deprecated. Since V8.0 |
static java.lang.String |
ID_EMBEDDED_EXPRESS
Deprecated. Since V8.0 |
static java.lang.String |
ID_EXPRESS
Deprecated. Since V8.0 |
static java.lang.String |
ID_IHS
Deprecated. Since V8.0 |
static java.lang.String |
ID_JDK
Deprecated. Since V8.0 |
static java.lang.String |
ID_ND
Deprecated. Since V8.0 |
static java.lang.String |
ID_NDDMZ
Deprecated. Since V8.0 |
static java.lang.String |
ID_PLUGIN
Deprecated. Since V8.0 |
static java.lang.String |
ID_PME
Deprecated. Since V8.0 |
static java.lang.String |
ID_WBI
Deprecated. Since V8.0 |
static java.lang.String |
ID_WXD
Deprecated. Since V8.0 |
static java.lang.String |
ID_XD
Deprecated. Since V8.0 |
Constructor Summary | |
---|---|
WASDirectory()
Constructor for WASDirectory. |
|
WASDirectory(java.lang.String wasLocation)
Constructor for WASDirectory. |
Method Summary | |
---|---|
java.lang.String |
getArch()
IBM WEBSPHERE INTERNAL USE ONLY. |
java.lang.String |
getArchFromNativeFile()
Deprecated. As of WAS v8.0. Replaced by getArch(). |
java.lang.String |
getBuildDate(java.lang.String id)
Get the build date of the WAS product with the specific id. |
java.lang.String |
getBuildLevel(java.lang.String id)
Get the build level of the WAS product with the specific id. |
IMEvent[] |
getHistoryEventList()
Return a list of history event objects. |
com.ibm.websphere.product.metadata.WASMaintenancePackage[] |
getHistoryMaintenancePackageList()
Deprecated. As of WAS v8.0 |
com.ibm.websphere.product.metadata.WASMaintenancePackage[] |
getHistoryMaintenancePackageListFromV7Metadata()
Deprecated. As of WAS v8.0 |
java.lang.String |
getIMLogLocation()
Return the log directory path associated with this install location. |
com.ibm.websphere.product.metadata.WASComponent |
getInstalledComponentByName(java.lang.String componentName)
Deprecated. Since WAS v8.0. |
com.ibm.websphere.product.metadata.WASComponent[] |
getInstalledComponentList()
Deprecated. Since WAS v8.0. |
com.ibm.websphere.product.metadata.WASMaintenancePackage |
getInstalledMaintenancePackageByID(java.lang.String mpID)
Deprecated. As of WAS v8.0 |
com.ibm.websphere.product.metadata.WASMaintenancePackage[] |
getInstalledMaintenancePackageList()
Deprecated. As of WAS v8.0. |
IMOffering |
getInstalledOfferingByID(java.lang.String productID)
Return an installed IMOffering objects based on product ID. |
IMOffering[] |
getInstalledOfferingList()
Return a list of installed IMOffering objects. |
protected java.lang.String |
getLibraryFilePathByPlatform(java.lang.String os,
java.lang.String sInstallRootPath)
IBM WEBSPHERE INTERNAL USE ONLY. |
java.lang.String |
getName(java.lang.String id)
Get the name of the WASProductInfo with the specific id. |
java.lang.String |
getOfficialArchName()
IBM WEBSPHERE INTERNAL USE ONLY. |
java.lang.String |
getOfficialArchNameFromNativeFile()
Deprecated. As of WAS v8.0. Replaced by getOfficialArchName() |
com.ibm.websphere.product.WASRegistrarInfo |
getRegistrarById(java.lang.String id)
Returns a WASRegistrarInfo for the registrar with the specified id, or null if no such registrar exists. |
java.util.List<java.lang.String> |
getRegistrarFileNames()
Get the list of .registrar file names in the WASDirectory. |
java.util.List<com.ibm.websphere.product.WASRegistrarInfo> |
getRegistrarInstances()
Get the WASRegistrarInfo instances in the WASDirectory. |
java.lang.String |
getVersion(java.lang.String id)
Get the version of the WAS product with the specific id. |
java.lang.String |
getWasLocation()
Get the installation location of the WAS product. |
WASProductInfo |
getWASProductInfo(java.lang.String id)
Get the WASProductInfo with the specific id in the WASDirectory. |
WASProductInfo[] |
getWASProductInfoInstances()
Get the WASProductInfo instances in the WASDirectory. |
protected void |
init(java.lang.String wasLocation)
IBM WEBSPHERE INTERNAL USE ONLY. |
protected void |
init(java.lang.String wasLocation,
boolean initMetadatInstance)
IBM WEBSPHERE INTERNAL USE ONLY. |
protected boolean |
initMetadataInstance()
IBM WEBSPHERE INTERNAL USE ONLY. |
boolean |
isComponentInstalled(java.lang.String componentName)
Deprecated. As of WAS v8.0. |
boolean |
isInstallMetadataExist()
IBM WEBSPHERE INTERNAL USE ONLY. |
boolean |
isMaintenancePackageInstalled(java.lang.String ID)
Deprecated. As of WAS v8.0. |
boolean |
isRegistrarPresent(java.lang.String id)
Determines if a registrar with the specified id exists. |
boolean |
isThisProductInstalled(java.lang.String id)
Checks if a specific product exists. |
static boolean |
refreshCache()
IBM WEBSPHERE INTERNAL USE ONLY. |
static boolean |
refreshProductInfoCache()
IBM WEBSPHERE INTERNAL USE ONLY. |
protected void |
setLogger(com.ibm.websphere.product.logger.WASDirectoryLogger logger)
IBM WEBSPHERE INTERNAL USE ONLY. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ID_BASE
public static final java.lang.String ID_EXPRESS
public static final java.lang.String ID_ND
public static final java.lang.String ID_NDDMZ
public static final java.lang.String ID_PME
public static final java.lang.String ID_WBI
public static final java.lang.String ID_JDK
public static final java.lang.String ID_EMBEDDED_EXPRESS
public static final java.lang.String ID_XD
public static final java.lang.String ID_CLIENT
public static final java.lang.String ID_PLUGIN
public static final java.lang.String ID_IHS
public static final java.lang.String ID_WXD
Constructor Detail |
---|
public WASDirectory() throws java.io.FileNotFoundException, java.io.IOException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, WASDirectoryException
java.io.FileNotFoundException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
WASDirectoryException
public WASDirectory(java.lang.String wasLocation)
wasLocation
- the installation location of the WAS product.Method Detail |
---|
public java.util.List<com.ibm.websphere.product.WASRegistrarInfo> getRegistrarInstances()
public java.util.List<java.lang.String> getRegistrarFileNames()
public com.ibm.websphere.product.WASRegistrarInfo getRegistrarById(java.lang.String id)
id
- The registrar ID to return a WASRegistrarInfo for.
public boolean isRegistrarPresent(java.lang.String id)
id
- The registrar id to look for.
public WASProductInfo[] getWASProductInfoInstances()
public WASProductInfo getWASProductInfo(java.lang.String id)
id
- the id of the WAS product.
public boolean isThisProductInstalled(java.lang.String id)
id
- The product ID to be checked.
true
if the specific product is found to be exists; otherwise, return false
.public java.lang.String getName(java.lang.String id)
id
- the id of the WAS product.
public java.lang.String getVersion(java.lang.String id)
id
- the id of the WAS product.
public java.lang.String getBuildDate(java.lang.String id)
id
- the id of the WAS product.
public java.lang.String getBuildLevel(java.lang.String id)
id
- the id of the WAS product.
public java.lang.String getWasLocation()
public java.lang.String getIMLogLocation()
public static boolean refreshProductInfoCache()
true
or false
public static boolean refreshCache()
true
or false
public java.lang.String getOfficialArchNameFromNativeFile()
installLocation
- Product install location.
public java.lang.String getArchFromNativeFile() throws java.io.IOException
installLocation
- Product install location.
java.io.IOException
public java.lang.String getOfficialArchName()
installLocation
- Product install location.
public java.lang.String getArch() throws java.io.IOException
java.io.IOException
public IMOffering[] getInstalledOfferingList() throws java.io.FileNotFoundException, java.io.IOException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException
java.io.FileNotFoundException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
public boolean isInstallMetadataExist()
public IMOffering getInstalledOfferingByID(java.lang.String productID) throws java.io.FileNotFoundException, java.io.IOException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException
productID
- The product ID of interest.
java.io.FileNotFoundException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
public IMEvent[] getHistoryEventList() throws java.io.FileNotFoundException, java.io.IOException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException
java.io.FileNotFoundException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
public com.ibm.websphere.product.metadata.WASComponent getInstalledComponentByName(java.lang.String componentName) throws java.io.FileNotFoundException, java.io.IOException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException
componentName
- The name of the component to be retrieved.
java.io.FileNotFoundException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
public com.ibm.websphere.product.metadata.WASComponent[] getInstalledComponentList() throws java.io.FileNotFoundException, java.io.IOException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException
java.io.FileNotFoundException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
public com.ibm.websphere.product.metadata.WASMaintenancePackage[] getHistoryMaintenancePackageList() throws java.io.FileNotFoundException, java.io.IOException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException
java.io.FileNotFoundException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
public com.ibm.websphere.product.metadata.WASMaintenancePackage getInstalledMaintenancePackageByID(java.lang.String mpID) throws java.io.FileNotFoundException, java.io.IOException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException
mpID
- The maintenance package ID of the maintenance package to be retrieved.
java.io.FileNotFoundException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
public com.ibm.websphere.product.metadata.WASMaintenancePackage[] getInstalledMaintenancePackageList() throws java.io.FileNotFoundException, java.io.IOException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException
java.io.FileNotFoundException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
public boolean isComponentInstalled(java.lang.String componentName) throws java.io.FileNotFoundException, java.io.IOException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException
true
if the named component is installed.
Else return false
.
componentName
- The component name.
true
if the named component is installed.
Else return false
.
java.io.FileNotFoundException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
public boolean isMaintenancePackageInstalled(java.lang.String ID) throws java.io.FileNotFoundException, java.io.IOException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException
true
if the named maintenance package is installed.
Else return false
.
ID
- The maintenance package ID.
true
if the named maintenance package is installed.
Else return false
.
java.io.FileNotFoundException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
public com.ibm.websphere.product.metadata.WASMaintenancePackage[] getHistoryMaintenancePackageListFromV7Metadata() throws java.io.FileNotFoundException, java.io.IOException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException
java.io.FileNotFoundException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
protected java.lang.String getLibraryFilePathByPlatform(java.lang.String os, java.lang.String sInstallRootPath)
os
- The OS/platform keyword.sLibDirPath
- The path of the directory where the libraries are
placed under.
protected void init(java.lang.String wasLocation)
wasLocation
- The install location.protected void init(java.lang.String wasLocation, boolean initMetadatInstance)
wasLocation
- The install location.protected boolean initMetadataInstance() throws java.io.FileNotFoundException, java.io.IOException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException
true
if the instance is initialized properly.
Else return false
.
java.io.FileNotFoundException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
protected void setLogger(com.ibm.websphere.product.logger.WASDirectoryLogger logger)
logger
- The logger object for this WASMetadata instance.
|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |