Class CallDecompilerAgent
java.lang.Object
org.jrd.backend.communication.CallDecompilerAgent
- All Implemented Interfaces:
DelegatingJrdAgent, JrdAgent
This class is handling opening of communication socket and request submitting.
-
Nested Class Summary
Nested classes/interfaces inherited from interface DelegatingJrdAgent
DelegatingJrdAgent.CommandDelegationOptions, DelegatingJrdAgent.DelegatingHelper -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringstatic final Stringstatic final intprivate final DelegatingJrdAgent.DelegatingHelperprivate final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDelegatingAgent(JrdAgent agent) intremoveDelegatingAgent(JrdAgent agent) submitRequest(String request) Opens a socket and sends the request to the agent via socket.
-
Field Details
-
DEFAULT_ADDRESS
- See Also:
-
DEFAULT_PORT
public static final int DEFAULT_PORT- See Also:
-
port
private final int port -
address
-
delegationCandidates
-
-
Constructor Details
-
CallDecompilerAgent
Constructor of the object- Parameters:
port- port where to open sockethost- socket host
-
-
Method Details
-
submitRequest
Opens a socket and sends the request to the agent via socket.- Specified by:
submitRequestin interfaceDelegatingJrdAgent- Specified by:
submitRequestin interfaceJrdAgent- Parameters:
request- either "CLASSES" or "BYTES \n className", other formats are refused- Returns:
- agents response or null
-
addDelegatingAgent
- Specified by:
addDelegatingAgentin interfaceDelegatingJrdAgent
-
removeDelegatingAgent
- Specified by:
removeDelegatingAgentin interfaceDelegatingJrdAgent
-
cleanDelegatingAgents
public int cleanDelegatingAgents()- Specified by:
cleanDelegatingAgentsin interfaceDelegatingJrdAgent
-