"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "moskito-core/src/main/java/net/anotheria/moskito/core/context/MoSKitoContext.java" between
moskito-moskito-2.9.3.tar.gz and moskito-moskito-2.10.0.tar.gz

About: MoSKito (Monitoring System Kit) is a framework for java application monitoring. Sources.

MoSKitoContext.java  (moskito-moskito-2.9.3):MoSKitoContext.java  (moskito-moskito-2.10.0)
skipping to change at line 61 skipping to change at line 61
/** /**
* Map with tags assigned to this context. * Map with tags assigned to this context.
*/ */
private HashMap<String, String> tags = new HashMap<>(); private HashMap<String, String> tags = new HashMap<>();
private HashSet<Integer> seenErrors = new HashSet<>(); private HashSet<Integer> seenErrors = new HashSet<>();
private volatile IStatsProducer lastProducer; private volatile IStatsProducer lastProducer;
/** /**
* First producer ever seen in this passing of the code. Usually its the
first component/aspect/filter the code encounters on user's request in your app.
*/
private volatile IStatsProducer firstProducer;
/**
* Number of current instance. * Number of current instance.
*/ */
private long instanceNumber; private long instanceNumber;
/** /**
* If true an error has occured in this thread already. This is useful to separate from initial errors in the processing and followup errors. * If true an error has occured in this thread already. This is useful to separate from initial errors in the processing and followup errors.
*/ */
private AtomicBoolean errorOccured = new AtomicBoolean(false); private AtomicBoolean errorOccured = new AtomicBoolean(false);
/** /**
skipping to change at line 147 skipping to change at line 152
} }
/* test visibility */ static Integer getHashKey(Throwable t){ /* test visibility */ static Integer getHashKey(Throwable t){
return t.hashCode(); return t.hashCode();
} }
public IStatsProducer getLastProducer() { public IStatsProducer getLastProducer() {
return lastProducer; return lastProducer;
} }
public void setLastProducer(IStatsProducer lastProducer) { public CurrentMeasurement notifyProducerEntry(IStatsProducer aProducer){
this.lastProducer = lastProducer; CurrentMeasurement measurement = new CurrentMeasurement(aProducer
, firstProducer==null);
if (firstProducer==null) {
firstProducer = aProducer;
}
lastProducer = aProducer;
return measurement;
} }
} }
 End of changes. 2 change blocks. 
2 lines changed or deleted 14 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)