From f82a7bed84883ae695beab859b20d41bbef9fcfd Mon Sep 17 00:00:00 2001 From: Robert Gemmell Date: Thu, 16 Jul 2009 12:59:15 +0000 Subject: QPID-1946: add server information mbean to expose version info for the broker and its JMX management API git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@794660 13f79535-47bb-0310-9956-ffa450edef68 --- .../common/mbeans/ServerInformation.java | 68 ++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/ServerInformation.java (limited to 'java/management/common/src') diff --git a/java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/ServerInformation.java b/java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/ServerInformation.java new file mode 100644 index 0000000000..49549e76fb --- /dev/null +++ b/java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/ServerInformation.java @@ -0,0 +1,68 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + * + */ +package org.apache.qpid.management.common.mbeans; + +import java.io.IOException; + +import org.apache.qpid.management.common.mbeans.annotations.MBeanAttribute; + + +public interface ServerInformation +{ + String TYPE = "ServerInformation"; + int VERSION = 1; + + //API version info for the brokers JMX management interface + int QPID_JMX_API_MAJOR_VERSION = 1; + int QPID_JMX_API_MINOR_VERSION = 3; + + /** + * Attribute to represent the major version number for the management API. + * @return The major management version number. + */ + @MBeanAttribute(name="ManagementApiMajorVersion", + description = "The major version number for the broker management API") + Integer getManagementApiMajorVersion() throws IOException; + + /** + * Attribute to represent the minor version number for the management API. + * @return The minor management version number. + */ + @MBeanAttribute(name="ManagementApiMinorVersion", + description = "The minor version number for the broker management API") + Integer getManagementApiMinorVersion() throws IOException; + + /** + * Attribute to represent the build version string. + * @return The build version string + */ + @MBeanAttribute(name="BuildVersion", + description = "The repository build version string") + String getBuildVersion() throws IOException; + + /** + * Attribute to represent the product version string. + * @return The product version string + */ + @MBeanAttribute(name="ProductVersion", + description = "The product version string") + String getProductVersion() throws IOException; +} -- cgit v1.2.1