Package org.jppf.server.debug
Class ServerDebug
java.lang.Object
org.jppf.server.debug.ServerDebug
- All Implemented Interfaces:
Serializable,ServerDebugMBean
- Author:
- Laurent Cohen
- See Also:
-
Field Summary
Fields inherited from interface org.jppf.server.debug.ServerDebugMBean
MBEAN_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionall()View all debug info in a formatted string.Get the states of all channels.Get the states of the class loader channels.Get the states of the client data channels.Dump the job queue.Dump the job queue with fine details of the jobs.Dump the job queue with fine details of the jobs.static voidendProf()Trigger method for the profiler to stop profiling.voidTrigger method for the profiler to stop profiling.executeScript(String language, String script) Execute the specified script.Get all the current reservations.intGet the current count of job life cycle notifications.intGet the peak count of job life cycle notifications.String[]Get the jobs for which at least one node is reserved.String[]Get the nodes reserved for a job.voidPrint the specified message to the server's log.voidPrint the specified messages to the server's log.Get the states of the class loader channels.Get the states of the node data channels.Show the multimap of job uuids to the positions of tasks that have completed.static voidTrigger method for the profiler to start profiling.voidTrigger method for the profiler to start profiling.View all idle channels held by theorg.jppf.server.nio.nodeserver.TaskQueueChecker.
-
Constructor Details
-
ServerDebug
- Parameters:
driver- reference to the JPPF driver.
-
-
Method Details
-
clientClassLoaderChannels
Description copied from interface:ServerDebugMBeanGet the states of the class loader channels.- Specified by:
clientClassLoaderChannelsin interfaceServerDebugMBean- Returns:
- the states as as an array of strings.
-
nodeClassLoaderChannels
Description copied from interface:ServerDebugMBeanGet the states of the class loader channels.- Specified by:
nodeClassLoaderChannelsin interfaceServerDebugMBean- Returns:
- the states as as an array of strings.
-
nodeDataChannels
Description copied from interface:ServerDebugMBeanGet the states of the node data channels.- Specified by:
nodeDataChannelsin interfaceServerDebugMBean- Returns:
- the states as as an array of strings.
-
clientDataChannels
Description copied from interface:ServerDebugMBeanGet the states of the client data channels.- Specified by:
clientDataChannelsin interfaceServerDebugMBean- Returns:
- the states as as an array of strings.
-
all
Description copied from interface:ServerDebugMBeanView all debug info in a formatted string.- Specified by:
allin interfaceServerDebugMBean- Returns:
- a string representing all the debug information.
-
allChannels
Description copied from interface:ServerDebugMBeanGet the states of all channels.- Specified by:
allChannelsin interfaceServerDebugMBean- Returns:
- the states as as an array of strings.
-
dumpQueue
Description copied from interface:ServerDebugMBeanDump the job queue.- Specified by:
dumpQueuein interfaceServerDebugMBean- Returns:
- a string representing the job queue.
-
dumpQueueDetails
Description copied from interface:ServerDebugMBeanDump the job queue with fine details of the jobs.- Specified by:
dumpQueueDetailsin interfaceServerDebugMBean- Returns:
- a string representing the job queue.
-
dumpQueueDetailsFromPriorityMap
Description copied from interface:ServerDebugMBeanDump the job queue with fine details of the jobs.- Specified by:
dumpQueueDetailsFromPriorityMapin interfaceServerDebugMBean- Returns:
- a string representing the job queue.
-
taskQueueCheckerChannels
Description copied from interface:ServerDebugMBeanView all idle channels held by theorg.jppf.server.nio.nodeserver.TaskQueueChecker.- Specified by:
taskQueueCheckerChannelsin interfaceServerDebugMBean- Returns:
- a string representing the idle channels.
-
showResultsMap
Description copied from interface:ServerDebugMBeanShow the multimap of job uuids to the positions of tasks that have completed.- Specified by:
showResultsMapin interfaceServerDebugMBean- Returns:
- a string representation of the multimap.
-
getJobNotifCount
public int getJobNotifCount()Description copied from interface:ServerDebugMBeanGet the current count of job life cycle notifications.- Specified by:
getJobNotifCountin interfaceServerDebugMBean- Returns:
- the count as an int.
-
getJobNotifPeak
public int getJobNotifPeak()Description copied from interface:ServerDebugMBeanGet the peak count of job life cycle notifications.- Specified by:
getJobNotifPeakin interfaceServerDebugMBean- Returns:
- the count as an int.
-
getAllReservations
Description copied from interface:ServerDebugMBeanGet all the current reservations.- Specified by:
getAllReservationsin interfaceServerDebugMBean- Returns:
- an array of job uuids.
-
getReservedJobs
Description copied from interface:ServerDebugMBeanGet the jobs for which at least one node is reserved.- Specified by:
getReservedJobsin interfaceServerDebugMBean- Returns:
- an array of job uuids.
-
getReservedNodes
Description copied from interface:ServerDebugMBeanGet the nodes reserved for a job.- Specified by:
getReservedNodesin interfaceServerDebugMBean- Returns:
- an array of job uuids.
-
log
Description copied from interface:ServerDebugMBeanPrint the specified messages to the server's log.- Specified by:
login interfaceServerDebugMBean- Parameters:
messages- the messages to print.
-
log
Description copied from interface:ServerDebugMBeanPrint the specified message to the server's log.- Specified by:
login interfaceServerDebugMBean- Parameters:
message- the message to print.
-
executeScript
public Object executeScript(String language, String script) throws org.jppf.scripting.JPPFScriptingException Description copied from interface:ServerDebugMBeanExecute the specified script.- Specified by:
executeScriptin interfaceServerDebugMBean- Parameters:
language- the script language.script- the script to execute.- Returns:
- the value returned by the script.
- Throws:
org.jppf.scripting.JPPFScriptingException- if an error occurs while evaluating the script.
-
startProfiling
public void startProfiling()Description copied from interface:ServerDebugMBeanTrigger method for the profiler to start profiling.- Specified by:
startProfilingin interfaceServerDebugMBean
-
endProfiling
public void endProfiling()Description copied from interface:ServerDebugMBeanTrigger method for the profiler to stop profiling.- Specified by:
endProfilingin interfaceServerDebugMBean
-
startProf
public static void startProf()Trigger method for the profiler to start profiling. -
endProf
public static void endProf()Trigger method for the profiler to stop profiling. -
getDriver
- Returns:
- a reference to the JPPF driver.
-
getClientJobEntryStats
- Specified by:
getClientJobEntryStatsin interfaceServerDebugMBean- Returns:
- some statistics on the job entries in the client connections.
-
allClientJobEntries
- Specified by:
allClientJobEntriesin interfaceServerDebugMBean- Returns:
- information on all client job entries currently in the driver.
-