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 interface
private static interface
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Boolean
private static final String
private InstrumentationProvider
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
closeSocket
(BufferedWriter out, Socket socket) private void
executeParametrisedNoReturnCommand
(BufferedReader in, BufferedWriter out, String help, AgentActionWorker.ParametrisedRunner parametrisedRunner) private void
executeRequest
(Socket socket) private void
getAllLoadedClasses
(BufferedWriter out, boolean doGetInfo) private void
private void
getList
(BufferedWriter out, String id, AgentActionWorker.ListInjector<String> injector) private void
initClass
(BufferedReader in, BufferedWriter out) private void
receiveByteCode
(BufferedReader in, BufferedWriter out) private void
removeOverrides
(BufferedReader in, BufferedWriter out) private void
sendByteCode
(BufferedReader in, BufferedWriter out) private static String
private static String
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, 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
-