|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.aspectwerkz.hook.Plug
Main application that allow two steps preparation of the hook
This can be used instead of ProcessStarter to dual JVM and stream pipingjava [options..] org.codehaus.aspectwerkz.hook.Plug -target <targetJar.jar> java [options..] org.codehaus.aspectwerkz.hook.Plug -hotswap <jdwp options> java [options..] org.codehaus.aspectwerkz.hook.Plug -resume <jdwp options> java [options..] org.codehaus.aspectwerkz.hook.Plug -info <jdwp options>
If the JVM was started with -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y Use java [options..] ..Plug -prepare transport=dt_socket,address=8000Be sure to set AspectWerkz option prior to starting the JVM with -Xrunjdwp options.
Constructor Summary | |
Plug()
|
Method Summary | |
void |
hotswap(Map jdwp)
Hotswaps the java.lang.ClassLoader of the remote JVM and resume |
void |
info(Map jdwp)
Prints information about the remote JVM and resume |
static void |
main(String[] args)
|
static Map |
parseArgs(String args)
Parse a jdwp like string in a Map transport=dt_socket,address=8000 will produce a Map of 2 entries whose keys are transport and address |
void |
resume(Map jdwp)
Resume the remote JVM, without hotswapping classes |
void |
target(String destJar)
Dumps the modified java.lang.ClassLoader in destJar The aspectcwerkz.classloader.clclasspreprocessor is used if specified, else defaults to AspectWerkz layer 1 |
static void |
usage()
Print usage information on stdout |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Plug()
Method Detail |
public void target(String destJar) throws Exception
destJar
-
Exception
public void resume(Map jdwp) throws Exception
jdwp
-
Exception
public void info(Map jdwp) throws Exception
jdwp
-
Exception
public void hotswap(Map jdwp) throws Exception
jdwp
-
Exception
public static void usage()
public static Map parseArgs(String args) throws Exception
args
-
Exception
public static void main(String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |