Package org.jboss.byteman.agent
Class TransformListener
java.lang.Object
java.lang.Thread
org.jboss.byteman.agent.TransformListener
- All Implemented Interfaces:
Runnable
a socket based listener class which reads scripts from stdin and installs them in the current runtime
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic String
static int
private Retransformer
private static ServerSocket
private static TransformListener
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
deleteScripts
(BufferedReader in, PrintWriter out) private void
getVersion
(BufferedReader in, PrintWriter out) private void
handleConnection
(Socket socket) private void
handleScripts
(BufferedReader in, PrintWriter out, boolean doDelete) static boolean
initialize
(Retransformer retransformer) static boolean
initialize
(Retransformer retransformer, String hostname, Integer port) private void
listBootJars
(BufferedReader in, PrintWriter out) private void
listScripts
(BufferedReader in, PrintWriter out) private void
listSystemJars
(BufferedReader in, PrintWriter out) private void
private void
loadJars
(BufferedReader in, PrintWriter out, boolean isBoot) private void
loadScripts
(BufferedReader in, PrintWriter out) private void
purgeScripts
(BufferedReader in, PrintWriter out) void
run()
private void
setSystemProperties
(BufferedReader in, PrintWriter out) static boolean
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
Field Details
-
DEFAULT_PORT
public static int DEFAULT_PORT -
DEFAULT_HOST
-
theTransformListener
-
theServerSocket
-
retransformer
-
-
Constructor Details
-
TransformListener
-
-
Method Details
-
initialize
-
initialize
-
terminate
public static boolean terminate() -
run
public void run() -
handleConnection
-
getVersion
-
loadScripts
- Throws:
IOException
-
loadJars
- Throws:
IOException
-
deleteScripts
- Throws:
IOException
-
handleScripts
- Throws:
IOException
-
purgeScripts
- Throws:
Exception
-
listScripts
- Throws:
Exception
-
listBootJars
- Throws:
Exception
-
listSystemJars
- Throws:
Exception
-
listSystemProperties
- Throws:
Exception
-
setSystemProperties
- Throws:
Exception
-