|
Oracle Fusion Middleware extensions for Logging and Diagnostics 11g Release 1 (11.1.2) E22565-02 |
|||||||||
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.facade.TestRunFacade
public class TestRunFacade
This class represents an internal facade bean for diagnostic test run related activites. It exposes various APIs that can be used by clients such as the ADF UI to generate data controls from and bind with the user interface.
This class is intended for internal use. To programmatically query the status of diagnostics test runs using Application Diagnostics Framework, call DiagnosticsTestFramework instead.
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 |
---|
Constructor Summary | |
---|---|
TestRunFacade()
|
Method Summary | |
---|---|
void |
addRunToIncident(java.lang.String pRunId,
java.lang.String pIncidentId,
java.lang.String pServerName,
java.lang.String pAdrHome)
Adds the run report and all the execution reports for the given run to the particular incident specified by the given incident ID and on the given server. |
boolean |
canAccessADRInfo()
Returns true if the ADR information such as list of incidents and list of problems can be accessed through domain server mbeans by checking if appropriate credentials are set in CSF. |
void |
cancelRun(java.lang.String pRunId)
Cancels a run with the given run ID |
boolean |
checkDone(java.lang.String pRunId)
checks whether a run is completed returns true if the test run is completed, otherwise false |
void |
deleteRun(java.lang.String pRunId)
Deletes a single test run with the given Run ID from the Diagnostics Repository. |
void |
deleteRuns(java.util.List<TestRunTreeNode> pRuns)
Deletes a list of runs from the Diagnostics Repository. |
void |
deleteRuns(java.util.List<TestRunTreeNode> pRuns,
boolean pIgnoreInProgress)
Deletes a list of runs from the Diagnostics Repository. |
void |
deleteRuns(java.lang.String[] pStatusCodes,
java.lang.String pRunByUser,
java.util.Date pFromDate,
java.util.Date pToDate,
java.lang.String pRunName)
Deletes the Runs that match the given criteria. |
java.lang.String |
extractReportToFile(java.lang.String pId,
TestRunTreeNode.NodeType pType,
java.lang.String pFormat,
java.lang.String pDestDir,
java.lang.Boolean pGetChildren,
java.lang.Boolean pTranslate,
TestRun.ExecReportLinkProvider pProvider)
Extracts report for the given run or execution to a file and returns the full path to the file. |
DiagCmdExtractReport.ReportWrapper |
extractRunReportToFile(java.lang.String pRunGuid,
java.lang.String pDestDir)
Extracts all report files for the given run GUID to the given destination directory. |
DiagCmdExtractReport.ReportWrapper |
extractRunReportToFile(java.lang.String pRunGuid,
java.lang.String pDestDir,
java.lang.Boolean pMakeSubDir)
Extracts all report files for the given run GUID to the given destination directory. |
int |
getQueryRunsMaxLimit()
Returns the maximum limit on the number of rows returned by the query runs API. |
TestRun |
getTestRunById(java.lang.String runId)
Retrieve the test run given the run id. |
TestRun |
getTestRunByName(java.lang.String runName)
Retrieve the test run given the run name. |
java.util.List<ADRHome> |
listAllADRHomes()
This API lists all the ADR homes that exist within the current domain |
java.util.List<Incident> |
listAllIncidents(Problem pProblem)
Lists all the incidents for the given problem within this applications system |
java.util.List<Problem> |
listAllProblems(ADRHome adrHome)
Lists all problems within this applications system |
java.util.List<TestRunTreeNode> |
queryRuns(java.lang.Long pTimeInterval)
Returns a list of test runs (in the form of TestRunTreeNodes) that were started within given time interval (e.g. |
java.util.List<TestRunTreeNode> |
queryRuns(java.lang.String pStatusCode)
Returns a list of test runs (in the form of TestRunTreeNodes) that are filter with the given status code. |
java.util.List<TestRunTreeNode> |
queryRuns(java.lang.String[] pStatusCodes,
java.lang.Long pTimeInterval,
java.lang.String pRunByUser)
Queries test runs based on the given criteria. |
java.util.List<TestRunTreeNode> |
queryRuns(java.lang.String[] pStatusCodes,
java.lang.Long pTimeInterval,
java.lang.String pRunByUser,
java.util.Date pFromDate,
java.util.Date pToDate,
java.lang.String pRunName,
java.lang.String pTestDisplayName)
Queries test runs based on the given criteria. |
java.util.List<TestRunTreeNode> |
queryRuns(java.lang.String[] pStatusCodes,
java.lang.String pRunByUser,
java.util.Date pFromDate,
java.util.Date pToDate,
java.lang.String pRunName,
java.lang.String pTestDisplayName)
Queries test runs based on the given criteria. |
java.util.List<TestRunTreeNode> |
queryRuns(java.lang.String pStatusCode,
java.lang.Long pTimeInterval)
Returns a list of test runs that are filtered with the given status code and time interval. |
TestRunList |
queryRunsList(java.lang.String[] pStatusCodes,
java.lang.Long pTimeInterval,
java.lang.String pRunByUser,
java.util.Date pFromDate,
java.util.Date pToDate,
java.lang.String pRunName,
java.lang.String pTestDisplayName)
Queries test runs based on the given criteria. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestRunFacade()
Method Detail |
---|
public java.lang.String extractReportToFile(java.lang.String pId, TestRunTreeNode.NodeType pType, java.lang.String pFormat, java.lang.String pDestDir, java.lang.Boolean pGetChildren, java.lang.Boolean pTranslate, TestRun.ExecReportLinkProvider pProvider)
pId
- Run or Execution ID.pType
- Either RUN or EXECpFormat
- Either HTML or XML. If null, defaults to HTML.pDestDir
- Destination directory where the report
should be extracted to. If null, report extracted under default
directory.pGetChildren
- Flag to indicate whether or not
child reports should also be extracted. If null, will
default to false.pTranslate
- Flag to indicate whether or not the
report should be translated. If null, will default to true.pProvider
- Execution reports link provider. Applicable only
for run reports and can be null if no embedded links to execution reports
are desired.
public DiagCmdExtractReport.ReportWrapper extractRunReportToFile(java.lang.String pRunGuid, java.lang.String pDestDir)
pRunGuid
- GUID for the test run for which to extract the
reportpDestDir
- the destination directory to which to extract
the report files
public DiagCmdExtractReport.ReportWrapper extractRunReportToFile(java.lang.String pRunGuid, java.lang.String pDestDir, java.lang.Boolean pMakeSubDir)
pRunGuid
- GUID for the test run for which to extract the
reportpDestDir
- the destination directory to which to extract
the report filespMakeSubDir
- if true, creates a sub-directory under the
destination directory where the report files are to be extracted.
public void cancelRun(java.lang.String pRunId)
pRunId
- run ID for the test run to cancelpublic boolean checkDone(java.lang.String pRunId)
pRunId
- run ID for the test run to be checked
public java.util.List<TestRunTreeNode> queryRuns(java.lang.Long pTimeInterval)
pTimeInterval
- the time interval in seconds
public java.util.List<TestRunTreeNode> queryRuns(java.lang.String pStatusCode)
pStatusCode
- status code for a particular
test
public java.util.List<TestRunTreeNode> queryRuns(java.lang.String pStatusCode, java.lang.Long pTimeInterval)
pStatusCode
- status code for the test runpTimeInterval
- time interval when the test was run
public java.util.List<TestRunTreeNode> queryRuns(java.lang.String[] pStatusCodes, java.lang.Long pTimeInterval, java.lang.String pRunByUser) throws DiagfwkException
pStatusCodes
- - status codes for the runs. Null value
indicates any status.pTimeInterval
- time interval in seconds that specifies the interval
for querying test runs. All runs that started with the last specified number
of seconds are fetchedpRunByUser
- user like predicate to limit the list runs by
DiagfwkException
public java.util.List<TestRunTreeNode> queryRuns(java.lang.String[] pStatusCodes, java.lang.String pRunByUser, java.util.Date pFromDate, java.util.Date pToDate, java.lang.String pRunName, java.lang.String pTestDisplayName) throws DiagfwkException
pStatusCodes
- - status codes for the runs. Null value
indicates any status.pRunByUser
- user to limit the list runs bypFromDate
- - a "start" date value to search for runs that
were submitted after this date.pToDate
- - a "end" date value to search for runs that
were submitted before this date. When used in combination if
with pFromDate, can be used to perform a search for runs within
a given time-interval.pRunName
- - search for runs with a given run name
(a "like" query will be performed based on the value of this
parameter). Null value indicates any run name.
DiagfwkException
public java.util.List<TestRunTreeNode> queryRuns(java.lang.String[] pStatusCodes, java.lang.Long pTimeInterval, java.lang.String pRunByUser, java.util.Date pFromDate, java.util.Date pToDate, java.lang.String pRunName, java.lang.String pTestDisplayName) throws DiagfwkException
pStatusCodes
- - status codes for the runs. Null value
indicates any status.pTimeInterval
- time interval in seconds that specifies the interval
for querying test runs. All runs that started with the last specified number
of seconds are fetchedpRunByUser
- user like predicate to limit the list runs bypFromDate
- - a "start" date value to search for runs that
were submitted after this date.pToDate
- - a "end" date value to search for runs that
were submitted before this date. When used in combination if
with pFromDate, can be used to perform a search for runs within
a given time-interval.pRunName
- - search for runs with a given run name
(a "like" query will be performed based on the value of this
parameter). Null value indicates any run name.
DiagfwkException
public TestRunList queryRunsList(java.lang.String[] pStatusCodes, java.lang.Long pTimeInterval, java.lang.String pRunByUser, java.util.Date pFromDate, java.util.Date pToDate, java.lang.String pRunName, java.lang.String pTestDisplayName) throws DiagfwkException
pStatusCodes
- - status codes for the runs. Null value
indicates any status.pTimeInterval
- time interval in seconds that specifies the interval
for querying test runs. All runs that started with the last specified number
of seconds are fetchedpRunByUser
- user like predicate to limit the list runs bypFromDate
- - a "start" date value to search for runs that
were submitted after this date.pToDate
- - a "end" date value to search for runs that
were submitted before this date. When used in combination if
with pFromDate, can be used to perform a search for runs within
a given time-interval.pRunName
- - search for runs with a given run name
(a "like" query will be performed based on the value of this
parameter). Null value indicates any run name.
DiagfwkException
public void deleteRun(java.lang.String pRunId) throws DiagfwkException
pRunId
- - ID of the Test Run to be deleted.
DiagfwkException
- when any error occurs during the
delete operation.public void deleteRuns(java.util.List<TestRunTreeNode> pRuns) throws DiagfwkException
Additionally, only test runs that have completed can be deleted. If any of the runs in the list are currently running, throws an DiagfwkException and none of the runs are deleted.
pRuns
- - List of test runs to be deleted.
DiagfwkException
- when any error occurs during
the delete operation.public void deleteRuns(java.util.List<TestRunTreeNode> pRuns, boolean pIgnoreInProgress) throws DiagfwkException
pRuns
- - List of test runs to be deleted.pIgnoreInProgress
- - if true, ignores any runs that are
currently running and only deletes the others. If false, throws an
DiagfwkException if any of the runs in the list are running and none of the
runs are deleted.
DiagfwkException
- when any error occurs during
the delete operation.public void deleteRuns(java.lang.String[] pStatusCodes, java.lang.String pRunByUser, java.util.Date pFromDate, java.util.Date pToDate, java.lang.String pRunName) throws DiagfwkException
Any runs that are currently running but fall into the delete criteria are skipped.
pStatusCodes
- - list of status codes for the runs to delete.
Null value indicates any status.pRunByUser
- user like predicate to limit the runs bypFromDate
- - a "start" date value to delete runs that were
submitted after this date.pToDate
- - a "end" date value to delete runs that were
submitted before this date. When used in combination if with
pFromDate, can be used to delete runs within a given
time-interval.pRunName
- - delete runs with a given run name (a "like"
query will be performed based on the value of this parameter).
Null value indicates any run name.
DiagfwkException
public java.util.List<ADRHome> listAllADRHomes()
public java.util.List<Problem> listAllProblems(ADRHome adrHome)
public java.util.List<Incident> listAllIncidents(Problem pProblem)
pProblem
- Problem for which to fetch incidents
public void addRunToIncident(java.lang.String pRunId, java.lang.String pIncidentId, java.lang.String pServerName, java.lang.String pAdrHome)
pRunId
- - ID for the RunpIncidentId
- - ID for the incident to which to add the run reportspServerName
- - Server where the incident is physically located.public boolean canAccessADRInfo()
public TestRun getTestRunById(java.lang.String runId)
runId
- run id for the test run to be checked
public TestRun getTestRunByName(java.lang.String runName)
runName
- run name for the test run to be checked
public int getQueryRunsMaxLimit()
|
Oracle Fusion Middleware extensions for Logging and Diagnostics 11g Release 1 (11.1.2) E22565-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |