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 Stringstatic intprivate Retransformerprivate static ServerSocketprivate static TransformListenerFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voiddeleteScripts(BufferedReader in, PrintWriter out) private voidgetVersion(BufferedReader in, PrintWriter out) private voidhandleConnection(Socket socket) private voidhandleScripts(BufferedReader in, PrintWriter out, boolean doDelete) static booleaninitialize(Retransformer retransformer) static booleaninitialize(Retransformer retransformer, String hostname, Integer port) private voidlistBootJars(BufferedReader in, PrintWriter out) private voidlistScripts(BufferedReader in, PrintWriter out) private voidlistSystemJars(BufferedReader in, PrintWriter out) private voidprivate voidloadJars(BufferedReader in, PrintWriter out, boolean isBoot) private voidloadScripts(BufferedReader in, PrintWriter out) private voidpurgeScripts(BufferedReader in, PrintWriter out) voidrun()private voidsetSystemProperties(BufferedReader in, PrintWriter out) static booleanMethods 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
-