Package org.jrd.backend.communication
Class InstallDecompilerAgentImpl
- java.lang.Object
-
- org.jrd.backend.communication.InstallDecompilerAgentImpl
-
public class InstallDecompilerAgentImpl extends Object
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 attach, while I am trying to create an abstract library to share some functionality.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.jboss.byteman.agent.install.VMInfo[]
availableVMs()
static String
getSystemProperty(String id, String property)
static void
install(String pid, boolean addToBoot, boolean setPolicy, boolean useModuleLoader, String host, int port, String[] properties)
static void
install(String pid, boolean addToBoot, boolean setPolicy, String host, int port, String[] properties)
static void
install(String pid, boolean addToBoot, String host, int port, String[] properties)
String
locateJarFromClasspath(String libName)
String
locateJarFromHomeDir(String bmHome, String baseDir, String libName)
-
-
-
Method Detail
-
install
public static void install(String pid, boolean addToBoot, String host, int port, String[] properties) throws IllegalArgumentException, FileNotFoundException, IOException, com.sun.tools.attach.AttachNotSupportedException, com.sun.tools.attach.AgentLoadException, com.sun.tools.attach.AgentInitializationException
- Throws:
IllegalArgumentException
FileNotFoundException
IOException
com.sun.tools.attach.AttachNotSupportedException
com.sun.tools.attach.AgentLoadException
com.sun.tools.attach.AgentInitializationException
-
install
public static void install(String pid, boolean addToBoot, boolean setPolicy, String host, int port, String[] properties) throws IllegalArgumentException, FileNotFoundException, IOException, com.sun.tools.attach.AttachNotSupportedException, com.sun.tools.attach.AgentLoadException, com.sun.tools.attach.AgentInitializationException
- Throws:
IllegalArgumentException
FileNotFoundException
IOException
com.sun.tools.attach.AttachNotSupportedException
com.sun.tools.attach.AgentLoadException
com.sun.tools.attach.AgentInitializationException
-
install
public static void install(String pid, boolean addToBoot, boolean setPolicy, boolean useModuleLoader, String host, int port, String[] properties) throws IllegalArgumentException, FileNotFoundException, IOException, com.sun.tools.attach.AttachNotSupportedException, com.sun.tools.attach.AgentLoadException, com.sun.tools.attach.AgentInitializationException
- Throws:
IllegalArgumentException
FileNotFoundException
IOException
com.sun.tools.attach.AttachNotSupportedException
com.sun.tools.attach.AgentLoadException
com.sun.tools.attach.AgentInitializationException
-
availableVMs
public static org.jboss.byteman.agent.install.VMInfo[] availableVMs()
-
locateJarFromHomeDir
public String locateJarFromHomeDir(String bmHome, String baseDir, String libName) throws IOException
- Parameters:
bmHome
- homebaseDir
- base directorylibName
- library name- Returns:
- jar path
- Throws:
IOException
- file not found
-
locateJarFromClasspath
public String locateJarFromClasspath(String libName) throws IOException
- Parameters:
libName
- name of library- Returns:
- jar name
- Throws:
IOException
- file not found
-
-