public class AgentHookUtil extends Object
| 构造器和说明 |
|---|
AgentHookUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static AgentHook |
getAgentHook() |
static AgentHook |
getAgentHook(boolean deleteOndetach) |
static AgentHook |
getAgentHook(String agentTmpPath,
boolean deleteOndetach)
指定一个..
|
static void |
main(String[] args) |
public static String agentName
public static AgentHook getAgentHook() throws IOException, com.sun.tools.attach.AttachNotSupportedException, com.sun.tools.attach.AgentLoadException, com.sun.tools.attach.AgentInitializationException
IOExceptioncom.sun.tools.attach.AttachNotSupportedExceptioncom.sun.tools.attach.AgentLoadExceptioncom.sun.tools.attach.AgentInitializationExceptionpublic static AgentHook getAgentHook(boolean deleteOndetach) throws IOException, com.sun.tools.attach.AttachNotSupportedException, com.sun.tools.attach.AgentLoadException, com.sun.tools.attach.AgentInitializationException
IOExceptioncom.sun.tools.attach.AttachNotSupportedExceptioncom.sun.tools.attach.AgentLoadExceptioncom.sun.tools.attach.AgentInitializationExceptionpublic static AgentHook getAgentHook(String agentTmpPath, boolean deleteOndetach) throws IOException, com.sun.tools.attach.AttachNotSupportedException, com.sun.tools.attach.AgentLoadException, com.sun.tools.attach.AgentInitializationException
agentTmpPath - String path = File.createTempFile("agent_tmp", ".jar", new File("").getAbsoluteFile()).getPath();deleteOndetach - IOExceptioncom.sun.tools.attach.AttachNotSupportedExceptioncom.sun.tools.attach.AgentLoadExceptioncom.sun.tools.attach.AgentInitializationExceptionpublic static void main(String[] args) throws IOException, com.sun.tools.attach.AttachNotSupportedException, com.sun.tools.attach.AgentLoadException, com.sun.tools.attach.AgentInitializationException
IOExceptioncom.sun.tools.attach.AttachNotSupportedExceptioncom.sun.tools.attach.AgentLoadExceptioncom.sun.tools.attach.AgentInitializationExceptionCopyright © 2020. All rights reserved.