Package org.jruby.management
Class Runtime
java.lang.Object
org.jruby.management.Runtime
- All Implemented Interfaces:
RuntimeMBean
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SoftReference<Ruby>private static final com.headius.backport9.stack.StackWalker -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voiddumpThread(Ruby ruby, RubyThread th, TraceType.Gather gather, PrintWriter pw) dumpThreads(TraceType.Gather gather) Dump all the threads that are known to ruby.executeRuby(String code) intintint
-
Field Details
-
ruby
-
WALKER
private static final com.headius.backport9.stack.StackWalker WALKER
-
-
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.
-
dumpThread
-
executeRuby
- Specified by:
executeRubyin interfaceRuntimeMBean
-