public class AgentJarHelper
extends java.lang.Object
| Constructor and Description |
|---|
AgentJarHelper() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Collection<java.lang.String> |
findAgentJarFileNames(java.util.regex.Pattern pattern)
Find all the file names in the agent jar that match the given pattern.
|
static java.util.Collection<java.lang.String> |
findJarFileNames(java.net.URL agentJarUrl,
java.util.regex.Pattern pattern) |
static java.lang.String |
getAgentJarAttribute(java.lang.String name)
Return the given attribute from the agent jar's manifest.
|
static java.io.File |
getAgentJarDirectory()
Get the directory containing newrelic.jar.
|
static java.lang.String |
getAgentJarFileName() |
static JarResource |
getAgentJarResource()
Returns a resource that can load resources from the agent jar.
|
static java.net.URL |
getAgentJarUrl() |
static java.lang.String |
getBuildDate()
Get the build date of the agent jar.
|
static boolean |
jarFileNameExists(java.net.URL agentJarUrl,
java.lang.String name) |
public static java.util.Collection<java.lang.String> findAgentJarFileNames(java.util.regex.Pattern pattern)
public static java.util.Collection<java.lang.String> findJarFileNames(java.net.URL agentJarUrl,
java.util.regex.Pattern pattern)
public static boolean jarFileNameExists(java.net.URL agentJarUrl,
java.lang.String name)
public static java.io.File getAgentJarDirectory()
public static java.net.URL getAgentJarUrl()
public static JarResource getAgentJarResource()
public static java.lang.String getAgentJarFileName()
public static java.lang.String getBuildDate()
public static java.lang.String getAgentJarAttribute(java.lang.String name)