01: package org.apache.lucene.benchmark.standard;
02:
03: import org.apache.lucene.benchmark.BenchmarkOptions;
04: import org.apache.lucene.benchmark.Constants;
05:
06: /**
07: * Copyright 2005 The Apache Software Foundation
08: *
09: * Licensed under the Apache License, Version 2.0 (the "License");
10: * you may not use this file except in compliance with the License.
11: * You may obtain a copy of the License at
12: *
13: * http://www.apache.org/licenses/LICENSE-2.0
14: *
15: * Unless required by applicable law or agreed to in writing, software
16: * distributed under the License is distributed on an "AS IS" BASIS,
17: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18: * See the License for the specific language governing permissions and
19: * limitations under the License.
20: */
21:
22: /**
23: *
24: * @deprecated Use the Task based stuff instead
25: **/
26: public class StandardOptions implements BenchmarkOptions {
27: private int runCount = Constants.DEFAULT_RUN_COUNT;
28: private int logStep = Constants.DEFAULT_LOG_STEP;
29: private int scaleUp = Constants.DEFAULT_SCALE_UP;
30: private int maximumDocumentsToIndex = Constants.DEFAULT_MAXIMUM_DOCUMENTS;
31:
32: public int getMaximumDocumentsToIndex() {
33: return maximumDocumentsToIndex;
34: }
35:
36: public void setMaximumDocumentsToIndex(int maximumDocumentsToIndex) {
37: this .maximumDocumentsToIndex = maximumDocumentsToIndex;
38: }
39:
40: /**
41: * How often to print out log messages when in benchmark loops
42: */
43: public int getLogStep() {
44: return logStep;
45: }
46:
47: public void setLogStep(int logStep) {
48: this .logStep = logStep;
49: }
50:
51: /**
52: * The number of times to run the benchmark
53: */
54: public int getRunCount() {
55: return runCount;
56: }
57:
58: public void setRunCount(int runCount) {
59: this .runCount = runCount;
60: }
61:
62: public int getScaleUp() {
63: return scaleUp;
64: }
65:
66: public void setScaleUp(int scaleUp) {
67: this.scaleUp = scaleUp;
68: }
69: }
|