001/*
002 * Copyright 2009 Red Hat, Inc.
003 * Red Hat licenses this file to you under the Apache License, version
004 * 2.0 (the "License"); you may not use this file except in compliance
005 * with the License.  You may obtain a copy of the License at
006 *    http://www.apache.org/licenses/LICENSE-2.0
007 * Unless required by applicable law or agreed to in writing, software
008 * distributed under the License is distributed on an "AS IS" BASIS,
009 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
010 * implied.  See the License for the specific language governing
011 * permissions and limitations under the License.
012 */
013
014package org.hornetq.api.core.management;
015
016/**
017 * Helper class used to build resource names used by management messages.
018 * <br>
019 * Resource's name is build by appending its <em>name</em> to its corresponding type.
020 * For example, the resource name of the "foo" queue is {@code CORE_QUEUE + "foo"}.
021 *
022 * @author <a href="mailto:jmesnil@redhat.com">Jeff Mesnil</a>
023 */
024public class ResourceNames
025{
026
027   // Constants -----------------------------------------------------
028
029   public static final String CORE_SERVER = "core.server";
030
031   public static final String CORE_QUEUE = "core.queue.";
032
033   public static final String CORE_ADDRESS = "core.address.";
034
035   public static final String CORE_BRIDGE = "core.bridge.";
036
037   public static final String CORE_ACCEPTOR = "core.acceptor.";
038
039   public static final String CORE_DIVERT = "core.divert.";
040
041   public static final String CORE_CLUSTER_CONNECTION = "core.clusterconnection.";
042
043   public static final String CORE_BROADCAST_GROUP = "core.broadcastgroup.";
044
045   public static final String CORE_DISCOVERY_GROUP = "core.discovery.";
046
047   public static final String JMS_SERVER = "jms.server";
048
049   public static final String JMS_QUEUE = "jms.queue.";
050
051   public static final String JMS_TOPIC = "jms.topic.";
052
053   public static final String JMS_CONNECTION_FACTORY = "jms.connectionfactory.";
054
055   // Attributes ----------------------------------------------------
056
057   // Static --------------------------------------------------------
058
059   // Constructors --------------------------------------------------
060
061   private ResourceNames()
062   {
063   }
064   
065   // Public --------------------------------------------------------
066
067   // Package protected ---------------------------------------------
068
069   // Protected -----------------------------------------------------
070
071   // Private -------------------------------------------------------
072
073   // Inner classes -------------------------------------------------
074
075}