01: /*
02: * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package com.tc.objectserver.tx;
06:
07: import com.tc.properties.TCProperties;
08:
09: public final class ServerTransactionManagerConfig {
10:
11: private final boolean loggingEnabled;
12: private final boolean verboseLogging;
13: private final boolean printStats;
14:
15: public ServerTransactionManagerConfig(TCProperties tcproperties) {
16: this .loggingEnabled = tcproperties
17: .getBoolean("logging.enabled");
18: this .verboseLogging = tcproperties
19: .getBoolean("logging.verbose");
20: this .printStats = tcproperties.getBoolean("logging.printStats");
21: }
22:
23: // Used in tests
24: public ServerTransactionManagerConfig() {
25: this .loggingEnabled = false;
26: this .verboseLogging = false;
27: this .printStats = false;
28: }
29:
30: public boolean isLoggingEnabled() {
31: return loggingEnabled;
32: }
33:
34: public boolean isPrintStatsEnabled() {
35: return printStats;
36: }
37:
38: public boolean isVerboseLogging() {
39: return verboseLogging;
40: }
41:
42: }
|