Package org.jivesoftware.openfire
Class JMXManager
- java.lang.Object
-
- org.jivesoftware.openfire.JMXManager
-
public class JMXManager extends Object
Manages the JMX configuration for Openfire.- Author:
- Tom Evans
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_PORT
-
Constructor Summary
Constructors Constructor Description JMXManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.jetty.jmx.MBeanContainergetContainer()static JMXManagergetInstance()static intgetPort()Returns the port number for the JMX connector.static booleanisEnabled()Returns true if JMX support is enabled.static booleanisSecure()Returns true if the JMX connector is configured to require Openfire admin credentials.voidsetContainer(org.eclipse.jetty.jmx.MBeanContainer mbContainer)static voidsetEnabled(boolean enabled)static voidsetPort(int port)static voidsetSecure(boolean secure)
-
-
-
Field Detail
-
DEFAULT_PORT
public static final int DEFAULT_PORT
- See Also:
- Constant Field Values
-
-
Method Detail
-
isSecure
public static boolean isSecure()
Returns true if the JMX connector is configured to require Openfire admin credentials. This option can be configured via the admin console or by setting the following system property:xmpp.jmx.secure=false (default: true)- Returns:
- true if the JMX connector requires authentication
-
setSecure
public static void setSecure(boolean secure)
-
getPort
public static int getPort()
Returns the port number for the JMX connector. This option can be configured via the admin console or by setting the following system property:xmpp.jmx.port=[port] (default: 1099)- Returns:
- Port number for the JMX connector
-
setPort
public static void setPort(int port)
-
isEnabled
public static boolean isEnabled()
Returns true if JMX support is enabled. This option can be configured via the admin console or by setting the following system property:xmpp.jmx.enabled=true (default: false)- Returns:
- true if JMX support is enabled
-
setEnabled
public static void setEnabled(boolean enabled)
-
getInstance
public static JMXManager getInstance()
-
getContainer
public org.eclipse.jetty.jmx.MBeanContainer getContainer()
-
setContainer
public void setContainer(org.eclipse.jetty.jmx.MBeanContainer mbContainer)
-
-