|
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.impl.DiagBObjImpl<T> oracle.apps.fnd.appltest.diagfwk.engine.impl.DiagJAXBXMLDoc<T> oracle.apps.fnd.appltest.diagfwk.engine.impl.DiagJAXBXMLDocReport<TestRun> oracle.apps.fnd.appltest.diagfwk.engine.impl.TestRunImpl
public class TestRunImpl
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface oracle.apps.fnd.appltest.diagfwk.engine.TestRun |
---|
TestRun.ExecReportLinkProvider, TestRun.TestRunVisitor |
Nested classes/interfaces inherited from interface oracle.apps.fnd.appltest.diagfwk.common.DiagConstants |
---|
DiagConstants.ExecutionMode, DiagConstants.Format, DiagConstants.LinkType, DiagConstants.Status |
Nested classes/interfaces inherited from interface oracle.apps.fnd.appltest.diagfwk.engine.facade.TestRunTreeNode |
---|
TestRunTreeNode.NodeType |
Field Summary |
---|
Fields inherited from class oracle.apps.fnd.appltest.diagfwk.engine.impl.DiagJAXBXMLDocReport |
---|
mTestReport, xmlSrcFile |
Fields inherited from class oracle.apps.fnd.appltest.diagfwk.engine.impl.DiagJAXBXMLDoc |
---|
errMsgOnLoadXML, errMsgOnValXML |
Fields inherited from interface oracle.apps.fnd.appltest.diagfwk.engine.impl.DiagImplConstants |
---|
KEY_I_PARAM_DEF_REF, KEY_O_PARAM_DEF_REF, KEY_REF_TEST_DEF_TABLE, KEY_STEP_INPUT_PARAM_SECRET, SECRET_MASK, STEP_REP_EXEC_NAME_ENGINE, STEP_REP_NAME_ENGINE_LOG, TOKEN_DELIM, TOKEN_OUTPUTS, TOKEN_STEP, TOKEN_TEST_INPUTS, TOKEN_TEST_OUTPUTS |
Constructor Summary | |
---|---|
TestRunImpl()
|
Method Summary | |
---|---|
void |
cancel()
Attempts to cancel this test run by setting the status for this run to canceled in the test repository. |
boolean |
checkCanceled()
Checks (by querying the repository) if this moniterable has been canceled. |
boolean |
checkDone()
Checks (by querying the repository) if this moniterable is still running. |
void |
completeReport()
Completes the status for this run. |
void |
computeLinksInReport()
Computes links within this report |
void |
copy(TestRun t)
Copies the contents of the given TestRun into this object |
void |
copyT(java.lang.Object pObj)
Copies the contents of the given object into this object |
void |
delete()
Deletes the this test run. |
void |
fetch()
Fetches the contents of a TestRun. |
void |
fetch(boolean pFetchExecutions)
Fetches the contents of a TestRun. |
void |
fetch(boolean pFetchExecutions,
boolean bLoadReport)
Fetches the contents of a TestRun. |
java.lang.String |
generateXMLReport()
Generates the XML Report for the Run from the JAXB content tree and returns it as a String |
protected java.util.List<DiagJAXBXMLDocReport> |
getChildList()
Returns the list of nested entities |
java.util.List<TestRunTreeNode> |
getChildren()
Gets the immediate children for this node. |
java.lang.String |
getDiagStatus()
Gets the diagnostic status code for this node |
java.lang.String |
getDisplayName()
Gets the display name for this node. |
java.lang.String |
getElapsedTime()
Returns the difference between endTime and startTime for this node in "HH:MM:SS" format. |
java.util.Date |
getEndTime()
Gets the end time |
java.lang.String |
getExecMode()
Gets the execution mode |
TestRun.ExecReportLinkProvider |
getExecReportLinkProvider()
Gets the execution report link provider that may have been set previously on this run by calling setExecReportLinkProvider(). |
java.lang.String |
getExecStatus()
Gets the execution status code for this node |
java.lang.String |
getID()
Gets the ID for this node. |
int |
getMonitorInterval()
Get the Monitor interval Run Parameter for this run |
java.lang.String |
getName()
Gets the name for this node. |
TestReportExtn |
getNodeReportObj()
Gets the report for this node. |
TestRunTreeNode.NodeType |
getNodeType()
Returns the type of the current node |
int |
getNumberOfThreads()
Get the Number of Threads Run Parameter for this run |
java.lang.String |
getRequestId()
Gets the request id |
java.lang.String |
getRunBy()
Who ran the run, for now simply another accessor to the created by element. |
java.lang.String |
getRunId()
Gets the run ID |
java.lang.String |
getRunName()
Gets the run description |
java.lang.String |
getRunReport()
Gets the run report |
java.util.Date |
getStartTime()
Gets the start time |
java.lang.String |
getStatus()
Gets the status |
TestExecList |
getTestExecList()
Returns the list of associated child executions |
java.lang.Boolean |
getViewReportAllowed()
Returns a boolean representing whether the salient details of a report may be viewed. |
protected java.lang.String |
getXmlSourceIdentifier()
Returns an identifier for the current loaded XML source document |
boolean |
hasChildren()
Returns a flag to indicate if this node has any children |
boolean |
hasReport()
Checks to see if this node has a report |
void |
initializeReport(NameValueList pRunArgs)
Initializes the run report and logs the given run arguments into the report. |
boolean |
isDone()
Returns true if the moniterable is done. |
protected void |
loadReport()
Loads report into JAXB objects from fetched report XML. |
void |
logError(oracle.apps.fnd.appllcm.sdk.common.ResourceRef pErrMsg,
java.lang.Throwable t)
Logs the given error message and stack trace to the Run Report's Engine Log Section. |
void |
logMessage(oracle.apps.fnd.appllcm.sdk.common.ResourceRef pMsg)
Logs the given message to the Run Report's Engine Log Section. |
protected void |
populate(java.lang.String pXMLMetadata)
|
void |
save()
Saves the status and contents of the moniterable to the repository. |
void |
setEndTime(java.util.Date pEndTime)
Sets the end time |
void |
setExecMode(java.lang.String pExecMode)
Sets the execution mode |
void |
setExecReportLinkProvider(TestRun.ExecReportLinkProvider provider)
Sets an execution report link provider for this run to be used in order to generate links to the execution reports for this run that can be embedded into this run report |
protected void |
setJAXBMetadataStr(java.lang.String pXMLStr)
Sets the marshalled XML document for the metadata in String format |
void |
setMonitorInterval(int value)
Set the Monitor interval Run Parameter for this run |
void |
setNumberOfThreads(int value)
Set the Number of Threads Run Parameter for this run |
void |
setRequestId(java.lang.String pRequestId)
Sets the request id |
void |
setRunId(java.lang.String pRunId)
Sets the Run ID |
void |
setRunName(java.lang.String pRunName)
Sets the run description |
void |
setRunReport(java.lang.String pRunReport)
Sets the run report |
void |
setStartTime(java.util.Date pStartTime)
Sets the start time |
void |
setStatus(java.lang.String pStatus)
Sets the status |
void |
setTestExecList(TestExecList pTestExecList)
Sets the test execution list for the test run |
void |
translateReport()
Translates the translatable contents of this report to user's session language. |
void |
visitAll(TestRun.TestRunVisitor pVisitor)
Traverses this Run as well as all Exections under this Run and invokes the appropriate "visit()" method on the TestRunVisitor for each node. |
java.lang.String |
writeReportHTML(java.lang.String pOutDir,
boolean pWriteChildren)
Writes out the report content in HTML format to the given output directory. |
Methods inherited from class oracle.apps.fnd.appltest.diagfwk.engine.impl.DiagJAXBXMLDocReport |
---|
getErrorMsgOnLoadXmlErr, getErrorMsgOnXmlValErr, getJAXBMetadataObj, getJAXBPkg, getReportObj, performPostLoad, saveReportHTML, saveReportHTML, saveReportXML, saveReportXML, setJAXBMetadataObj, setReportObj, stripExtn, writeReport, writeReport, writeReportHTML, writeReportXML, writeReportXML |
Methods inherited from class oracle.apps.fnd.appltest.diagfwk.engine.impl.DiagJAXBXMLDoc |
---|
getErrMsgOnLoadXML, getErrMsgOnValXML, load, reactToValidationEvents, saveJAXB, saveToFile, setErrMsgOnLoadXML, setErrMsgOnValXML |
Methods inherited from class oracle.apps.fnd.appltest.diagfwk.engine.impl.DiagBObjImpl |
---|
copyCommon, getCreatedBy, getCreationDate, getLastUpdateDate, getLastUpdatedBy, getLastUpdateLogin, isCreatedByOracle, setCreatedBy, setCreationDate, setLastUpdateDate, setLastUpdatedBy, setLastUpdateLogin |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface oracle.apps.fnd.appltest.diagfwk.engine.TestRun |
---|
getReportObj, writeReport, writeReport, writeReportHTML, writeReportXML, writeReportXML |
Methods inherited from interface oracle.apps.fnd.appltest.diagfwk.engine.DiagBObj |
---|
getCreatedBy, getCreationDate, getLastUpdateDate, getLastUpdatedBy, getLastUpdateLogin, isCreatedByOracle, setCreatedBy, setCreationDate, setLastUpdateDate, setLastUpdatedBy, setLastUpdateLogin |
Methods inherited from interface oracle.apps.fnd.appltest.diagfwk.engine.facade.TestRunTreeNode |
---|
getCreatedBy |
Constructor Detail |
---|
public TestRunImpl()
Method Detail |
---|
public java.lang.String getRunId()
TestRun
getRunId
in interface TestRun
public java.lang.String getRunName()
TestRun
getRunName
in interface TestRun
public java.lang.String getExecMode()
TestRun
getExecMode
in interface TestRun
public java.lang.String getStatus()
TestRun
getStatus
in interface TestRunTreeNode
getStatus
in interface TestMoniterable<TestRun>
getStatus
in interface TestRun
public java.util.Date getStartTime()
TestRun
getStartTime
in interface TestRunTreeNode
getStartTime
in interface TestRun
public java.util.Date getEndTime()
TestRun
getEndTime
in interface TestRunTreeNode
getEndTime
in interface TestRun
public java.lang.String getRequestId()
TestRun
getRequestId
in interface TestRun
public java.lang.String getRunReport()
TestRun
getRunReport
in interface TestRun
public java.lang.String getRunBy()
TestRunTreeNode
getRunBy
in interface TestRunTreeNode
public TestExecList getTestExecList()
TestRun
getTestExecList
in interface TestRun
public int getMonitorInterval()
TestRun
getMonitorInterval
in interface TestRun
public int getNumberOfThreads()
TestRun
getNumberOfThreads
in interface TestRun
public void setNumberOfThreads(int value)
TestRun
setNumberOfThreads
in interface TestRun
public void setMonitorInterval(int value)
TestRun
setMonitorInterval
in interface TestRun
public void setRunId(java.lang.String pRunId)
TestRun
setRunId
in interface TestRun
pRunId
- the Run IDpublic void setRunName(java.lang.String pRunName)
TestRun
setRunName
in interface TestRun
pRunName
- the run descriptionpublic void setExecMode(java.lang.String pExecMode)
TestRun
setExecMode
in interface TestRun
pExecMode
- the execution modepublic void setStatus(java.lang.String pStatus)
TestRun
setStatus
in interface TestRun
pStatus
- the statuspublic void setStartTime(java.util.Date pStartTime)
TestRun
setStartTime
in interface TestRun
pStartTime
- the start timepublic void setEndTime(java.util.Date pEndTime)
TestRun
setEndTime
in interface TestRun
pEndTime
- the end timepublic void setRequestId(java.lang.String pRequestId)
TestRun
setRequestId
in interface TestRun
pRequestId
- the request idpublic void setRunReport(java.lang.String pRunReport)
TestRun
setRunReport
in interface TestRun
pRunReport
- the run reportpublic void setTestExecList(TestExecList pTestExecList)
TestRun
setTestExecList
in interface TestRun
pTestExecList
- the run execution listpublic java.lang.Boolean getViewReportAllowed()
DiagJAXBXMLDocReport
getViewReportAllowed
in interface TestRunTreeNode
getViewReportAllowed
in interface TestRun
getViewReportAllowed
in class DiagJAXBXMLDocReport<TestRun>
public void fetch()
TestRun
fetch
in interface TestRun
public void fetch(boolean pFetchExecutions)
TestRun
fetch
in interface TestRun
pFetchExecutions
- flag to indicate whether the
API should fetch included executions or not. If false,
only fetches attributes of the run. Otherwise fetches
all incldues executions under this run as well.public void fetch(boolean pFetchExecutions, boolean bLoadReport)
TestRun
fetch
in interface TestRun
pFetchExecutions
- flag to indicate whether the
API should fetch included executions or not. If false,
only fetches attributes of the run. Otherwise fetches
all incldues executions under this run as well.bLoadReport
- flag to indicate whether the test
report should be loaded on the fetch. If it should be loaded,
the report view permission will be checked.protected void loadReport()
protected void populate(java.lang.String pXMLMetadata)
public void copy(TestRun t)
TestRun
copy
in interface TestRun
copy
in class DiagBObjImpl<TestRun>
t
- The TestRun instance to copy from.public void copyT(java.lang.Object pObj)
DiagBObj
copyT
in interface DiagBObj<TestRun>
pObj
- the contents of the given object into this objectprotected java.lang.String getXmlSourceIdentifier()
DiagJAXBXMLDocReport
getXmlSourceIdentifier
in class DiagJAXBXMLDocReport<TestRun>
protected void setJAXBMetadataStr(java.lang.String pXMLStr)
DiagJAXBXMLDoc
setJAXBMetadataStr
in class DiagJAXBXMLDoc<TestRun>
pXMLStr
- marshalled XML documentpublic void save()
TestMoniterable
save
in interface TestMoniterable<TestRun>
public java.lang.String generateXMLReport()
TestRun
generateXMLReport
in interface TestRun
public boolean isDone()
TestMoniterable
isDone
in interface TestRunTreeNode
isDone
in interface TestMoniterable<TestRun>
public void completeReport()
TestRun
completeReport
in interface TestRun
public void initializeReport(NameValueList pRunArgs)
TestRun
initializeReport
in interface TestRun
pRunArgs
- parameter name values that were used to
invoke this run.public void logMessage(oracle.apps.fnd.appllcm.sdk.common.ResourceRef pMsg)
TestRun
logMessage
in interface TestRun
pMsg
- Message to log.public void logError(oracle.apps.fnd.appllcm.sdk.common.ResourceRef pErrMsg, java.lang.Throwable t)
TestRun
logError
in interface TestRun
pErrMsg
- Error message to logt
- Throwable whose stack trace will be logged.public java.lang.String writeReportHTML(java.lang.String pOutDir, boolean pWriteChildren)
DiagJAXBXMLDocReport
writeReportHTML
in interface TestRun
writeReportHTML
in class DiagJAXBXMLDocReport<TestRun>
pOutDir
- output directorypWriteChildren
- if true writes the report for children if any.
TestRun.writeReport(String, boolean)
,
TestExec.writeReport(String, boolean)
protected java.util.List<DiagJAXBXMLDocReport> getChildList()
DiagJAXBXMLDocReport
getChildList
in class DiagJAXBXMLDocReport<TestRun>
public void translateReport()
translateReport
in interface TestRun
translateReport
in class DiagJAXBXMLDocReport<TestRun>
public void computeLinksInReport()
DiagJAXBXMLDocReport
computeLinksInReport
in interface TestRun
computeLinksInReport
in class DiagJAXBXMLDocReport<TestRun>
public java.lang.String getID()
TestRunTreeNode
getID
in interface TestRunTreeNode
public java.lang.String getName()
TestRunTreeNode
getName
in interface TestRunTreeNode
public java.lang.String getDisplayName()
TestRunTreeNode
getDisplayName
in interface TestRunTreeNode
public java.lang.String getExecStatus()
TestRunTreeNode
getExecStatus
in interface TestRunTreeNode
public java.lang.String getDiagStatus()
TestRunTreeNode
getDiagStatus
in interface TestRunTreeNode
public java.util.List<TestRunTreeNode> getChildren()
TestRunTreeNode
If the children are already fetch this method will not re-execute a query to the database. If the children are not yet fetched for this node, this method will fetch the children from the database.
getChildren
in interface TestRunTreeNode
public boolean hasChildren()
DiagTreeNode
hasChildren
in interface DiagTreeNode
public TestReportExtn getNodeReportObj()
TestRunTreeNode
getNodeReportObj
in interface TestRunTreeNode
public TestRunTreeNode.NodeType getNodeType()
TestRunTreeNode
getNodeType
in interface TestRunTreeNode
public boolean hasReport()
TestRunTreeNode
hasReport
in interface TestRunTreeNode
public void setExecReportLinkProvider(TestRun.ExecReportLinkProvider provider)
TestRun
setExecReportLinkProvider
in interface TestRun
provider
- an instance of ExecReportLinkProvider that
can be used to create links to the execution reports.public TestRun.ExecReportLinkProvider getExecReportLinkProvider()
TestRun
getExecReportLinkProvider
in interface TestRun
public void cancel()
TestRun
cancel
in interface TestRun
public void delete() throws DiagfwkException
TestRun
delete
in interface TestRun
DiagfwkException
- when any error occurs during the
deletion process.public boolean checkCanceled()
TestMoniterable
checkCanceled
in interface TestMoniterable<TestRun>
public boolean checkDone()
TestMoniterable
checkDone
in interface TestMoniterable<TestRun>
public java.lang.String getElapsedTime()
TestRunTreeNode
getElapsedTime
in interface TestRunTreeNode
public void visitAll(TestRun.TestRunVisitor pVisitor)
TestRun
This method initially invokes pVisitor.visit(TestRun) with this run object. Subsequently, it invokes pVisitor.visit(TestExec) for each execution in the run including nested executions (if any).
visitAll
in interface TestRun
pVisitor
- TestRunVisitor performing the visit
on this run.
|
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 |