| org.cougaar.core.component.ParameterizedComponent org.cougaar.core.thread.TopPlugin
TopPlugin | public class TopPlugin extends ParameterizedComponent (Code) | | This component is used to create the TopServlet, which it will do
unless the "servlet" parameter is set to "false", and the
RogueThreadDetector, which it will do unless the "detector"
parameter is set to "false".
The servlet displays a more or less current list of
Schedulable s, both running and queued, at all levels and for all
lanes, in a way that's vaguely remniscent of the unix 'top'
command. The access path is /threads/top.
The RogueThreadDetector is a
TimerTask running a
Timer (i.e., it does not use the
ThreadService ). Its
function is to log
Schedulable s that have been running too long.
The period of the task defaults to 5000 and can be set to some
other value with the "period" value.
As if that weren't enough, it can also be used for yet another
purpose, to run a test of the RogueThreadDetector, which it
exercises by running a
Schedulable that intentionally runs
for too long. To enable this test, set the "test" parameter to
"true".
This is designed to be a Node-level plugin.
|
TopPlugin | public TopPlugin()(Code) | | |
dynamicParameterChanged | protected void dynamicParameterChanged(String name, String value)(Code) | | |
runTest | void runTest(int lane)(Code) | | |
unload | public void unload()(Code) | | |
|
|