/** * Load a native agent library by full pathname. * <p/> * This convenience method works as if by invoking: * <p/> * <blockquote><tt> * {@link #loadAgentPath(String, String) loadAgentPath}(agentLibrary, null); * </tt></blockquote> * * @param agentPath The full path to the agent library. * @throws AgentLoadException If the agent library does not exist, or cannot be loaded for * another reason. * @throws AgentInitializationException If the {@code Agent_OnAttach} function returns an error * @throws IOException If an I/O error occurs * @throws NullPointerException If {@code agentPath} is {@code null}. */ public void loadAgentPath(String agentPath) throws AgentLoadException, AgentInitializationException, IOException { loadAgentPath(agentPath, null); }
/** * Load a native agent library by full pathname. * <p/> * This convenience method works as if by invoking: * <p/> * <blockquote><tt> * {@link #loadAgentPath(String, String) loadAgentPath}(agentLibrary, null); * </tt></blockquote> * * @param agentPath The full path to the agent library. * @throws AgentLoadException If the agent library does not exist, or cannot be loaded for * another reason. * @throws AgentInitializationException If the <code>Agent_OnAttach</code> function returns an error * @throws IOException If an I/O error occurs * @throws NullPointerException If <code>agentPath</code> is <code>null</code>. */ public void loadAgentPath(String agentPath) throws AgentLoadException, AgentInitializationException, IOException { loadAgentPath(agentPath, null); }