|
Oracle Application Server DMS API Reference 10g Release 3 (10.1.3.1.0) B28943-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.dms.instrument.Noun
public class Noun
Noun
objects are used to organize the DMS name hierarchy. Nouns may contain Sensors or other Nouns. Generally, Nouns correspond program objects that are to be measured. By convention, Noun names start with a capital letter to distinguish them from Sensors. Character '/' is the default delimiter between Noun names. It is not recommanded that '/' is used as a part of the Noun name.
A Noun type is a name that reflects the set of metrics being collected. By convention, Noun type names are prefixed with the component name followed by an underscore. It is recommended that Nouns of the same type should have the same set of the metrics.
Field Summary | |
---|---|
static byte |
ALL Tells the rollup feature to extract data from all descending Nouns. |
static byte |
DIRECT Tells the rollup feature to extract data from child Nouns only. |
static java.lang.String |
UNKNOWN_TYPE The default Noun type. |
Method Summary | |
---|---|
static Noun |
create(Noun parent, java.lang.String name, java.lang.String type) Creates a new Noun given a Noun parent, and a basename for the new Noun (not a pathname) |
static Noun |
create(java.lang.String pathname, java.lang.String type) Creates a new Noun given a pathname. |
void |
destroy() Destroys the Noun and all of its descendants. |
static Noun |
get(java.lang.String pathname) Returns a Noun given the Noun's pathname |
static Noun |
getRoot() Returns the root Noun for this JVM |
java.lang.String |
getType() Returns the type of a Noun as a String. |
Noun |
rollup(java.lang.String type, byte descendents) Rolls up Sensor metrics from descendent Nouns of the specified type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String UNKNOWN_TYPE
public static final byte DIRECT
public static final byte ALL
Method Detail |
---|
public static Noun create(java.lang.String pathname, java.lang.String type)
pathname
- the pathname of the Nountype
- name of type for the Nounpublic static Noun create(Noun parent, java.lang.String name, java.lang.String type)
parent
- the Noun's parentname
- the Noun's short basename (not a pathname).type
- the Noun's typepublic java.lang.String getType()
UNKNOWN_TYPE
if the type was not explicitly set.public static Noun get(java.lang.String pathname)
pathname
- the pathname of the in the form <delim>name<delim>name... examples: /Wisconsin/Green/Monroe.Oregon.Multnomah.Portland etc.null
if the Noun cannot be found.public static Noun getRoot()
public Noun rollup(java.lang.String type, byte descendents)
This method causes a new DMS Noun, the rollup Noun, to be created directly under the calling Noun. Its name is type+"_rollup", and it's type is the same. Two DMS States are created under the rollup Noun:
The first time metrics are accessed under the rollup Noun, appropriate metrics will be generated which summarize the metrics under the Nouns of the specified type. For the sake of discussion, suppose our Nouns contain the following three sensors:
PhaseEvent myPhase;
Event myEvent;
State myState;
PhaseEvent:
time
metrics.completed
metrics.maxTime
metrics.minTime
metrics.active
metrics.Event:
count
metrics.count
metrics.State:
value
metrics.value
metrics.maxValue
metrics.minValue
metrics.Note that the rollup feature will only be applied to DMS States which contain numerical values.
Every time the metrics in the rollup Noun are requested, the above listed metrics will be recomputed.
type
- the type of Noun from which metrics will be extracted.descendents
- extract metrics from child Nouns or all descendents.null
if it could not be created.public void destroy()
|
Oracle Application Server DMS API Reference 10g Release 3 (10.1.3.1.0) B28943-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |