001/* 002 * Licensed to the Apache Software Foundation (ASF) under one 003 * or more contributor license agreements. See the NOTICE file 004 * distributed with this work for additional information 005 * regarding copyright ownership. The ASF licenses this file 006 * to you under the Apache License, Version 2.0 (the 007 * "License"); you may not use this file except in compliance 008 * with the License. You may obtain a copy of the License at 009 * 010 * http://www.apache.org/licenses/LICENSE-2.0 011 * 012 * Unless required by applicable law or agreed to in writing, software 013 * distributed under the License is distributed on an "AS IS" BASIS, 014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 015 * See the License for the specific language governing permissions and 016 * limitations under the License. 017 */ 018package org.apache.hadoop.hbase.quotas; 019 020import org.apache.yetus.audience.InterfaceAudience; 021 022/** 023 * Enumeration that represents the action HBase will take when a space quota is violated. The target 024 * for a violation policy is either an HBase table or namespace. In the case of a namespace, it is 025 * treated as a collection of tables (all tables are subject to the same policy). 026 */ 027@InterfaceAudience.Public 028public enum SpaceViolationPolicy { 029 /** 030 * Disables the table(s). 031 */ 032 DISABLE, 033 /** 034 * Disallows any mutations or compactions on the table(s). 035 */ 036 NO_WRITES_COMPACTIONS, 037 /** 038 * Disallows any mutations (but allows compactions) on the table(s). 039 */ 040 NO_WRITES, 041 /** 042 * Disallows any updates (but allows deletes and compactions) on the table(s). 043 */ 044 NO_INSERTS 045}