1 5 package com.tc.object.config.schema; 6 7 import com.tc.config.schema.BaseNewConfigObject; 8 import com.tc.config.schema.context.ConfigContext; 9 import com.tc.config.schema.dynamic.BooleanConfigItem; 10 import com.terracottatech.config.DsoClientData; 11 12 15 public class StandardDSORuntimeLoggingOptions extends BaseNewConfigObject implements DSORuntimeLoggingOptions { 16 17 private final BooleanConfigItem logLockDebug; 18 private final BooleanConfigItem logFieldChangeDebug; 19 private final BooleanConfigItem logWaitNotifyDebug; 20 private final BooleanConfigItem logDistributedMethodDebug; 21 private final BooleanConfigItem logNewObjectDebug; 22 private final BooleanConfigItem logNonPortableDump; 23 24 public StandardDSORuntimeLoggingOptions(ConfigContext context) { 25 super(context); 26 this.context.ensureRepositoryProvides(DsoClientData.class); 27 28 this.logLockDebug = this.context.booleanItem("debugging/runtime-logging/lock-debug"); 29 this.logFieldChangeDebug = this.context.booleanItem("debugging/runtime-logging/field-change-debug"); 30 this.logWaitNotifyDebug = this.context.booleanItem("debugging/runtime-logging/wait-notify-debug"); 31 this.logDistributedMethodDebug = this.context.booleanItem("debugging/runtime-logging/distributed-method-debug"); 32 this.logNewObjectDebug = this.context.booleanItem("debugging/runtime-logging/new-object-debug"); 33 this.logNonPortableDump = this.context.booleanItem("debugging/runtime-logging/non-portable-dump"); 34 } 35 36 public BooleanConfigItem logLockDebug() { 37 return this.logLockDebug; 38 } 39 40 public BooleanConfigItem logFieldChangeDebug() { 41 return this.logFieldChangeDebug; 42 } 43 44 public BooleanConfigItem logWaitNotifyDebug() { 45 return this.logWaitNotifyDebug; 46 } 47 48 public BooleanConfigItem logDistributedMethodDebug() { 49 return this.logDistributedMethodDebug; 50 } 51 52 public BooleanConfigItem logNewObjectDebug() { 53 return this.logNewObjectDebug; 54 } 55 56 public BooleanConfigItem logNonPortableDump() { 57 return this.logNonPortableDump; 58 } 59 60 } 61 | Popular Tags |