1 4 package com.tc.object.config.schema; 5 6 import com.tc.config.schema.BaseNewConfigObject; 7 import com.tc.config.schema.context.ConfigContext; 8 import com.tc.config.schema.dynamic.BooleanConfigItem; 9 import com.terracottatech.config.DsoClientData; 10 11 14 public class StandardDSOInstrumentationLoggingOptions extends BaseNewConfigObject implements 15 DSOInstrumentationLoggingOptions { 16 17 private final BooleanConfigItem logClass; 18 private final BooleanConfigItem logLocks; 19 private final BooleanConfigItem logTransientRoot; 20 private final BooleanConfigItem logRoots; 21 private final BooleanConfigItem logDistributedMethods; 22 23 public StandardDSOInstrumentationLoggingOptions(ConfigContext context) { 24 super(context); 25 26 this.context.ensureRepositoryProvides(DsoClientData.class); 27 28 this.logClass = this.context.booleanItem("debugging/instrumentation-logging/class"); 29 this.logLocks = this.context.booleanItem("debugging/instrumentation-logging/locks"); 30 this.logTransientRoot = this.context.booleanItem("debugging/instrumentation-logging/transient-root"); 31 this.logRoots = this.context.booleanItem("debugging/instrumentation-logging/roots"); 32 this.logDistributedMethods = this.context.booleanItem("debugging/instrumentation-logging/distributed-methods"); 33 } 34 35 public BooleanConfigItem logClass() { 36 return this.logClass; 37 } 38 39 public BooleanConfigItem logLocks() { 40 return this.logLocks; 41 } 42 43 public BooleanConfigItem logTransientRoot() { 44 return this.logTransientRoot; 45 } 46 47 public BooleanConfigItem logRoots() { 48 return this.logRoots; 49 } 50 51 public BooleanConfigItem logDistributedMethods() { 52 return this.logDistributedMethods; 53 } 54 55 } 56 | Popular Tags |