Package org.jrd.backend.communication
Class InstallDecompilerAgentImpl
java.lang.Object
org.jrd.backend.communication.InstallDecompilerAgentImpl
This is Byteman's install library copied, with small modifications. This is
done with permission of Andrew Dinn, author of Byteman. For the original
source of this code, please follow links below:
http://byteman.jboss.org/ -- official page
https://github.com/bytemanproject/byteman -- git repository
This is a provisional solution for the attachment, while I am trying to create
an abstract library to share some functionality.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
InstallDecompilerAgentImpl
(String pid, boolean addToBoot, boolean setPolicy, String host, int port, String[] properties) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
attach()
attach to the Java process identified by the process id supplied on the command lineprivate void
get the attached process to upload and install the agent jar using whatever agent options were configured on the command linestatic void
install
(String pid, boolean addToBoot, boolean setPolicy, String host, int port, String[] properties) private void
-
Field Details
-
agentJar
-
id
-
port
private int port -
host
-
addToBoot
private boolean addToBoot -
setPolicy
private boolean setPolicy -
props
-
vm
-
config
-
-
Constructor Details
-
InstallDecompilerAgentImpl
-
-
Method Details
-
install
public static void install(String pid, boolean addToBoot, boolean setPolicy, String host, int port, String[] properties) throws IllegalArgumentException, IOException, AttachNotSupportedException, AgentLoadException, AgentInitializationException -
attach
attach to the Java process identified by the process id supplied on the command line -
injectAgent
get the attached process to upload and install the agent jar using whatever agent options were configured on the command line -
locateAgent
- Throws:
IOException
-