public final class JMXProviderUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
RO_PROTOCOL
A string representation of the Remote Object protocol
|
static String |
RO_PROVIDER_PKGS
The package that contains the classes of the JMX Remote Object provider
|
Constructor and Description |
---|
JMXProviderUtils() |
Modifier and Type | Method and Description |
---|---|
static Exception |
extractException(Exception e)
Iterate until we extract the real exception from a stack of
PrivilegedActionExceptions.
|
static URI |
extractURI(JMXServiceURL jmxServiceURL)
Extracts an URI from a JMXServiceURL address such as:
service:jmx:protocol:///jndi/uri |
static URI |
getBaseURI()
Returns the default base URI for all remote objects.
|
static IOException |
newIOException(String message,
Throwable cause)
Construct a new IOException with a nested exception.
|
public static final String RO_PROTOCOL
public static final String RO_PROVIDER_PKGS
public static IOException newIOException(String message, Throwable cause)
public static Exception extractException(Exception e)
e
- the initial PrivilegedException (top of the stack)public static URI extractURI(JMXServiceURL jmxServiceURL) throws MalformedURLException
service:jmx:protocol:///jndi/uri
jmxServiceURL
- the address that contains the uriMalformedURLException
- If the address is incorrect