org.ow2.jasmine.monitoring.mbeancmd
Class JmxHelper

java.lang.Object
  extended by org.ow2.jasmine.monitoring.mbeancmd.JmxHelper

public class JmxHelper
extends java.lang.Object


Field Summary
static java.lang.String DEFAULT_FILE
          Default name of the properties file.
static java.lang.String DEFAULT_URL
          Default JMX URL.
 
Constructor Summary
JmxHelper()
           
 
Method Summary
static javax.naming.Context getContext()
           
static java.lang.String getDefaultJmxTarget()
          The JMX URL of the default target.
static java.lang.String getDefaultTarget()
           
static java.lang.String getJmxPassword(java.lang.String jmxUrl)
           
static java.lang.String getJmxProtocolProviderPackage(java.lang.String jmxUrl)
           
static java.lang.String[] getJmxTargets()
           
static java.lang.String[] getJmxTargets(java.lang.String[] proposed)
          Gets the names of all JMX targets matching a certain criteria.
static java.lang.String getJmxUrl(java.lang.String name)
          Gets the JMX URL for a given target.
static java.lang.String getJmxUser(java.lang.String jmxUrl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_URL

public static final java.lang.String DEFAULT_URL
Default JMX URL.

See Also:
Constant Field Values

DEFAULT_FILE

public static final java.lang.String DEFAULT_FILE
Default name of the properties file.

See Also:
Constant Field Values
Constructor Detail

JmxHelper

public JmxHelper()
Method Detail

getContext

public static javax.naming.Context getContext()

getDefaultJmxTarget

public static java.lang.String getDefaultJmxTarget()
The JMX URL of the default target.

Returns:
JMX URL of the default target

getDefaultTarget

public static java.lang.String getDefaultTarget()
Returns:
Default target.

getJmxUser

public static java.lang.String getJmxUser(java.lang.String jmxUrl)
Parameters:
jmxUrl - A given jmx URL
Returns:
The user name associated to this JMX URL

getJmxPassword

public static java.lang.String getJmxPassword(java.lang.String jmxUrl)
Parameters:
jmxUrl - A given jmx URL
Returns:
The password associated to this JMX URL

getJmxProtocolProviderPackage

public static java.lang.String getJmxProtocolProviderPackage(java.lang.String jmxUrl)
Parameters:
jmxUrl - jmxUrl A given jmx URL
Returns:
The protocol provider package associated to this JMX URL

getJmxUrl

public static java.lang.String getJmxUrl(java.lang.String name)
Gets the JMX URL for a given target.

Parameters:
name - Name of the target.
Returns:
JMX URL corresponding to that target.

getJmxTargets

public static java.lang.String[] getJmxTargets()
Returns:
An array containing the names of all current JMX targets.

getJmxTargets

public static java.lang.String[] getJmxTargets(java.lang.String[] proposed)
Gets the names of all JMX targets matching a certain criteria.

Parameters:
proposed - Criteria.
Returns:
An array containing the names of all current JMX targets.


Copyright © 2010 OW2 Consortium. All Rights Reserved.