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) int
int
int
-
Constructor Details
-
Runtime
-
-
Method Details
-
getExceptionCount
public int getExceptionCount()- Specified by:
getExceptionCount
in interfaceRuntimeMBean
-
getBacktraceCount
public int getBacktraceCount()- Specified by:
getBacktraceCount
in interfaceRuntimeMBean
-
getCallerCount
public int getCallerCount()- Specified by:
getCallerCount
in interfaceRuntimeMBean
-
threadDump
- Specified by:
threadDump
in interfaceRuntimeMBean
-
rawThreadDump
- Specified by:
rawThreadDump
in interfaceRuntimeMBean
-
fullThreadDump
- Specified by:
fullThreadDump
in 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:
executeRuby
in interfaceRuntimeMBean
-