Package org.jrd.backend.communication
Class CallDecompilerAgent
java.lang.Object
org.jrd.backend.communication.CallDecompilerAgent
- All Implemented Interfaces:
JrdAgent
This class is handling opening of communication socket and request submitting.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsubmitRequest
(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
-
-
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 interfaceJrdAgent
- Parameters:
request
- either "CLASSES" or "BYTES \n className", other formats are refused- Returns:
- agents response or null
-