public final class RemotingDiagnostics extends Object
These code are useful wherever VirtualChannel is used, such as master, slaves, Maven JVMs, etc.
| Modifier and Type | Class and Description |
|---|---|
static class |
RemotingDiagnostics.HeapDump
Heap dump, exposable to URL via Stapler.
|
| Constructor and Description |
|---|
RemotingDiagnostics() |
| Modifier and Type | Method and Description |
|---|---|
static String |
executeGroovy(String script,
hudson.remoting.VirtualChannel channel)
Executes Groovy script remotely.
|
static FilePath |
getHeapDump(hudson.remoting.VirtualChannel channel)
Obtains the heap dump in an HPROF file.
|
static Map<Object,Object> |
getSystemProperties(hudson.remoting.VirtualChannel channel) |
static Map<String,String> |
getThreadDump(hudson.remoting.VirtualChannel channel) |
static hudson.remoting.Future<Map<String,String>> |
getThreadDumpAsync(hudson.remoting.VirtualChannel channel) |
public static Map<Object,Object> getSystemProperties(hudson.remoting.VirtualChannel channel) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic static Map<String,String> getThreadDump(hudson.remoting.VirtualChannel channel) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic static hudson.remoting.Future<Map<String,String>> getThreadDumpAsync(hudson.remoting.VirtualChannel channel) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic static String executeGroovy(String script, @Nonnull hudson.remoting.VirtualChannel channel) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic static FilePath getHeapDump(hudson.remoting.VirtualChannel channel) throws IOException, InterruptedException
IOExceptionInterruptedExceptionCopyright © 2019. All rights reserved.