001/*
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements.  See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to you under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License.  You may obtain a copy of the License at
008 *
009 * http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017package org.apache.hadoop.hbase.quotas;
018
019import org.apache.yetus.audience.InterfaceAudience;
020
021/**
022 * Enumeration that represents the action HBase will take when a space quota is violated.
023 *
024 * The target for a violation policy is either an HBase table or namespace. In the case of a
025 * namespace, it is 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}