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; 019 020import org.apache.activemq.broker.jmx.MBeanInfo; 021 022/** 023 * <p> 024 * </p> 025 * 026 * @author <a href="http://hiramchirino.com">Hiram Chirino</a> 027 */ 028public interface LevelDBStoreTestMBean { 029 030 @MBeanInfo("Used to set if the log force calls should be suspended") 031 void setSuspendForce(boolean value); 032 033 @MBeanInfo("Gets if the log force calls should be suspended") 034 boolean getSuspendForce(); 035 036 @MBeanInfo("Gets the number of threads waiting to do a log force call.") 037 long getForceCalls(); 038 039 @MBeanInfo("Used to set if the log write calls should be suspended") 040 void setSuspendWrite(boolean value); 041 042 @MBeanInfo("Gets if the log write calls should be suspended") 043 boolean getSuspendWrite(); 044 045 @MBeanInfo("Gets the number of threads waiting to do a log write call.") 046 long getWriteCalls(); 047 048 @MBeanInfo("Used to set if the log delete calls should be suspended") 049 void setSuspendDelete(boolean value); 050 051 @MBeanInfo("Gets if the log delete calls should be suspended") 052 boolean getSuspendDelete(); 053 054 @MBeanInfo("Gets the number of threads waiting to do a log delete call.") 055 long getDeleteCalls(); 056}