public final class RemotingDiagnostics extends Object
These code are useful wherever VirtualChannel
is used, such as master, agents, 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
IOException
InterruptedException
public static Map<String,String> getThreadDump(hudson.remoting.VirtualChannel channel) throws IOException, InterruptedException
IOException
InterruptedException
public static hudson.remoting.Future<Map<String,String>> getThreadDumpAsync(hudson.remoting.VirtualChannel channel) throws IOException, InterruptedException
IOException
InterruptedException
public static String executeGroovy(String script, @NonNull hudson.remoting.VirtualChannel channel) throws IOException, InterruptedException
IOException
InterruptedException
public static FilePath getHeapDump(hudson.remoting.VirtualChannel channel) throws IOException, InterruptedException
IOException
InterruptedException
Copyright © 2004–2021. All rights reserved.