Class JmxHelper
- java.lang.Object
-
- org.objectweb.joram.tools.rest.jmx.JmxHelper
-
public final class JmxHelper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringBUNDLE_REST_JMX_IP_ALLOWEDstatic StringBUNDLE_REST_JMX_PASSstatic StringBUNDLE_REST_JMX_ROOTprivate static JmxHelperhelperprivate IPFilteripfilterprivate static Loggerloggerprivate StringrestJmxIPAllowedprivate StringrestJmxPassprivate StringrestJmxRoot
-
Constructor Summary
Constructors Modifier Constructor Description privateJmxHelper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanauthenticationRequired()booleancheckIPAddress(String addr)Check if the addr is authorized (all local address is authorized).static JmxHelpergetInstance()StringgetRestJmxIPAllowed()StringgetRestJmxPass()StringgetRestJmxRoot()voidinit(org.osgi.framework.BundleContext bundleContext)
-
-
-
Field Detail
-
logger
private static final Logger logger
-
BUNDLE_REST_JMX_ROOT
public static final String BUNDLE_REST_JMX_ROOT
- See Also:
- Constant Field Values
-
BUNDLE_REST_JMX_PASS
public static final String BUNDLE_REST_JMX_PASS
- See Also:
- Constant Field Values
-
BUNDLE_REST_JMX_IP_ALLOWED
public static final String BUNDLE_REST_JMX_IP_ALLOWED
- See Also:
- Constant Field Values
-
helper
private static JmxHelper helper
-
restJmxRoot
private String restJmxRoot
-
restJmxPass
private String restJmxPass
-
restJmxIPAllowed
private String restJmxIPAllowed
-
ipfilter
private IPFilter ipfilter
-
-
Method Detail
-
getInstance
public static JmxHelper getInstance()
-
getRestJmxRoot
public String getRestJmxRoot()
- Returns:
- the restJmxRoot
-
getRestJmxPass
public String getRestJmxPass()
- Returns:
- the restJmxPass
-
getRestJmxIPAllowed
public String getRestJmxIPAllowed()
- Returns:
- the restJmxIPAllowed
-
checkIPAddress
public boolean checkIPAddress(String addr)
Check if the addr is authorized (all local address is authorized).- Parameters:
addr- The ip address to check- Returns:
- true if authorized
- Throws:
UnknownHostExceptionSocketException
-
authenticationRequired
public boolean authenticationRequired()
-
-