01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.object.config.schema;
05:
06: import com.tc.config.schema.BaseNewConfigObject;
07: import com.tc.config.schema.context.ConfigContext;
08: import com.tc.config.schema.dynamic.IntConfigItem;
09: import com.terracottatech.config.DsoClientData;
10:
11: public class NewL1DSOConfigObject extends BaseNewConfigObject implements
12: NewL1DSOConfig {
13:
14: public static final String DSO_INSTRUMENTATION_LOGGING_OPTIONS_SUB_XPATH = "";
15:
16: private final IntConfigItem faultCount;
17:
18: private final DSOInstrumentationLoggingOptions instrumentationLoggingOptions;
19: private final DSORuntimeLoggingOptions runtimeLoggingOptions;
20: private final DSORuntimeOutputOptions runtimeOutputOptions;
21:
22: public NewL1DSOConfigObject(ConfigContext context) {
23: super (context);
24:
25: this .context.ensureRepositoryProvides(DsoClientData.class);
26:
27: this .faultCount = this .context.intItem("fault-count");
28: this .instrumentationLoggingOptions = new StandardDSOInstrumentationLoggingOptions(
29: this .context);
30: this .runtimeLoggingOptions = new StandardDSORuntimeLoggingOptions(
31: this .context);
32: this .runtimeOutputOptions = new StandardDSORuntimeOutputOptions(
33: this .context);
34: }
35:
36: public DSOInstrumentationLoggingOptions instrumentationLoggingOptions() {
37: return this .instrumentationLoggingOptions;
38: }
39:
40: public DSORuntimeLoggingOptions runtimeLoggingOptions() {
41: return this .runtimeLoggingOptions;
42: }
43:
44: public DSORuntimeOutputOptions runtimeOutputOptions() {
45: return this .runtimeOutputOptions;
46: }
47:
48: public IntConfigItem faultCount() {
49: return faultCount;
50: }
51:
52: }
|