org.apache.hadoop.hbase.security.visibility
Class VisibilityLabelServiceManager

java.lang.Object
  extended by org.apache.hadoop.hbase.security.visibility.VisibilityLabelServiceManager

@InterfaceAudience.Private
public class VisibilityLabelServiceManager
extends Object

Manages singleton instance of VisibilityLabelService


Field Summary
static String VISIBILITY_LABEL_SERVICE_CLASS
           
 
Method Summary
static VisibilityLabelServiceManager getInstance()
           
 VisibilityLabelService getVisibilityLabelService()
           
 VisibilityLabelService getVisibilityLabelService(org.apache.hadoop.conf.Configuration conf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VISIBILITY_LABEL_SERVICE_CLASS

public static final String VISIBILITY_LABEL_SERVICE_CLASS
See Also:
Constant Field Values
Method Detail

getInstance

public static VisibilityLabelServiceManager getInstance()

getVisibilityLabelService

public VisibilityLabelService getVisibilityLabelService(org.apache.hadoop.conf.Configuration conf)
                                                 throws IOException
Parameters:
conf -
Returns:
singleton instance of VisibilityLabelService. The FQCN of the implementation class can be specified using "hbase.regionserver.visibility.label.service.class".
Throws:
IOException - When VLS implementation, as specified in conf, can not be loaded.

getVisibilityLabelService

public VisibilityLabelService getVisibilityLabelService()
Returns:
singleton instance of VisibilityLabelService.
Throws:
IllegalStateException - if this called before initialization of singleton instance.


Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.