Package org.apache.hadoop.hbase
Class JMXListener
java.lang.Object
org.apache.hadoop.hbase.JMXListener
- All Implemented Interfaces:
Coprocessor
,MasterCoprocessor
,RegionServerCoprocessor
@Private
public class JMXListener
extends Object
implements MasterCoprocessor, RegionServerCoprocessor
Pluggable JMX Agent for HBase(to fix the 2 random TCP ports issue of the out-of-the-box JMX
Agent): 1)connector port can share with the registry port if SSL is OFF 2)support password
authentication 3)support subset of SSL (with default configuration)
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.Coprocessor
Coprocessor.State
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
private static JMXConnectorServer
workaround for HBASE-11146 master and regionserver are in 1 JVM in standalone mode only 1 JMX instance is allowed, otherwise there is port conflict even if we only load regionserver coprocessor on masterprivate static final org.slf4j.Logger
static final String
static final String
private Registry
Fields inherited from interface org.apache.hadoop.hbase.Coprocessor
PRIORITY_HIGHEST, PRIORITY_LOWEST, PRIORITY_SYSTEM, PRIORITY_USER, VERSION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic JMXServiceURL
buildJMXServiceURL
(int rmiRegistryPort, int rmiConnectorPort) void
Called by theCoprocessorEnvironment
during it's own startup to initialize the coprocessor.void
startConnectorServer
(int rmiRegistryPort, int rmiConnectorPort) void
Called by theCoprocessorEnvironment
during it's own shutdown to stop the coprocessor.void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.hadoop.hbase.Coprocessor
getServices
Methods inherited from interface org.apache.hadoop.hbase.coprocessor.MasterCoprocessor
getMasterObserver
Methods inherited from interface org.apache.hadoop.hbase.coprocessor.RegionServerCoprocessor
getRegionServerObserver
-
Field Details
-
LOG
-
RMI_REGISTRY_PORT_CONF_KEY
- See Also:
-
RMI_CONNECTOR_PORT_CONF_KEY
- See Also:
-
defMasterRMIRegistryPort
- See Also:
-
defRegionserverRMIRegistryPort
- See Also:
-
JMX_CS
workaround for HBASE-11146 master and regionserver are in 1 JVM in standalone mode only 1 JMX instance is allowed, otherwise there is port conflict even if we only load regionserver coprocessor on master -
rmiRegistry
-
-
Constructor Details
-
JMXListener
public JMXListener()
-
-
Method Details
-
buildJMXServiceURL
public static JMXServiceURL buildJMXServiceURL(int rmiRegistryPort, int rmiConnectorPort) throws IOException - Throws:
IOException
-
startConnectorServer
- Throws:
IOException
-
stopConnectorServer
- Throws:
IOException
-
start
Description copied from interface:Coprocessor
Called by theCoprocessorEnvironment
during it's own startup to initialize the coprocessor.- Specified by:
start
in interfaceCoprocessor
- Throws:
IOException
-
stop
Description copied from interface:Coprocessor
Called by theCoprocessorEnvironment
during it's own shutdown to stop the coprocessor.- Specified by:
stop
in interfaceCoprocessor
- Throws:
IOException
-