BrokerInfo xref

View Javadoc

    1   /***
    2    *
    3    * Copyright 2004 Protique Ltd
    4    *
    5    * Licensed under the Apache License, Version 2.0 (the "License");
    6    * you may not use this file except in compliance with the License.
    7    * You may obtain a copy of the License at
    8    *
    9    * http://www.apache.org/licenses/LICENSE-2.0
    10   *
    11   * Unless required by applicable law or agreed to in writing, software
    12   * distributed under the License is distributed on an "AS IS" BASIS,
    13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    14   * See the License for the specific language governing permissions and
    15   * limitations under the License.
    16   *
    17   **/
    18
    19  package org.codehaus.activemq.message;
    20
    21  import java.util.Properties;
    22
    23  /***
    24   * Information about a connected Broker
    25   */
    26
    27  public class BrokerInfo extends AbstractPacket {
    28
    29      private String brokerName;
    30      private String clusterName;
    31      private long startTime;
    32      private Properties properties;
    33
    34      /***
    35       * Return the type of Packet
    36       *
    37       * @return integer representation of the type of Packet
    38       */
    39
    40      public int getPacketType() {
    41          return ACTIVEMQ_BROKER_INFO;
    42      }
    43
    44
    45      /***
    46       * @return Returns the brokerName.
    47       */
    48      public String getBrokerName() {
    49          return this.brokerName;
    50      }
    51
    52      /***
    53       * @param newBrokerName The brokerName to set.
    54       */
    55      public void setBrokerName(String newBrokerName) {
    56          this.brokerName = newBrokerName;
    57      }
    58
    59      /***
    60       * @return Returns the clusterName.
    61       */
    62      public String getClusterName() {
    63          return this.clusterName;
    64      }
    65
    66      /***
    67       * @param newClusterName The clusterName to set.
    68       */
    69      public void setClusterName(String newClusterName) {
    70          this.clusterName = newClusterName;
    71      }
    72
    73      /***
    74       * @return Returns the properties.
    75       */
    76      public Properties getProperties() {
    77          return this.properties;
    78      }
    79
    80      /***
    81       * @param newProperties The properties to set.
    82       */
    83      public void setProperties(Properties newProperties) {
    84          this.properties = newProperties;
    85      }
    86
    87      /***
    88       * @return Returns the startTime.
    89       */
    90      public long getStartTime() {
    91          return this.startTime;
    92      }
    93
    94      /***
    95       * @param newStartTime The startTime to set.
    96       */
    97      public void setStartTime(long newStartTime) {
    98          this.startTime = newStartTime;
    99      }
    100
    101 }