KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > continuent > sequoia > common > jmx > mbeans > RequestManagerMBean


1 /**
2  * Sequoia: Database clustering technology.
3  * Copyright (C) 2002-2004 French National Institute For Research In Computer
4  * Science And Control (INRIA).
5  * Contact: sequoia@continuent.org
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  * Initial developer(s): Nicolas Modrzyk.
20  * Contributor(s): ______________________.
21  */

22
23 package org.continuent.sequoia.common.jmx.mbeans;
24
25 /**
26  * This class defines a RequestManagerMBean
27  *
28  * @author <a HREF="mailto:Nicolas.Modrzyk@inrialpes.fr">Nicolas Modrzyk</a>
29  * @version 1.0
30  */

31 public interface RequestManagerMBean
32 {
33   /**
34    * Sets the parsing case sensitivity. If true the request are parsed in a case
35    * sensitive way (table/column name must match exactly the case of the names
36    * fetched from the database or enforced by a static schema).
37    *
38    * @param isCaseSensitiveParsing true if parsing is case sensitive
39    */

40   void setCaseSensitiveParsing(boolean isCaseSensitiveParsing);
41
42   /**
43    * Returns the beginTimeout value.
44    *
45    * @return Returns the beginTimeout.
46    */

47   long getBeginTimeout();
48
49   /**
50    * Returns the cacheParsingranularity value.
51    *
52    * @return Returns the cacheParsingranularity.
53    */

54   int getCacheParsingranularity();
55
56   /**
57    * Sets the cacheParsingranularity value.
58    *
59    * @param cacheParsingranularity The cacheParsingranularity to set.
60    */

61   void setCacheParsingranularity(int cacheParsingranularity);
62
63   /**
64    * Returns the commitTimeout value.
65    *
66    * @return Returns the commitTimeout.
67    */

68   long getCommitTimeout();
69
70   /**
71    * Returns the requiredParsingGranularity value.
72    *
73    * @return Returns the requiredParsingGranularity.
74    */

75   int getRequiredParsingGranularity();
76
77   /**
78    * Returns the rollbackTimeout value.
79    *
80    * @return Returns the rollbackTimeout.
81    */

82   long getRollbackTimeout();
83
84   /**
85    * Returns the schedulerParsingranularity value.
86    *
87    * @return Returns the schedulerParsingranularity.
88    */

89   int getSchedulerParsingranularity();
90
91   /**
92    * Sets the schedulerParsingranularity value.
93    *
94    * @param schedulerParsingranularity The schedulerParsingranularity to set.
95    */

96   void setSchedulerParsingranularity(int schedulerParsingranularity);
97
98   /**
99    * Returns the isCaseSensitiveParsing value.
100    *
101    * @return Returns the isCaseSensitiveParsing.
102    */

103   boolean isCaseSensitiveParsing();
104
105   /**
106    * Use request factory to parse the given sql request and returns result of
107    * the newly created request parsing
108    *
109    * @param sqlRequest sql query to parse
110    * @param lineSeparator request line separator used on client side
111    * @return result of the parsing
112    */

113   String JavaDoc parseSqlRequest(String JavaDoc sqlRequest, String JavaDoc lineSeparator);
114
115 }
Popular Tags