|
HPSearch | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mozilla.javascript.ScriptableObject
cgl.hpsearch.shell.narada.PerfMetrics
Rhino host object that serves as an interface to the NB - Performance monitoring service.
| Field Summary |
| Fields inherited from class org.mozilla.javascript.ScriptableObject |
DONTENUM, EMPTY, parent, PERMANENT, prototype, READONLY |
| Fields inherited from interface org.mozilla.javascript.Scriptable |
NOT_FOUND |
| Constructor Summary | |
PerfMetrics()
|
|
| Method Summary | |
String |
getClassName()
|
void |
jsConstructor()
|
static Object |
jsFunction_getLinks(Context _cx,
Scriptable _thisObj,
Object[] id,
Function funObj)
Returns the link id's collected at a particular aggregation node Note: The parameters below are Rhino Javascript semantics. |
static Object |
jsFunction_getNodes(Context _cx,
Scriptable _thisObj,
Object[] id,
Function funObj)
Returns a String array of various aggregation nodes in the network |
static void |
jsFunction_printTree(Context _cx,
Scriptable _thisObj,
Object[] id,
Function funObj)
Debugging purposes only. |
static Object |
jsFunction_query(Context _cx,
Scriptable _thisObj,
Object[] id,
Function funObj)
Runs an XPath query against the collected statistics. |
static void |
jsFunction_startMonitoring(Context _cx,
Scriptable _thisObj,
Object[] id,
Function funObj)
Signals the NB-Performance monitor to start monitoring(listening for performance events on the topic defined by NB_PERFORMANCE_DATA_TOPIC) |
static void |
jsFunction_stopMonitoring(Context _cx,
Scriptable _thisObj,
Object[] id,
Function funObj)
Signals the NB-Performance monitor to stop monitoring(listening for performance events on the topic defined by NB_PERFORMANCE_DATA_TOPIC) |
| Methods inherited from class org.mozilla.javascript.ScriptableObject |
callMethod, defineClass, defineClass, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, get, get, getAllIds, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getFunctionPrototype, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, has, has, hasInstance, hasProperty, hasProperty, isSealed, put, put, putProperty, putProperty, sealObject, setAttributes, setAttributes, setParentScope, setPrototype |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PerfMetrics()
| Method Detail |
public void jsConstructor()
public String getClassName()
public static void jsFunction_startMonitoring(Context _cx,
Scriptable _thisObj,
Object[] id,
Function funObj)
_cx - _thisObj - id - funObj -
public static void jsFunction_stopMonitoring(Context _cx,
Scriptable _thisObj,
Object[] id,
Function funObj)
_cx - _thisObj - id - funObj -
public static void jsFunction_printTree(Context _cx,
Scriptable _thisObj,
Object[] id,
Function funObj)
_cx - _thisObj - id - funObj -
public static Object jsFunction_getNodes(Context _cx,
Scriptable _thisObj,
Object[] id,
Function funObj)
_cx - _thisObj - id - funObj -
public static Object jsFunction_getLinks(Context _cx,
Scriptable _thisObj,
Object[] id,
Function funObj)
_cx - _thisObj - id - -
Pass a parameter containing the id of the aggregation node.funObj -
public static Object jsFunction_query(Context _cx,
Scriptable _thisObj,
Object[] id,
Function funObj)
badLink = PerfMetrics.query("//link[avgLatency > 5.0]/@id");
jitter = PerfMetrics.query("//link[@id='" + badLink[0] + "']/jitter");
_cx - _thisObj - id - -
A string containing the XPath query.funObj -
|
HPSearch | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||