Class VisibilityLabelServiceManager
java.lang.Object
org.apache.hadoop.hbase.security.visibility.VisibilityLabelServiceManager
Manages singleton instance of
VisibilityLabelService-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final VisibilityLabelServiceManagerprivate static final org.slf4j.Loggerstatic final Stringprivate VisibilityLabelServiceprivate String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcheckForClusterLevelSingleConf(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.
-