org.apache.hadoop.hbase
Class JMXListener

java.lang.Object
  extended by org.apache.hadoop.hbase.JMXListener
All Implemented Interfaces:
Coprocessor

public class JMXListener
extends Object
implements Coprocessor

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
static int defMasterRMIRegistryPort
           
static int defRegionserverRMIRegistryPort
           
static org.apache.commons.logging.Log LOG
           
static String RMI_CONNECTOR_PORT_CONF_KEY
           
static String RMI_REGISTRY_PORT_CONF_KEY
           
 
Fields inherited from interface org.apache.hadoop.hbase.Coprocessor
PRIORITY_HIGHEST, PRIORITY_LOWEST, PRIORITY_SYSTEM, PRIORITY_USER, VERSION
 
Constructor Summary
JMXListener()
           
 
Method Summary
static JMXServiceURL buildJMXServiceURL(int rmiRegistryPort, int rmiConnectorPort)
           
 void start(CoprocessorEnvironment env)
           
 void startConnectorServer(int rmiRegistryPort, int rmiConnectorPort)
           
 void stop(CoprocessorEnvironment env)
           
 void stopConnectorServer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.commons.logging.Log LOG

RMI_REGISTRY_PORT_CONF_KEY

public static final String RMI_REGISTRY_PORT_CONF_KEY
See Also:
Constant Field Values

RMI_CONNECTOR_PORT_CONF_KEY

public static final String RMI_CONNECTOR_PORT_CONF_KEY
See Also:
Constant Field Values

defMasterRMIRegistryPort

public static final int defMasterRMIRegistryPort
See Also:
Constant Field Values

defRegionserverRMIRegistryPort

public static final int defRegionserverRMIRegistryPort
See Also:
Constant Field Values
Constructor Detail

JMXListener

public JMXListener()
Method Detail

buildJMXServiceURL

public static JMXServiceURL buildJMXServiceURL(int rmiRegistryPort,
                                               int rmiConnectorPort)
                                        throws IOException
Throws:
IOException

startConnectorServer

public void startConnectorServer(int rmiRegistryPort,
                                 int rmiConnectorPort)
                          throws IOException
Throws:
IOException

stopConnectorServer

public void stopConnectorServer()
                         throws IOException
Throws:
IOException

start

public void start(CoprocessorEnvironment env)
           throws IOException
Specified by:
start in interface Coprocessor
Throws:
IOException

stop

public void stop(CoprocessorEnvironment env)
          throws IOException
Specified by:
stop in interface Coprocessor
Throws:
IOException


Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.