blob: ee15a576dc290cbd60673cd9f2f67d6417b29ef8 [file] [log] [blame]
pierventrec0914ec2021-08-27 15:25:02 +02001/*
2 * Copyright 2021-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package org.onosproject.net.pi.runtime;
18
19import com.google.common.annotations.Beta;
20
21/**
22 * Type of meter band of a protocol-independent pipeline.
23 */
24@Beta
25public enum PiMeterBandType {
26 /**
27 * Committed band config.
28 */
29 COMMITTED("committed"),
30
31 /**
32 * Peak band config.
33 */
34 PEAK("peak");
35
36 private final String humanReadableName;
37
38 PiMeterBandType(String humanReadableName) {
39 this.humanReadableName = humanReadableName;
40 }
41
42 /**
43 * Returns a human readable representation of this PI meter band type (useful
44 * for logging).
45 *
46 * @return string
47 */
48 public String humanReadableName() {
49 return humanReadableName;
50 }
51}