00001 /** 00002 * C-JDBC: Clustered JDBC. 00003 * Copyright (C) 2002-2004 French National Institute For Research In Computer 00004 * Science And Control (INRIA). 00005 * Contact: c-jdbc@objectweb.org 00006 * 00007 * This library is free software; you can redistribute it and/or modify it 00008 * under the terms of the GNU Lesser General Public License as published by the 00009 * Free Software Foundation; either version 2.1 of the License, or any later 00010 * version. 00011 * 00012 * This library is distributed in the hope that it will be useful, but WITHOUT 00013 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00014 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License 00015 * for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public License 00018 * along with this library; if not, write to the Free Software Foundation, 00019 * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. 00020 * 00021 * Initial developer(s): Nicolas Modrzyk. 00022 * Contributor(s): ______________________. 00023 */ 00024 00025 package org.objectweb.cjdbc.common.jmx.mbeans; 00026 00027 /** 00028 * This class defines a RequestManagerMBean 00029 * 00030 * @author <a href="mailto:Nicolas.Modrzyk@inrialpes.fr">Nicolas Modrzyk</a> 00031 * @version 1.0 00032 */ 00033 public interface RequestManagerMBean 00034 { 00035 /** 00036 * Sets the parsing case sensitivity. If true the request are parsed in a case 00037 * sensitive way (table/column name must match exactly the case of the names 00038 * fetched from the database or enforced by a static schema). 00039 * 00040 * @param isCaseSensitiveParsing true if parsing is case sensitive 00041 */ 00042 void setCaseSensitiveParsing(boolean isCaseSensitiveParsing); 00043 00044 /** 00045 * @return the parsing granularity required by the current configuration 00046 */ 00047 int getRequiredParsingGranularity(); 00048 00049 /** 00050 * Returns the beginTimeout value. 00051 * 00052 * @return Returns the beginTimeout. 00053 */ 00054 long getBeginTimeout(); 00055 00056 /** 00057 * Sets the beginTimeout value. 00058 * 00059 * @param beginTimeout The beginTimeout to set. 00060 */ 00061 void setBeginTimeout(long beginTimeout); 00062 00063 /** 00064 * Returns the cacheParsingranularity value. 00065 * 00066 * @return Returns the cacheParsingranularity. 00067 */ 00068 int getCacheParsingranularity(); 00069 00070 /** 00071 * Sets the cacheParsingranularity value. 00072 * 00073 * @param cacheParsingranularity The cacheParsingranularity to set. 00074 */ 00075 void setCacheParsingranularity(int cacheParsingranularity); 00076 00077 /** 00078 * Returns the commitTimeout value. 00079 * 00080 * @return Returns the commitTimeout. 00081 */ 00082 long getCommitTimeout(); 00083 00084 /** 00085 * Sets the commitTimeout value. 00086 * 00087 * @param commitTimeout The commitTimeout to set. 00088 */ 00089 void setCommitTimeout(long commitTimeout); 00090 00091 /** 00092 * Returns the loadBalancerParsingranularity value. 00093 * 00094 * @return Returns the loadBalancerParsingranularity. 00095 */ 00096 int getLoadBalancerParsingranularity(); 00097 00098 /** 00099 * Sets the loadBalancerParsingranularity value. 00100 * 00101 * @param loadBalancerParsingranularity The loadBalancerParsingranularity to set. 00102 */ 00103 void setLoadBalancerParsingranularity(int loadBalancerParsingranularity); 00104 00105 /** 00106 * Returns the requiredGranularity value. 00107 * 00108 * @return Returns the requiredGranularity. 00109 */ 00110 int getRequiredGranularity(); 00111 00112 /** 00113 * Sets the requiredGranularity value. 00114 * 00115 * @param requiredGranularity The requiredGranularity to set. 00116 */ 00117 void setRequiredGranularity(int requiredGranularity); 00118 00119 /** 00120 * Returns the rollbackTimeout value. 00121 * 00122 * @return Returns the rollbackTimeout. 00123 */ 00124 long getRollbackTimeout(); 00125 00126 /** 00127 * Sets the rollbackTimeout value. 00128 * 00129 * @param rollbackTimeout The rollbackTimeout to set. 00130 */ 00131 void setRollbackTimeout(long rollbackTimeout); 00132 00133 /** 00134 * Returns the schedulerParsingranularity value. 00135 * 00136 * @return Returns the schedulerParsingranularity. 00137 */ 00138 int getSchedulerParsingranularity(); 00139 00140 /** 00141 * Sets the schedulerParsingranularity value. 00142 * 00143 * @param schedulerParsingranularity The schedulerParsingranularity to set. 00144 */ 00145 void setSchedulerParsingranularity(int schedulerParsingranularity); 00146 00147 /** 00148 * Returns the schemaIsStatic value. 00149 * 00150 * @return Returns the schemaIsStatic. 00151 */ 00152 boolean isSchemaIsStatic(); 00153 00154 /** 00155 * Sets the schemaIsStatic value. 00156 * 00157 * @param schemaIsStatic The schemaIsStatic to set. 00158 */ 00159 void setSchemaIsStatic(boolean schemaIsStatic); 00160 00161 /** 00162 * Returns the isCaseSensitiveParsing value. 00163 * 00164 * @return Returns the isCaseSensitiveParsing. 00165 */ 00166 boolean isCaseSensitiveParsing(); 00167 }