org.apache.hadoop.hbase.procedure
Class ProcedureManagerHost<E extends ProcedureManager>

java.lang.Object
  extended by org.apache.hadoop.hbase.procedure.ProcedureManagerHost<E>
Type Parameters:
E - the specific procedure management extension that a concrete implementation provides
Direct Known Subclasses:
MasterProcedureManagerHost, RegionServerProcedureManagerHost

@InterfaceAudience.Private
@InterfaceStability.Evolving
public abstract class ProcedureManagerHost<E extends ProcedureManager>
extends Object

Provides the common setup framework and runtime services for globally barriered procedure invocation from HBase services.


Field Summary
static String MASTER_PROCEUDRE_CONF_KEY
           
protected  Set<E> procedures
           
static String REGIONSERVER_PROCEDURE_CONF_KEY
           
 
Constructor Summary
ProcedureManagerHost()
           
 
Method Summary
 Set<E> getProcedureManagers()
           
 E loadInstance(Class<?> implClass)
           
abstract  void loadProcedures(org.apache.hadoop.conf.Configuration conf)
           
protected  void loadUserProcedures(org.apache.hadoop.conf.Configuration conf, String confKey)
          Load system procedures.
 void register(E obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REGIONSERVER_PROCEDURE_CONF_KEY

public static final String REGIONSERVER_PROCEDURE_CONF_KEY
See Also:
Constant Field Values

MASTER_PROCEUDRE_CONF_KEY

public static final String MASTER_PROCEUDRE_CONF_KEY
See Also:
Constant Field Values

procedures

protected Set<E extends ProcedureManager> procedures
Constructor Detail

ProcedureManagerHost

public ProcedureManagerHost()
Method Detail

loadUserProcedures

protected void loadUserProcedures(org.apache.hadoop.conf.Configuration conf,
                                  String confKey)
Load system procedures. Read the class names from configuration. Called by constructor.


loadInstance

public E loadInstance(Class<?> implClass)
                                        throws IOException
Throws:
IOException

register

public void register(E obj)

getProcedureManagers

public Set<E> getProcedureManagers()

loadProcedures

public abstract void loadProcedures(org.apache.hadoop.conf.Configuration conf)


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