| 
 | Oracle Fusion Middleware extensions for Logging and Diagnostic 11g Release 1 (11.1.1.6) E22565-05 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.apps.fnd.appltest.diagfwk.cli.BaseVerb
public abstract class BaseVerb
Models a verb supported by the Diagnostics Command-Line interface.
| 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 static java.lang.String | CMD | 
| protected static java.lang.String | SH | 
| 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 | |
|---|---|
| BaseVerb() | |
| Method Summary | |
|---|---|
|  void | cleanup()Performs any cleanup activities required after the execution of the verb has completed. | 
|  void | execute()This API executes the verb with the given list of parameters. | 
| abstract  DiagCmd | getDiagEngineCmd()Returns the diagnostics engine command to be executed for this verb. | 
| protected abstract  java.lang.String[] | getDuplicateAllowedParamNames()Returns an array of parameter names for this verb for which multiple values are allowed. | 
| protected abstract  java.lang.String[] | getExpectedParamNames()Returns an array of expected parameter names for this verb. | 
| abstract  oracle.apps.fnd.appllcm.sdk.common.ResourceRef | getHelpDefinition()This API gives the user help on how to run DiagControl with the given verb. | 
| 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  NameValueList | getParamList() | 
| protected static java.lang.String | getShellExtn()Gets the script extension for diagctl e.g. | 
|  java.lang.String | getVerbName()Gets the name of the verb | 
| static void | print(oracle.apps.fnd.appllcm.sdk.common.ResourceRef pMsg)A utility API for printing output to the console for the user. | 
| static void | print(java.lang.String pMsg) | 
| static void | println(oracle.apps.fnd.appllcm.sdk.common.ResourceRef pMsg)A utility API for printing output to the console for the user. | 
| static void | println(java.lang.String pMsg) | 
| abstract  void | processOutput(java.lang.Object o)Processes the output object produced by running the command. | 
| protected  boolean | requiresDbConn()Checks if this CLI-verb requires connection to the database. | 
| protected  void | setParamList(NameValueList pList) | 
|  void | setVerbName(java.lang.String pVerbName)Sets the name for this verb | 
|  boolean | validateArgs(NameValueList coll)This API validates the command line arguments pass to DiagControl. | 
| abstract  boolean | validateCmdArgs() | 
| protected  void | validateDbConnectInfo()Validates Database Connection information and Database credentials | 
| protected  void | validateDuplicateParams()Validates that there are no duplicates specified for parameters specified except for the ones that are supported. | 
| protected  void | validateExpectedParams()Validates that no unexpected parameters are specified | 
| protected  void | validateUnPwdExist()Validates that the un and pwd 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 static final java.lang.String SH
protected static final java.lang.String CMD
| Constructor Detail | 
|---|
public BaseVerb()
| Method Detail | 
|---|
public boolean validateArgs(NameValueList coll)
coll - Collection of arguments passed to DiagControl
protected void validateDbConnectInfo()
public void setVerbName(java.lang.String pVerbName)
pVerbName - name of the verbpublic java.lang.String getVerbName()
protected void validateExpectedParams()
protected void validateDuplicateParams()
protected void validateUnPwdExist()
protected void setParamList(NameValueList pList)
protected NameValueList getParamList()
public abstract boolean validateCmdArgs()
public abstract oracle.apps.fnd.appllcm.sdk.common.ResourceRef getHelpDefinition()
public void execute()
public abstract DiagCmd getDiagEngineCmd()
protected abstract java.lang.String[] getExpectedParamNames()
protected abstract java.lang.String[] getDuplicateAllowedParamNames()
public abstract void processOutput(java.lang.Object o)
o - output object produced by the command
 for this verb.public void cleanup()
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 boolean requiresDbConn()
true if this verb requires connection
 to the database. Returns false otherwise.public static void println(oracle.apps.fnd.appllcm.sdk.common.ResourceRef pMsg)
pMsg - output message.public static void print(oracle.apps.fnd.appllcm.sdk.common.ResourceRef pMsg)
pMsg - output message.public static void print(java.lang.String pMsg)
public static void println(java.lang.String pMsg)
protected static java.lang.String getShellExtn()
| 
 | Oracle Fusion Middleware extensions for Logging and Diagnostic 11g Release 1 (11.1.1.6) E22565-05 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||