Package org.jrd.agent
Class AgentActionWorker
java.lang.Object
java.lang.Thread
org.jrd.agent.AgentActionWorker
- All Implemented Interfaces:
Runnable
This class handles the socket accepting and request processing from the
decompiler
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static interfaceprivate static interfaceNested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Booleanprivate static final Stringprivate InstrumentationProviderFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcloseSocket(BufferedWriter out, Socket socket) private voidexecuteParametrisedNoReturnCommand(BufferedReader in, BufferedWriter out, String help, AgentActionWorker.ParametrisedRunner parametrisedRunner) private voidexecuteRequest(Socket socket) private voidgetAllLoadedClasses(BufferedWriter out, boolean doGetInfo) private voidprivate voidgetList(BufferedWriter out, String id, AgentActionWorker.ListInjector<String> injector) private voidinitClass(BufferedReader in, BufferedWriter out) private voidreceiveByteCode(BufferedReader in, BufferedWriter out) private voidremoveOverrides(BufferedReader in, BufferedWriter out) private voidsendByteCode(BufferedReader in, BufferedWriter out) private static Stringprivate static StringMethods 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, join, join, join, onSpinWait, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Field Details
-
provider
-
abort
-
AGENT_ERROR_ID
- See Also:
-
-
Constructor Details
-
AgentActionWorker
-
-
Method Details
-
toError
-
toError
-
executeRequest
-
getList
private void getList(BufferedWriter out, String id, AgentActionWorker.ListInjector<String> injector) throws IOException - Throws:
IOException
-
getAllLoadedClasses
- Throws:
IOException
-
getAllOverridesClasses
- Throws:
IOException
-
sendByteCode
- Throws:
IOException
-
executeParametrisedNoReturnCommand
private void executeParametrisedNoReturnCommand(BufferedReader in, BufferedWriter out, String help, AgentActionWorker.ParametrisedRunner parametrisedRunner) throws IOException - Throws:
IOException
-
initClass
- Throws:
IOException
-
removeOverrides
- Throws:
IOException
-
receiveByteCode
- Throws:
IOException
-
closeSocket
- Throws:
IOException
-