Package org.apache.hadoop.hbase.quotas
Class QuotaSettingsFactory.QuotaGlobalsSettingsBypass
java.lang.Object
org.apache.hadoop.hbase.quotas.QuotaSettings
org.apache.hadoop.hbase.quotas.QuotaSettingsFactory.QuotaGlobalsSettingsBypass
- Enclosing class:
- QuotaSettingsFactory
-
Field Summary
-
Constructor Summary
ConstructorDescriptionQuotaGlobalsSettingsBypass
(String userName, TableName tableName, String namespace, String regionServer, boolean bypassGlobals) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
merge
(QuotaSettings newSettings) Merges the provided settings withthis
and returns a new settings object to the caller if the merged settings differ from the original.protected void
setupSetQuotaRequest
(org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.SetQuotaRequest.Builder builder) Called by toSetQuotaRequestProto() the subclass should implement this method to set the specific SetQuotaRequest properties.toString()
Methods inherited from class org.apache.hadoop.hbase.quotas.QuotaSettings
buildFromProto, buildSetQuotaRequestProto, getNamespace, getRegionServer, getTableName, getUserName, ownerToString, sizeToString, timeToString, validateQuotaTarget
-
Field Details
-
bypassGlobals
-
-
Constructor Details
-
QuotaGlobalsSettingsBypass
QuotaGlobalsSettingsBypass(String userName, TableName tableName, String namespace, String regionServer, boolean bypassGlobals)
-
-
Method Details
-
getQuotaType
- Specified by:
getQuotaType
in classQuotaSettings
-
setupSetQuotaRequest
protected void setupSetQuotaRequest(org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.SetQuotaRequest.Builder builder) Description copied from class:QuotaSettings
Called by toSetQuotaRequestProto() the subclass should implement this method to set the specific SetQuotaRequest properties.- Specified by:
setupSetQuotaRequest
in classQuotaSettings
-
toString
-
getBypass
-
merge
protected QuotaSettingsFactory.QuotaGlobalsSettingsBypass merge(QuotaSettings newSettings) throws IOException Description copied from class:QuotaSettings
Merges the provided settings withthis
and returns a new settings object to the caller if the merged settings differ from the original.- Specified by:
merge
in classQuotaSettings
- Parameters:
newSettings
- The new settings to merge in.- Returns:
- The merged
QuotaSettings
object or null if the quota should be deleted. - Throws:
IOException
-