Package org.jrd.backend.communication
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 org.jrd.backend.communication.DelegatingJrdAgent
DelegatingJrdAgent.CommandDelegationOptions, DelegatingJrdAgent.DelegatingHelper
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
static final String
static final int
private final DelegatingJrdAgent.DelegatingHelper
private final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDelegatingAgent
(JrdAgent agent) int
removeDelegatingAgent
(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:
submitRequest
in interfaceDelegatingJrdAgent
- Specified by:
submitRequest
in interfaceJrdAgent
- Parameters:
request
- either "CLASSES" or "BYTES \n className", other formats are refused- Returns:
- agents response or null
-
addDelegatingAgent
- Specified by:
addDelegatingAgent
in interfaceDelegatingJrdAgent
-
removeDelegatingAgent
- Specified by:
removeDelegatingAgent
in interfaceDelegatingJrdAgent
-
cleanDelegatingAgents
public int cleanDelegatingAgents()- Specified by:
cleanDelegatingAgents
in interfaceDelegatingJrdAgent
-