blob: f139f19258d6dffe3d118e9be626b09d8a519609 [file] [log] [blame]
Jian Li0967cd72015-11-25 17:38:48 -08001/*
Brian O'Connor5ab426f2016-04-09 01:19:45 -07002 * Copyright 2016-present Open Networking Laboratory
Jian Li0967cd72015-11-25 17:38:48 -08003 *
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 */
16package org.onosproject.cpman;
17
18/**
19 * A set of metric type used in control plane.
20 */
21public enum ControlMetricType {
22
Jian Lie044d1a2016-01-25 09:01:20 -080023 /* Mapped to PACKET-IN message of OpenFlow. */
Jian Li60804322015-12-02 14:46:31 -080024 INBOUND_PACKET,
Jian Li0967cd72015-11-25 17:38:48 -080025
Jian Lie044d1a2016-01-25 09:01:20 -080026 /* Mapped to PACKET-OUT message of OpenFlow. */
Jian Li60804322015-12-02 14:46:31 -080027 OUTBOUND_PACKET,
28
Jian Lie044d1a2016-01-25 09:01:20 -080029 /* Mapped to FLOW-MOD message of OpenFlow. */
Jian Li60804322015-12-02 14:46:31 -080030 FLOW_MOD_PACKET,
31
Jian Lie044d1a2016-01-25 09:01:20 -080032 /* Mapped to FLOW-REMOVED message of OpenFlow. */
Jian Li60804322015-12-02 14:46:31 -080033 FLOW_REMOVED_PACKET,
34
Jian Lie044d1a2016-01-25 09:01:20 -080035 /* Mapped to STATS-REQUEST message of OpenFlow. */
Jian Li60804322015-12-02 14:46:31 -080036 REQUEST_PACKET,
37
Jian Lie044d1a2016-01-25 09:01:20 -080038 /* Mapped to STATS-REPLY message of OpenFlow. */
Jian Li60804322015-12-02 14:46:31 -080039 REPLY_PACKET,
Jian Li0967cd72015-11-25 17:38:48 -080040
Jian Lie044d1a2016-01-25 09:01:20 -080041 /* Number of CPU cores. */
42 NUM_OF_CORES,
Jian Li0967cd72015-11-25 17:38:48 -080043
Jian Li85060ac2016-02-04 09:58:56 -080044 /* Number of CPUs. */
Jian Lie044d1a2016-01-25 09:01:20 -080045 NUM_OF_CPUS,
46
Jian Li85060ac2016-02-04 09:58:56 -080047 /* CPU Speed. */
Jian Lie044d1a2016-01-25 09:01:20 -080048 CPU_SPEED,
49
Jian Li85060ac2016-02-04 09:58:56 -080050 /* CPU Load. */
Jian Lie044d1a2016-01-25 09:01:20 -080051 CPU_LOAD,
52
Jian Li85060ac2016-02-04 09:58:56 -080053 /* Total Amount of CPU Up Time. */
Jian Lie044d1a2016-01-25 09:01:20 -080054 TOTAL_CPU_TIME,
55
Jian Li85060ac2016-02-04 09:58:56 -080056 /* System CPU Up Time. */
Jian Lie044d1a2016-01-25 09:01:20 -080057 SYS_CPU_TIME,
58
Jian Li85060ac2016-02-04 09:58:56 -080059 /* User CPU Up Time. */
Jian Lie044d1a2016-01-25 09:01:20 -080060 USER_CPU_TIME,
61
Jian Li85060ac2016-02-04 09:58:56 -080062 /* CPU Idle Time. */
Jian Lie044d1a2016-01-25 09:01:20 -080063 CPU_IDLE_TIME,
64
Jian Li7d180c52016-02-01 21:53:08 -080065 /* Ratio of Used Memory Amount. */
66 MEMORY_USED_RATIO,
Jian Lie044d1a2016-01-25 09:01:20 -080067
Jian Li85060ac2016-02-04 09:58:56 -080068 /* Ratio of Free Memory Amount. */
Jian Li7d180c52016-02-01 21:53:08 -080069 MEMORY_FREE_RATIO,
Jian Lie044d1a2016-01-25 09:01:20 -080070
Jian Li85060ac2016-02-04 09:58:56 -080071 /* Used Memory Amount. */
Jian Lie044d1a2016-01-25 09:01:20 -080072 MEMORY_USED,
73
Jian Li85060ac2016-02-04 09:58:56 -080074 /* Free Memory Amount. */
Jian Lie044d1a2016-01-25 09:01:20 -080075 MEMORY_FREE,
76
Jian Li85060ac2016-02-04 09:58:56 -080077 /* Total Amount of Memory. */
Jian Lie044d1a2016-01-25 09:01:20 -080078 MEMORY_TOTAL,
79
Jian Li85060ac2016-02-04 09:58:56 -080080 /* Disk Read Bytes. */
Jian Lie044d1a2016-01-25 09:01:20 -080081 DISK_READ_BYTES,
82
Jian Li85060ac2016-02-04 09:58:56 -080083 /* Disk Write Bytes. */
Jian Lie044d1a2016-01-25 09:01:20 -080084 DISK_WRITE_BYTES,
85
Jian Li85060ac2016-02-04 09:58:56 -080086 /* Network Incoming Bytes. */
Jian Lie044d1a2016-01-25 09:01:20 -080087 NW_INCOMING_BYTES,
88
Jian Li85060ac2016-02-04 09:58:56 -080089 /* Network Outgoing Bytes. */
Jian Lie044d1a2016-01-25 09:01:20 -080090 NW_OUTGOING_BYTES,
91
Jian Li85060ac2016-02-04 09:58:56 -080092 /* Network Incoming Packets. */
Jian Lie044d1a2016-01-25 09:01:20 -080093 NW_INCOMING_PACKETS,
94
Jian Li85060ac2016-02-04 09:58:56 -080095 /* Network Outgoing Packets. */
Jian Lie044d1a2016-01-25 09:01:20 -080096 NW_OUTGOING_PACKETS
Jian Li0967cd72015-11-25 17:38:48 -080097}