- Timestamp:
- 06/22/13 21:51:33 (11 years ago)
- Location:
- java/main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
java/main
-
Property
svn:ignore
set to
target
-
Property
svn:ignore
set to
-
java/main/src/main/java/com/framsticks/diagnostics/Diagnostics.java
r78 r84 1 1 package com.framsticks.diagnostics; 2 2 3 import com.framsticks.core.Parameters; 3 import org.apache.commons.configuration.Configuration; 4 4 5 import com.framsticks.observers.Endpoint; 5 6 import com.framsticks.observers.Observer; … … 10 11 public class Diagnostics extends Observer { 11 12 12 finalInteger dumpsInterval;13 finalString dumpsPath;14 finalString dumpsFormat;13 Integer dumpsInterval; 14 String dumpsPath; 15 String dumpsFormat; 15 16 16 17 17 public Diagnostics(Parameters parameters) { 18 super(parameters); 19 dumpsInterval = config.getInteger("dumps.interval", null); 20 dumpsPath = config.getString("dumps.path", null); 21 dumpsFormat = config.getString("dumps.format", null); 22 } 18 public Diagnostics() { 19 } 23 20 24 @Override 25 protected void configure() throws Exception { 26 27 super.configure(); 28 } 21 @Override 22 public void configure(Configuration config) { 23 super.configure(config); 24 dumpsInterval = config.getInteger("dumps.interval", null); 25 dumpsPath = config.getString("dumps.path", null); 26 dumpsFormat = config.getString("dumps.format", null); 27 } 29 28 30 29 31 32 33 34 30 @Override 31 protected Endpoint createEndpoint() { 32 return new DiagnosticsEndpoint(); 33 } 35 34 36 35
Note: See TracChangeset
for help on using the changeset viewer.