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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intprivate static JMXConnectorServerworkaround 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.Loggerstatic final Stringstatic final Stringprivate RegistryFields inherited from interface org.apache.hadoop.hbase.Coprocessor
PRIORITY_HIGHEST, PRIORITY_LOWEST, PRIORITY_SYSTEM, PRIORITY_USER, VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JMXServiceURLbuildJMXServiceURL(int rmiRegistryPort, int rmiConnectorPort) voidCalled by theCoprocessorEnvironmentduring it's own startup to initialize the coprocessor.voidstartConnectorServer(int rmiRegistryPort, int rmiConnectorPort) voidCalled by theCoprocessorEnvironmentduring it's own shutdown to stop the coprocessor.voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.Coprocessor
getServicesMethods inherited from interface org.apache.hadoop.hbase.coprocessor.MasterCoprocessor
getMasterObserverMethods 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:CoprocessorCalled by theCoprocessorEnvironmentduring it's own startup to initialize the coprocessor.- Specified by:
startin interfaceCoprocessor- Throws:
IOException
-
stop
Description copied from interface:CoprocessorCalled by theCoprocessorEnvironmentduring it's own shutdown to stop the coprocessor.- Specified by:
stopin interfaceCoprocessor- Throws:
IOException
-