X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=opendaylight%2Fconfig%2Fconfig-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Fapi%2Fjmx%2Fconstants%2FConfigRegistryConstants.java;h=de4b582abfff25cb7eea38a5457142f8b0cd9c78;hb=2d60632f7cf63712e8357a3cf3fc40d83366e5e6;hp=1d9563bf4e1d7733b170cdd6c092f473a8baae20;hpb=f347d306c3580f0e10e8ad0c551432aa931d856a;p=controller.git diff --git a/opendaylight/config/config-api/src/main/java/org/opendaylight/controller/config/api/jmx/constants/ConfigRegistryConstants.java b/opendaylight/config/config-api/src/main/java/org/opendaylight/controller/config/api/jmx/constants/ConfigRegistryConstants.java index 1d9563bf4e..de4b582abf 100644 --- a/opendaylight/config/config-api/src/main/java/org/opendaylight/controller/config/api/jmx/constants/ConfigRegistryConstants.java +++ b/opendaylight/config/config-api/src/main/java/org/opendaylight/controller/config/api/jmx/constants/ConfigRegistryConstants.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. + * Copyright (c) 2013, 2017 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, @@ -10,26 +10,34 @@ package org.opendaylight.controller.config.api.jmx.constants; import javax.management.MalformedObjectNameException; import javax.management.ObjectName; -public class ConfigRegistryConstants { +public final class ConfigRegistryConstants { + + private ConfigRegistryConstants() { + } public static final String TYPE_CONFIG_REGISTRY = "ConfigRegistry"; + public static final String TYPE_CONFIG_REGISTRY_NO_NOTIFICATIONS = "ConfigRegistryNoNotifications"; + public static final String ON_DOMAIN = "org.opendaylight.controller"; public static final String TYPE_KEY = "type"; public static final ObjectName OBJECT_NAME = createONWithDomainAndType(TYPE_CONFIG_REGISTRY); + public static final ObjectName OBJECT_NAME_NO_NOTIFICATIONS = createONWithDomainAndType( + TYPE_CONFIG_REGISTRY_NO_NOTIFICATIONS); + public static final String GET_AVAILABLE_MODULE_NAMES_ATTRIBUT_NAME = "AvailableModuleNames"; - public static ObjectName createONWithDomainAndType(String type) { + public static ObjectName createONWithDomainAndType(final String type) { return createON(ON_DOMAIN, TYPE_KEY, type); } - public static ObjectName createON(String name, String key, String value) { + public static ObjectName createON(final String name, final String key, final String value) { try { return new ObjectName(name, key, value); - } catch (MalformedObjectNameException e) { + } catch (final MalformedObjectNameException e) { throw new IllegalArgumentException(e); }