Package org.jrd.backend.core
Class AgentLoader
- java.lang.Object
-
- org.jrd.backend.core.AgentLoader
-
public class AgentLoader extends java.lang.Object
This class contains methods for attaching the agent.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
AGENT_PORT_PROPERTY
(package private) static int
INVALID_PORT
private static int
MAX_PORT_SLOTS
private static int
PORT_MAX
private static int
PORT_MIN
-
Constructor Summary
Constructors Constructor Description AgentLoader()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
attach(int pid, AgentConfig aconf)
This method handles the attachment of a decompiler agent to given VM.static int
attachImpl(int pid, AgentConfig aconf)
private static java.lang.String[]
createProperties(int port)
private static int
findPort()
-
-
-
Field Detail
-
INVALID_PORT
static final int INVALID_PORT
- See Also:
- Constant Field Values
-
PORT_MIN
private static final int PORT_MIN
- See Also:
- Constant Field Values
-
MAX_PORT_SLOTS
private static final int MAX_PORT_SLOTS
- See Also:
- Constant Field Values
-
PORT_MAX
private static final int PORT_MAX
- See Also:
- Constant Field Values
-
AGENT_PORT_PROPERTY
private static final java.lang.String AGENT_PORT_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
attach
public int attach(int pid, AgentConfig aconf)
This method handles the attachment of a decompiler agent to given VM.- Parameters:
pid
- PID of the VM- Returns:
- port number if successful, else
INVALID_PORT
-
attachImpl
public static int attachImpl(int pid, AgentConfig aconf)
-
findPort
private static int findPort()
-
createProperties
private static java.lang.String[] createProperties(int port)
-
-