@InterfaceAudience.Private public class VisibilityLabelServiceManager extends Object
VisibilityLabelService
Modifier and Type | Field and Description |
---|---|
private static VisibilityLabelServiceManager |
INSTANCE |
private static org.slf4j.Logger |
LOG |
static String |
VISIBILITY_LABEL_SERVICE_CLASS |
private VisibilityLabelService |
visibilityLabelService |
private String |
vlsClazzName |
Modifier | Constructor and Description |
---|---|
private |
VisibilityLabelServiceManager() |
Modifier and Type | Method and Description |
---|---|
private void |
checkForClusterLevelSingleConf(String vlsClassName) |
static VisibilityLabelServiceManager |
getInstance() |
VisibilityLabelService |
getVisibilityLabelService() |
VisibilityLabelService |
getVisibilityLabelService(org.apache.hadoop.conf.Configuration conf)
n * @return singleton instance of
VisibilityLabelService . |
private static final org.slf4j.Logger LOG
public static final String VISIBILITY_LABEL_SERVICE_CLASS
private static final VisibilityLabelServiceManager INSTANCE
private volatile VisibilityLabelService visibilityLabelService
private String vlsClazzName
private VisibilityLabelServiceManager()
public static VisibilityLabelServiceManager getInstance()
public VisibilityLabelService getVisibilityLabelService(org.apache.hadoop.conf.Configuration conf) throws IOException
VisibilityLabelService
. The FQCN of the
implementation class can be specified using
"hbase.regionserver.visibility.label.service.class".IOException
- When VLS implementation, as specified in conf, can not be loaded.private void checkForClusterLevelSingleConf(String vlsClassName)
public VisibilityLabelService getVisibilityLabelService()
VisibilityLabelService
.IllegalStateException
- if this called before initialization of singleton instance.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.