|
Oracle Application Server DMS API Reference 10g Release 2 (10.1.2) B14002-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.dms.instrument.DMSConsole
The Oracle Dynamic Monitoring Service (DMS) consists of a small set of simple Sensor classes that help Java programmers to measure important events and status values in their applications.
The DMSConsole
class provides methods for dumping metrics and for controlling the detail level of performance measurement.
Field Summary | |
static int |
ALL Constant for highest sensor weight. |
static int |
HEAVY Constant for above average sensor weight. |
static int |
NONE Constant for the lowest sensor weight. |
static int |
NORMAL Constant for default sensor weight. |
Constructor Summary | |
DMSConsole() Constructs a new console. |
Method Summary | |
void |
dump(java.io.PrintWriter pw, java.lang.String format) Dumps metrics for all DMS metrics to PrintWriter. |
void |
dump(java.lang.String filename, java.lang.String format, boolean append) Dumps metrics for all DMS metrics to file. |
static int |
getSensorWeight() Get the Sensor weight for this JVM. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int NONE
public static final int NORMAL
public static final int HEAVY
public static final int ALL
Constructor Detail |
public DMSConsole()
Method Detail |
public void dump(java.lang.String filename, java.lang.String format, boolean append)
filename
- name of dump fileformat
- name of desired formatappend
- if true
, output is appended to end of file, else file is zeroed prior to dump.
supported formats include raw and xml. if format input parameter is null
, then raw format is used.
public void dump(java.io.PrintWriter pw, java.lang.String format)
pw
- output writerformat
- name of desired format
supported formats include raw and xml. if format input parameter is null
, then raw format is used.
public static int getSensorWeight()
The SensorWeight can be set with the oracle.dms.sensors system property. Legal values for this System Property include normal, heavy, all, and none. Programmers may/must check the value explicitly before each call to DMS to implement "conditional" or "disabled" metrics.
SensorWeight is not checked internally by DMS. The programmer must check the value to determine whether DMS methods should be called.
SensorWeight will not change dynamically during the execution of the JVM.
|
Oracle Application Server DMS API Reference 10g Release 2 (10.1.2) B14002-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |