diff options
author | Robert Gemmell <robbie@apache.org> | 2009-07-16 12:59:15 +0000 |
---|---|---|
committer | Robert Gemmell <robbie@apache.org> | 2009-07-16 12:59:15 +0000 |
commit | f82a7bed84883ae695beab859b20d41bbef9fcfd (patch) | |
tree | a5227abcc305367b97c640956c1b15152ee2778a /java/management/common/src | |
parent | b9641b7cfa1370fd27f781d23c757e77d81c0286 (diff) | |
download | qpid-python-f82a7bed84883ae695beab859b20d41bbef9fcfd.tar.gz |
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
Diffstat (limited to 'java/management/common/src')
-rw-r--r-- | java/management/common/src/main/java/org/apache/qpid/management/common/mbeans/ServerInformation.java | 68 |
1 files changed, 68 insertions, 0 deletions
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; +} |