Class VisibilityLabelServiceManager
java.lang.Object
org.apache.hadoop.hbase.security.visibility.VisibilityLabelServiceManager
Manages singleton instance of
VisibilityLabelService
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final VisibilityLabelServiceManager
private static final org.slf4j.Logger
static final String
private VisibilityLabelService
private String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
checkForClusterLevelSingleConf
(String vlsClassName) getVisibilityLabelService
(org.apache.hadoop.conf.Configuration conf)
-
Field Details
-
LOG
-
VISIBILITY_LABEL_SERVICE_CLASS
- See Also:
-
INSTANCE
-
visibilityLabelService
-
vlsClazzName
-
-
Constructor Details
-
VisibilityLabelServiceManager
private VisibilityLabelServiceManager()
-
-
Method Details
-
getInstance
-
getVisibilityLabelService
public VisibilityLabelService getVisibilityLabelService(org.apache.hadoop.conf.Configuration conf) throws IOException - 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.
-
checkForClusterLevelSingleConf
-
getVisibilityLabelService
- Returns:
- singleton instance of
VisibilityLabelService
. - Throws:
IllegalStateException
- if this called before initialization of singleton instance.
-