Package org.jruby.management
Class Runtime
java.lang.Object
org.jruby.management.Runtime
- All Implemented Interfaces:
RuntimeMBean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondumpThreads(TraceType.Gather gather) Dump all the threads that are known to ruby.executeRuby(String code) intintint
-
Constructor Details
-
Runtime
-
-
Method Details
-
getExceptionCount
public int getExceptionCount()- Specified by:
getExceptionCountin interfaceRuntimeMBean
-
getBacktraceCount
public int getBacktraceCount()- Specified by:
getBacktraceCountin interfaceRuntimeMBean
-
getCallerCount
public int getCallerCount()- Specified by:
getCallerCountin interfaceRuntimeMBean
-
threadDump
- Specified by:
threadDumpin interfaceRuntimeMBean
-
rawThreadDump
- Specified by:
rawThreadDumpin interfaceRuntimeMBean
-
fullThreadDump
- Specified by:
fullThreadDumpin interfaceRuntimeMBean
-
dumpThreads
Dump all the threads that are known to ruby. We first discover any running threads and then raise an exception in each thread adding the current thread and it's context to the backtrace.- Parameters:
gather- The level of backtrace that get's raised in each thread- Returns:
- [String] A string represnetation of the threds that have been dumped with included backtrace.
-
executeRuby
- Specified by:
executeRubyin interfaceRuntimeMBean
-