001/** 002 * Licensed to the Apache Software Foundation (ASF) under one or more 003 * contributor license agreements. See the NOTICE file distributed with 004 * this work for additional information regarding copyright ownership. 005 * The ASF licenses this file to You under the Apache License, Version 2.0 006 * (the "License"); you may not use this file except in compliance with 007 * the License. You may obtain a copy of the License at 008 * 009 * http://www.apache.org/licenses/LICENSE-2.0 010 * 011 * Unless required by applicable law or agreed to in writing, software 012 * distributed under the License is distributed on an "AS IS" BASIS, 013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 014 * See the License for the specific language governing permissions and 015 * limitations under the License. 016 */ 017 018package org.apache.activemq.leveldb.replicated; 019 020import org.apache.activemq.broker.jmx.MBeanInfo; 021 022import javax.management.openmbean.CompositeData; 023 024/** 025 * <p> 026 * </p> 027 * 028 * @author <a href="http://hiramchirino.com">Hiram Chirino</a> 029 */ 030public interface ReplicatedLevelDBStoreViewMBean { 031 032 @MBeanInfo("The address of the ZooKeeper server.") 033 String getZkAddress(); 034 @MBeanInfo("The path in ZooKeeper to hold master elections.") 035 String getZkPath(); 036 @MBeanInfo("The ZooKeeper session timeout.") 037 String getZkSessionTimeout(); 038 @MBeanInfo("The address and port the master will bind for the replication protocol.") 039 String getBind(); 040 @MBeanInfo("The number of replication nodes that will be part of the replication cluster.") 041 int getReplicas(); 042 043 @MBeanInfo("The role of this node in the replication cluster.") 044 String getNodeRole(); 045 046 @MBeanInfo("The replication status.") 047 String getStatus(); 048 049 @MBeanInfo("The status of the connected slaves.") 050 CompositeData[] getSlaves(); 051 052 @MBeanInfo("The current position of the replication log.") 053 Long getPosition(); 054 055 @MBeanInfo("When the last entry was added to the replication log.") 056 Long getPositionDate(); 057 058 @MBeanInfo("The directory holding the data.") 059 String getDirectory(); 060 061 @MBeanInfo("The sync strategy to use.") 062 String getSync(); 063 064 @MBeanInfo("The node id of this replication node.") 065 String getNodeId(); 066}