|
Oracle Fusion Middleware extensions for Logging and Diagnostic 11g Release 1 (11.1.1.6) E22565-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.apps.fnd.appltest.diagfwk.engine.DiagCmd<T>
public abstract class DiagCmd<T>
Abstract base class that models a command that can be run by the diagnostics engine.
The abstract base class is genericized for type in order to facilitate concrete commands to return different objects as a result of the execution.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface oracle.apps.fnd.appltest.diagfwk.common.DiagConstants |
---|
DiagConstants.ExecutionMode, DiagConstants.Format, DiagConstants.LinkType, DiagConstants.Status |
Field Summary | |
---|---|
protected NameValueList |
mParams
|
Fields inherited from interface oracle.apps.fnd.appltest.diagfwk.engine.DiagCmdConstants |
---|
DELIM_VALUE, PARAM_APP, PARAM_CHILD_REPORTS, PARAM_CONNECT_STR, PARAM_DB_PWD, PARAM_DB_UN, PARAM_DESTDIR, PARAM_DIR, PARAM_EXEC_MODE, PARAM_EXECID, PARAM_FORMAT, PARAM_HELP, PARAM_LANG, PARAM_MAKESUBDIR, PARAM_MODID, PARAM_MODKEY, PARAM_NTHREADS, PARAM_PREREQ, PARAM_PRINTTOCONSOLE, PARAM_PRINTTREE, PARAM_PWD, PARAM_QUERY, PARAM_RECURSE, PARAM_REGISTER, PARAM_REPORT, PARAM_RUN_LOCALLY, PARAM_RUN_NAME, PARAM_RUNID, PARAM_RUNTEST, PARAM_STATUS, PARAM_TEST, PARAM_TESTFILE, PARAM_TOKEN_INPUT, PARAM_TOKEN_TAG, PARAM_TRANSLATE, PARAM_USERNAME, PARAM_VALIDATE_ONLY, PARAM_WAITFORCOMPLETION, PARAM_WRITETOFILE, PRE_POPULATED_EXECID |
Constructor Summary | |
---|---|
DiagCmd()
|
Method Summary | |
---|---|
void |
addUpdateParam(java.lang.String name,
java.lang.Object value)
|
abstract T |
execute()
Executes the current command with the parameters set by calling "setParams" method. |
protected int |
getIntParam(java.lang.String name,
int defval)
Gets an integer parameter value for the given parameter. |
protected java.lang.String |
getParam(java.lang.String name)
Gets the value for the given parameter name |
protected java.lang.String |
getParam(java.lang.String name,
java.lang.String defval)
Gets the value for the given parameter. |
protected java.lang.String |
getParam(java.lang.String name,
java.lang.String defval,
java.lang.String[] possibleValues)
Gets the value for the given parameter. |
protected NameValueList |
getParams()
Gets the list of parameters that were passed to this command |
protected int |
getPosIntParam(java.lang.String name,
int defval,
int maxval)
|
protected boolean |
getYNFlagParam(java.lang.String name,
java.lang.String defval)
Gets the boolean value for the given parameter that is a Y/N flag |
protected static boolean |
isParamName(NameValue p,
java.lang.String[] pNames)
Checks if the given parameter name is in the list of given names |
protected void |
logParams(oracle.apps.fnd.appllcm.sdk.common.LCMLog pLogger)
Logs the parameters for this command to the given logger. |
void |
setParams(NameValueList pParams)
Set parameters on the command prior to execution |
protected static java.util.List<java.lang.String> |
tokenize(java.lang.String pValue)
Returns the list of tokens from the given value using the value delimitor "," |
protected void |
validateExactlyOneReqParam(java.lang.String[] pReqParamNames)
Validates that exactly one of the given required parameters have been specified. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected NameValueList mParams
Constructor Detail |
---|
public DiagCmd()
Method Detail |
---|
public void setParams(NameValueList pParams)
pParams
- public void addUpdateParam(java.lang.String name, java.lang.Object value)
protected java.lang.String getParam(java.lang.String name)
name
- name of the parameter
protected java.lang.String getParam(java.lang.String name, java.lang.String defval)
protected java.lang.String getParam(java.lang.String name, java.lang.String defval, java.lang.String[] possibleValues)
protected boolean getYNFlagParam(java.lang.String name, java.lang.String defval)
name
- name of the parameterdefval
- Y/N default value
protected int getIntParam(java.lang.String name, int defval)
name
- name of the parameterdefval
- default value of the parameter to return if value
is not specified.
protected int getPosIntParam(java.lang.String name, int defval, int maxval)
protected void logParams(oracle.apps.fnd.appllcm.sdk.common.LCMLog pLogger)
pLogger
- logger to log toprotected NameValueList getParams()
public abstract T execute()
protected void validateExactlyOneReqParam(java.lang.String[] pReqParamNames)
pReqParamNames
- - an Array of names of required parameters
of which exactly one must be specified.protected static final java.util.List<java.lang.String> tokenize(java.lang.String pValue)
protected static boolean isParamName(NameValue p, java.lang.String[] pNames)
|
Oracle Fusion Middleware extensions for Logging and Diagnostic 11g Release 1 (11.1.1.6) E22565-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |