Class ServerDebug

java.lang.Object
org.jppf.server.debug.ServerDebug
All Implemented Interfaces:
Serializable, ServerDebugMBean

public class ServerDebug extends Object implements ServerDebugMBean
Author:
Laurent Cohen
See Also:
  • Constructor Details

    • ServerDebug

      public ServerDebug(JPPFDriver driver)
      Parameters:
      driver - reference to the JPPF driver.
  • Method Details

    • clientClassLoaderChannels

      public String clientClassLoaderChannels()
      Description copied from interface: ServerDebugMBean
      Get the states of the class loader channels.
      Specified by:
      clientClassLoaderChannels in interface ServerDebugMBean
      Returns:
      the states as as an array of strings.
    • nodeClassLoaderChannels

      public String nodeClassLoaderChannels()
      Description copied from interface: ServerDebugMBean
      Get the states of the class loader channels.
      Specified by:
      nodeClassLoaderChannels in interface ServerDebugMBean
      Returns:
      the states as as an array of strings.
    • nodeDataChannels

      public String nodeDataChannels()
      Description copied from interface: ServerDebugMBean
      Get the states of the node data channels.
      Specified by:
      nodeDataChannels in interface ServerDebugMBean
      Returns:
      the states as as an array of strings.
    • clientDataChannels

      public String clientDataChannels()
      Description copied from interface: ServerDebugMBean
      Get the states of the client data channels.
      Specified by:
      clientDataChannels in interface ServerDebugMBean
      Returns:
      the states as as an array of strings.
    • all

      public String all()
      Description copied from interface: ServerDebugMBean
      View all debug info in a formatted string.
      Specified by:
      all in interface ServerDebugMBean
      Returns:
      a string representing all the debug information.
    • allChannels

      public String allChannels()
      Description copied from interface: ServerDebugMBean
      Get the states of all channels.
      Specified by:
      allChannels in interface ServerDebugMBean
      Returns:
      the states as as an array of strings.
    • dumpQueue

      public String dumpQueue()
      Description copied from interface: ServerDebugMBean
      Dump the job queue.
      Specified by:
      dumpQueue in interface ServerDebugMBean
      Returns:
      a string representing the job queue.
    • dumpQueueDetails

      public String dumpQueueDetails()
      Description copied from interface: ServerDebugMBean
      Dump the job queue with fine details of the jobs.
      Specified by:
      dumpQueueDetails in interface ServerDebugMBean
      Returns:
      a string representing the job queue.
    • dumpQueueDetailsFromPriorityMap

      public String dumpQueueDetailsFromPriorityMap()
      Description copied from interface: ServerDebugMBean
      Dump the job queue with fine details of the jobs.
      Specified by:
      dumpQueueDetailsFromPriorityMap in interface ServerDebugMBean
      Returns:
      a string representing the job queue.
    • taskQueueCheckerChannels

      public String taskQueueCheckerChannels()
      Description copied from interface: ServerDebugMBean
      View all idle channels held by the org.jppf.server.nio.nodeserver.TaskQueueChecker.
      Specified by:
      taskQueueCheckerChannels in interface ServerDebugMBean
      Returns:
      a string representing the idle channels.
    • showResultsMap

      public String showResultsMap()
      Description copied from interface: ServerDebugMBean
      Show the multimap of job uuids to the positions of tasks that have completed.
      Specified by:
      showResultsMap in interface ServerDebugMBean
      Returns:
      a string representation of the multimap.
    • getJobNotifCount

      public int getJobNotifCount()
      Description copied from interface: ServerDebugMBean
      Get the current count of job life cycle notifications.
      Specified by:
      getJobNotifCount in interface ServerDebugMBean
      Returns:
      the count as an int.
    • getJobNotifPeak

      public int getJobNotifPeak()
      Description copied from interface: ServerDebugMBean
      Get the peak count of job life cycle notifications.
      Specified by:
      getJobNotifPeak in interface ServerDebugMBean
      Returns:
      the count as an int.
    • getAllReservations

      public Map<String,Set<String>> getAllReservations()
      Description copied from interface: ServerDebugMBean
      Get all the current reservations.
      Specified by:
      getAllReservations in interface ServerDebugMBean
      Returns:
      an array of job uuids.
    • getReservedJobs

      public String[] getReservedJobs()
      Description copied from interface: ServerDebugMBean
      Get the jobs for which at least one node is reserved.
      Specified by:
      getReservedJobs in interface ServerDebugMBean
      Returns:
      an array of job uuids.
    • getReservedNodes

      public String[] getReservedNodes()
      Description copied from interface: ServerDebugMBean
      Get the nodes reserved for a job.
      Specified by:
      getReservedNodes in interface ServerDebugMBean
      Returns:
      an array of job uuids.
    • log

      public void log(String... messages)
      Description copied from interface: ServerDebugMBean
      Print the specified messages to the server's log.
      Specified by:
      log in interface ServerDebugMBean
      Parameters:
      messages - the messages to print.
    • log

      public void log(String message)
      Description copied from interface: ServerDebugMBean
      Print the specified message to the server's log.
      Specified by:
      log in interface ServerDebugMBean
      Parameters:
      message - the message to print.
    • executeScript

      public Object executeScript(String language, String script) throws org.jppf.scripting.JPPFScriptingException
      Description copied from interface: ServerDebugMBean
      Execute the specified script.
      Specified by:
      executeScript in interface ServerDebugMBean
      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: ServerDebugMBean
      Trigger method for the profiler to start profiling.
      Specified by:
      startProfiling in interface ServerDebugMBean
    • endProfiling

      public void endProfiling()
      Description copied from interface: ServerDebugMBean
      Trigger method for the profiler to stop profiling.
      Specified by:
      endProfiling in interface ServerDebugMBean
    • 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

      public JPPFDriver getDriver()
      Returns:
      a reference to the JPPF driver.
    • getClientJobEntryStats

      public String getClientJobEntryStats()
      Specified by:
      getClientJobEntryStats in interface ServerDebugMBean
      Returns:
      some statistics on the job entries in the client connections.
    • allClientJobEntries

      public List<String> allClientJobEntries()
      Specified by:
      allClientJobEntries in interface ServerDebugMBean
      Returns:
      information on all client job entries currently in the driver.