Oracle Fusion Middleware extensions for Logging and Diagnostic
11g Release 1 (11.1.1.6)

E22565-06

oracle.apps.fnd.appltest.diagfwk.engine.impl
Class TestMonitor

java.lang.Object
  extended by oracle.apps.fnd.appltest.diagfwk.engine.DiagRunnable
      extended by oracle.apps.fnd.appltest.diagfwk.engine.impl.TestMonitor
All Implemented Interfaces:
java.lang.Runnable

public class TestMonitor
extends DiagRunnable

Provides a Runnable thread for monitoring a test monitorable such as test runs and test executions.

Once started, the monitor thread periodically calls the save() method on the TestMoniterable object until isComplete() method on the TestMoniterable returns true.

Since:
release specific (what release of product did this appear in)
Version:
$Header: atgpf/appltest/applications/Diagnostics/Engine/src/oracle/apps/fnd/appltest/diagfwk/engine/impl/TestMonitor.java /main/14 2009/07/23 20:16:54 ilawler Exp $
Author:
ppradhan

Field Summary
static int DEF_MONITORING_PERIOD
          Default monitoring interface of 30 seconds.
 
Fields inherited from class oracle.apps.fnd.appltest.diagfwk.engine.DiagRunnable
mECKey
 
Constructor Summary
TestMonitor(TestMoniterable pMoniterable)
           
TestMonitor(TestMoniterable pMoniterable, boolean pReadOnlyMode)
           
 
Method Summary
protected  void doRun()
          Start the monitoring thread
 long getMonitoringPeriod()
          Gets the monitoring period
 void save()
          Saves the status XML
 void setMonitoringPeriod(int sec)
          Set the monitoring period.
 void setMonitoringPeriod(java.lang.String pMonIntervalSec)
          Sets the monitoring period.
 
Methods inherited from class oracle.apps.fnd.appltest.diagfwk.engine.DiagRunnable
run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEF_MONITORING_PERIOD

public static final int DEF_MONITORING_PERIOD
Default monitoring interface of 30 seconds.

See Also:
Constant Field Values
Constructor Detail

TestMonitor

public TestMonitor(TestMoniterable pMoniterable,
                   boolean pReadOnlyMode)

TestMonitor

public TestMonitor(TestMoniterable pMoniterable)
Method Detail

setMonitoringPeriod

public void setMonitoringPeriod(int sec)
Set the monitoring period. Allows reconfiguration.

Parameters:
sec - monitoring period in sec.

setMonitoringPeriod

public void setMonitoringPeriod(java.lang.String pMonIntervalSec)
Sets the monitoring period. If the given value does not result in a valid monitoring interval, the default of 30 seconds is used.

Parameters:
pMonIntervalSec -

getMonitoringPeriod

public long getMonitoringPeriod()
Gets the monitoring period


save

public void save()
Saves the status XML


doRun

protected void doRun()
Start the monitoring thread

Specified by:
doRun in class DiagRunnable

Oracle Fusion Middleware extensions for Logging and Diagnostic
11g Release 1 (11.1.1.6)

E22565-06

Copyright © 2012 Oracle. All Rights Reserved.