blob: 89f6ec5e232f934ef7f9a6ea38927169975a9a01 [file] [log] [blame]
Thomas Vachuska24c849c2014-10-27 09:53:05 -07001/*
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07002 * Copyright 2014 Open Networking Laboratory
Thomas Vachuska24c849c2014-10-27 09:53:05 -07003 *
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07004 * 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
Thomas Vachuska24c849c2014-10-27 09:53:05 -07007 *
Thomas Vachuska4f1a60c2014-10-28 13:39:07 -07008 * 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.
Thomas Vachuska24c849c2014-10-27 09:53:05 -070015 */
pankaj390abbc2014-10-01 17:01:05 -070016package org.onlab.metrics;
17
18/**
19 * Registry Entry for Metrics Components.
20 */
21public interface MetricsComponentRegistry {
Pavlin Radoslavovdf042bd2014-10-21 21:46:46 -070022 /**
23 * Fetches the name of the Component.
24 *
25 * @return name of the Component
26 */
pankaj390abbc2014-10-01 17:01:05 -070027 String getName();
28
Pavlin Radoslavovdf042bd2014-10-21 21:46:46 -070029 /**
30 * Registers a Feature for this component.
31 *
32 * @param featureName name of the Feature to register
33 * @return Feature object that can be used when creating Metrics
34 */
pankaj390abbc2014-10-01 17:01:05 -070035 MetricsFeature registerFeature(String featureName);
36}