001: /**
002: * Sequoia: Database clustering technology.
003: * Copyright (C) 2002-2004 French National Institute For Research In Computer
004: * Science And Control (INRIA).
005: * Contact: sequoia@continuent.org
006: *
007: * Licensed under the Apache License, Version 2.0 (the "License");
008: * you may not use this file except in compliance with the License.
009: * You may obtain a copy of the License at
010: *
011: * http://www.apache.org/licenses/LICENSE-2.0
012: *
013: * Unless required by applicable law or agreed to in writing, software
014: * distributed under the License is distributed on an "AS IS" BASIS,
015: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
016: * See the License for the specific language governing permissions and
017: * limitations under the License.
018: *
019: * Initial developer(s): Nicolas Modrzyk.
020: * Contributor(s): ______________________.
021: */package org.continuent.sequoia.common.jmx.mbeans;
022:
023: /**
024: * This class defines a RequestManagerMBean
025: *
026: * @author <a href="mailto:Nicolas.Modrzyk@inrialpes.fr">Nicolas Modrzyk</a>
027: * @version 1.0
028: */
029: public interface RequestManagerMBean {
030: /**
031: * Sets the parsing case sensitivity. If true the request are parsed in a case
032: * sensitive way (table/column name must match exactly the case of the names
033: * fetched from the database or enforced by a static schema).
034: *
035: * @param isCaseSensitiveParsing true if parsing is case sensitive
036: */
037: void setCaseSensitiveParsing(boolean isCaseSensitiveParsing);
038:
039: /**
040: * Returns the beginTimeout value.
041: *
042: * @return Returns the beginTimeout.
043: */
044: long getBeginTimeout();
045:
046: /**
047: * Returns the cacheParsingranularity value.
048: *
049: * @return Returns the cacheParsingranularity.
050: */
051: int getCacheParsingranularity();
052:
053: /**
054: * Sets the cacheParsingranularity value.
055: *
056: * @param cacheParsingranularity The cacheParsingranularity to set.
057: */
058: void setCacheParsingranularity(int cacheParsingranularity);
059:
060: /**
061: * Returns the commitTimeout value.
062: *
063: * @return Returns the commitTimeout.
064: */
065: long getCommitTimeout();
066:
067: /**
068: * Returns the requiredParsingGranularity value.
069: *
070: * @return Returns the requiredParsingGranularity.
071: */
072: int getRequiredParsingGranularity();
073:
074: /**
075: * Returns the rollbackTimeout value.
076: *
077: * @return Returns the rollbackTimeout.
078: */
079: long getRollbackTimeout();
080:
081: /**
082: * Returns the schedulerParsingranularity value.
083: *
084: * @return Returns the schedulerParsingranularity.
085: */
086: int getSchedulerParsingranularity();
087:
088: /**
089: * Sets the schedulerParsingranularity value.
090: *
091: * @param schedulerParsingranularity The schedulerParsingranularity to set.
092: */
093: void setSchedulerParsingranularity(int schedulerParsingranularity);
094:
095: /**
096: * Returns the schemaIsStatic value.
097: *
098: * @return Returns the schemaIsStatic.
099: */
100: boolean isStaticSchema();
101:
102: /**
103: * Sets the schemaIsStatic value.
104: *
105: * @param schemaIsStatic The schemaIsStatic to set.
106: */
107: void setStaticSchema(boolean schemaIsStatic);
108:
109: /**
110: * Returns the isCaseSensitiveParsing value.
111: *
112: * @return Returns the isCaseSensitiveParsing.
113: */
114: boolean isCaseSensitiveParsing();
115:
116: /**
117: * Use request factory to parse the given sql request and returns result of
118: * the newly created request parsing
119: *
120: * @param sqlRequest sql query to parse
121: * @param lineSeparator request line separator used on client side
122: * @return result of the parsing
123: */
124: String parseSqlRequest(String sqlRequest, String lineSeparator);
125:
126: }
|