com.ibm.websphere.product
Class WASDirectory

java.lang.Object
  extended bycom.ibm.websphere.product.WASDirectory

public class WASDirectory
extends java.lang.Object

This is to represent a WebSphere Application Server installation location.


Field Summary
static java.lang.String ID_BASE
          Product ID: BASE edition
static java.lang.String ID_EMBEDDED_EXPRESS
          Product ID: embeddedEXPRESS edition
static java.lang.String ID_EXPRESS
          Product ID: EXPRESS edition
static java.lang.String ID_JDK
          Product ID: JDK
static java.lang.String ID_ND
          Product ID: ND edition
static java.lang.String ID_PME
          Product ID: PME
static java.lang.String ID_WBI
          Product ID: WBI
static java.lang.String ID_XD
          Product ID: XD edition
 
Constructor Summary
WASDirectory(java.lang.String wasLocation)
          Constructor for WASDirectory.
 
Method Summary
 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.
 java.lang.String getName(java.lang.String id)
          Get the name of the WASProductInfo with the specific id.
 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.
 boolean isThisProductInstalled(java.lang.String id)
          Checks if a specific product exists.
static void main(java.lang.String[] args)
           
static boolean refreshProductInfoCache()
          INTERNAL USE ONLY: Refresh ProductInfo cache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID_BASE

public static java.lang.String ID_BASE
Product ID: BASE edition


ID_ND

public static java.lang.String ID_ND
Product ID: ND edition


ID_PME

public static java.lang.String ID_PME
Product ID: PME


ID_WBI

public static java.lang.String ID_WBI
Product ID: WBI


ID_JDK

public static java.lang.String ID_JDK
Product ID: JDK


ID_EMBEDDED_EXPRESS

public static java.lang.String ID_EMBEDDED_EXPRESS
Product ID: embeddedEXPRESS edition


ID_EXPRESS

public static java.lang.String ID_EXPRESS
Product ID: EXPRESS edition


ID_XD

public static java.lang.String ID_XD
Product ID: XD edition

Constructor Detail

WASDirectory

public WASDirectory(java.lang.String wasLocation)
Constructor for WASDirectory. The product instances retrieved are from cache.

Parameters:
wasLocation - the installation location of the WAS product.
Method Detail

main

public static void main(java.lang.String[] args)

getWASProductInfoInstances

public WASProductInfo[] getWASProductInfoInstances()
Get the WASProductInfo instances in the WASDirectory. The product info instances retrieved are from cache.

Returns:
Array of WASProductInfo instances

getWASProductInfo

public WASProductInfo getWASProductInfo(java.lang.String id)
Get the WASProductInfo with the specific id in the WASDirectory. The product info retrieved is from cache.

Parameters:
id - the id of the WAS product.
Returns:
The WASProductInfo instance.

isThisProductInstalled

public boolean isThisProductInstalled(java.lang.String id)
Checks if a specific product exists. The product info retrieved is from cache.

Parameters:
id - The product ID to be checked.
Returns:
true if the specific product is found to be exists; otherwise, return false.

getName

public java.lang.String getName(java.lang.String id)
Get the name of the WASProductInfo with the specific id. The name retrieved is from cache.

Parameters:
id - the id of the WAS product.
Returns:
The name of the WAS product with the specific id.

getVersion

public java.lang.String getVersion(java.lang.String id)
Get the version of the WAS product with the specific id. The version retrieved is from cache.

Parameters:
id - the id of the WAS product.
Returns:
The version of the WAS product with the specific id.

getBuildDate

public java.lang.String getBuildDate(java.lang.String id)
Get the build date of the WAS product with the specific id. The build date retrieved is from cache.

Parameters:
id - the id of the WAS product.
Returns:
The date of the WAS product with the specific id.

getBuildLevel

public java.lang.String getBuildLevel(java.lang.String id)
Get the build level of the WAS product with the specific id. The build level retrieved is from cache.

Parameters:
id - the id of the WAS product.
Returns:
The build level of the WAS product with the specific id.

getWasLocation

public java.lang.String getWasLocation()
Get the installation location of the WAS product.

Returns:
The installation location of the WAS product.

refreshProductInfoCache

public static boolean refreshProductInfoCache()
INTERNAL USE ONLY: Refresh ProductInfo cache.

Returns:
true or false