2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.controller.config.api.jmx.constants;
10 import javax.management.MalformedObjectNameException;
11 import javax.management.ObjectName;
13 public class ConfigRegistryConstants {
15 public static final String TYPE_CONFIG_REGISTRY = "ConfigRegistry";
17 public static final String ON_DOMAIN = "org.opendaylight.controller";
19 public static final String TYPE_KEY = "type";
21 public static final ObjectName OBJECT_NAME = createONWithDomainAndType(TYPE_CONFIG_REGISTRY);
23 public static final String GET_AVAILABLE_MODULE_NAMES_ATTRIBUT_NAME = "AvailableModuleNames";
25 public static ObjectName createONWithDomainAndType(String type) {
26 return createON(ON_DOMAIN, TYPE_KEY, type);
29 public static ObjectName createON(String name, String key, String value) {
31 return new ObjectName(name, key, value);
32 } catch (MalformedObjectNameException e) {
33 throw new IllegalArgumentException(e);