Package hudson.util
Class RemotingDiagnostics
- java.lang.Object
-
- hudson.util.RemotingDiagnostics
-
public final class RemotingDiagnostics extends Object
Various remoting operations related to diagnostics.These code are useful wherever
VirtualChannelis used, such as master, agents, Maven JVMs, etc.- Since:
- 1.175
- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRemotingDiagnostics.HeapDumpHeap dump, exposable to URL via Stapler.
-
Constructor Summary
Constructors Constructor Description RemotingDiagnostics()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringexecuteGroovy(String script, hudson.remoting.VirtualChannel channel)Executes Groovy script remotely.static FilePathgetHeapDump(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)
-
-
-
Method Detail
-
getSystemProperties
public static Map<Object,Object> getSystemProperties(hudson.remoting.VirtualChannel channel) throws IOException, InterruptedException
- Throws:
IOExceptionInterruptedException
-
getThreadDump
public static Map<String,String> getThreadDump(hudson.remoting.VirtualChannel channel) throws IOException, InterruptedException
- Throws:
IOExceptionInterruptedException
-
getThreadDumpAsync
public static hudson.remoting.Future<Map<String,String>> getThreadDumpAsync(hudson.remoting.VirtualChannel channel) throws IOException, InterruptedException
- Throws:
IOExceptionInterruptedException
-
executeGroovy
public static String executeGroovy(String script, @NonNull hudson.remoting.VirtualChannel channel) throws IOException, InterruptedException
Executes Groovy script remotely.- Throws:
IOExceptionInterruptedException
-
getHeapDump
public static FilePath getHeapDump(hudson.remoting.VirtualChannel channel) throws IOException, InterruptedException
Obtains the heap dump in an HPROF file.- Throws:
IOExceptionInterruptedException
-
-