Add reverse() method in Edge and Path classes
[controller.git] / opendaylight / config / config-api / src / main / java / org / opendaylight / controller / config / api / jmx / constants / ConfigRegistryConstants.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.controller.config.api.jmx.constants;
9
10 import javax.management.ObjectName;
11
12 public class ConfigRegistryConstants {
13
14     public static final String TYPE_CONFIG_REGISTRY = "ConfigRegistry";
15
16     public static final String ON_DOMAIN = "org.opendaylight.controller";
17
18     public static final String TYPE_KEY = "type";
19
20     public static final ObjectName OBJECT_NAME = createONWithDomainAndType(TYPE_CONFIG_REGISTRY);
21
22     public static String GET_AVAILABLE_MODULE_NAMES_ATTRIBUT_NAME = "AvailableModuleNames";
23
24     public static ObjectName createONWithDomainAndType(String type) {
25         return createON(ON_DOMAIN, TYPE_KEY, type);
26     }
27
28     public static ObjectName createON(String name, String key, String value) {
29         try {
30             return new ObjectName(name, key, value);
31         } catch (Exception e) {
32             throw new RuntimeException(e);
33         }
34
35     }
36 }