hudson.util
Class RemotingDiagnostics

java.lang.Object
  extended by hudson.util.RemotingDiagnostics

public final class RemotingDiagnostics
extends Object

Various remoting operations related to diagnostics.

These code are useful wherever VirtualChannel is used, such as master, slaves, Maven JVMs, etc.

Since:
1.175
Author:
Kohsuke Kawaguchi

Nested Class Summary
static class RemotingDiagnostics.HeapDump
          Heap dump, exposable to URL via Stapler.
 
Constructor Summary
RemotingDiagnostics()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemotingDiagnostics

public RemotingDiagnostics()
Method Detail

getSystemProperties

public static Map<Object,Object> getSystemProperties(hudson.remoting.VirtualChannel channel)
                                              throws IOException,
                                                     InterruptedException
Throws:
IOException
InterruptedException

getThreadDump

public static Map<String,String> getThreadDump(hudson.remoting.VirtualChannel channel)
                                        throws IOException,
                                               InterruptedException
Throws:
IOException
InterruptedException

getThreadDumpAsync

public static hudson.remoting.Future<Map<String,String>> getThreadDumpAsync(hudson.remoting.VirtualChannel channel)
                                                                     throws IOException,
                                                                            InterruptedException
Throws:
IOException
InterruptedException

executeGroovy

public static String executeGroovy(String script,
                                   hudson.remoting.VirtualChannel channel)
                            throws IOException,
                                   InterruptedException
Executes Groovy script remotely.

Throws:
IOException
InterruptedException

getHeapDump

public static FilePath getHeapDump(hudson.remoting.VirtualChannel channel)
                            throws IOException,
                                   InterruptedException
Obtains the heap dump in an HPROF file.

Throws:
IOException
InterruptedException


Copyright © 2004-2013. All Rights Reserved.