com.ibm.dtfj.analyzer.was
Class WASVersion
java.lang.Object
SimpleAnalyzerBean
com.ibm.dtfj.analyzer.was.base.WASAnalyzerBase
com.ibm.dtfj.analyzer.was.WASVersion
public class WASVersion
- extends WASAnalyzerBase
Extract information about the WAS version currently loaded in the JavaRuntime
Method Summary |
boolean |
checkCompatibleVersion(IAnalysisReport out,
java.lang.String analyzerName,
java.lang.String[] versions,
boolean strict)
Check if the WAS version is compatible with the versions that can be analyzed by a given analyzer, and
print a message in the report if not. |
static WASVersion |
getInstance(IAnalyzerContext context,
com.ibm.dtfj.java.JavaRuntime parent)
Find the WASVersion bean instance associated with a given parent JavaRuntime
(create it if necessary) |
java.lang.String |
getShortDescription()
|
java.lang.String |
getVersion()
|
java.lang.String |
getWASPlatform()
|
java.lang.String |
getWASVersionString()
|
boolean |
isPrimaryAnalyzer()
|
boolean |
isWAS()
|
IAnalysisReport |
produceReport()
|
void |
setContextAttributes()
Set all the context attributes that are associated with the WAS version in this runtime |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WASVersion
public WASVersion()
getVersion
public java.lang.String getVersion()
- See Also:
com.ibm.dtfj.analyzer.ext.IAnalyzerBase#getVersion()
getShortDescription
public java.lang.String getShortDescription()
- See Also:
com.ibm.dtfj.analyzer.ext.IAnalyzerBase#getShortDescription()
isPrimaryAnalyzer
public boolean isPrimaryAnalyzer()
- Overrides:
isPrimaryAnalyzer
in class WASAnalyzerBase
- See Also:
com.ibm.dtfj.analyzer.ext.IAnalyzerBase#isPrimaryAnalyzer()
getInstance
public static WASVersion getInstance(IAnalyzerContext context,
com.ibm.dtfj.java.JavaRuntime parent)
- Find the WASVersion bean instance associated with a given parent JavaRuntime
(create it if necessary)
- Parameters:
context
- the AnalyzerContext in which to locate this bean instanceparent
- the parent JavaRuntime underlying this analyzer bean
- Returns:
- the desired WASVersion analyzer bean
isWAS
public boolean isWAS()
- Returns:
- true if this JVM contains a WAS runtime, false otherwise
getWASVersionString
public java.lang.String getWASVersionString()
throws com.ibm.dtfj.image.DTFJException
- Returns:
- a string representation of the WAS product version found in this runtime
- Throws:
com.ibm.dtfj.image.DTFJException
getWASPlatform
public java.lang.String getWASPlatform()
throws com.ibm.dtfj.image.DTFJException
- Returns:
- a short string representing the version of WebSphere Platform found in this runtime
- Throws:
com.ibm.dtfj.image.DTFJException
produceReport
public IAnalysisReport produceReport()
- See Also:
com.ibm.dtfj.analyzer.ext.IReport#produceReport()
setContextAttributes
public void setContextAttributes()
throws com.ibm.dtfj.image.DTFJException
- Set all the context attributes that are associated with the WAS version in this runtime
- Throws:
com.ibm.dtfj.image.DTFJException
checkCompatibleVersion
public boolean checkCompatibleVersion(IAnalysisReport out,
java.lang.String analyzerName,
java.lang.String[] versions,
boolean strict)
- Check if the WAS version is compatible with the versions that can be analyzed by a given analyzer, and
print a message in the report if not.
- Parameters:
out
- a AnalysisReport on which to print messages in case in incompatibility has been foundanalyzerName
- the name of the analyzer for which we are checking compatibility (to include in messages)versions
- an array of strings representing the version supported by the analyzer to be checked for
compatibility; each string in this array will be checked against the current WAS version number.strict
- if true, emit a SEVERE message in case of incompatibility and assume that the calling analyzer
will abort; if false, assume the calling analyzer will continue anyway and emit a suitable message to this effect.
- Returns:
- true if the version has found to be compatible, false otherwise
© Copyright IBM Corp. 2007, 2008 All Rights Reserved.
US Government Users Restricted Rights - Use, duplication or disclosure restricted
by GSA ADP Schedule Contract with IBM Corp.