Commit f94895a2 authored by Christian Wulf's avatar Christian Wulf

made two methods private

parent a6844cd7
......@@ -554,19 +554,19 @@ public abstract class AbstractStage implements StateLoggable {
return states;
}
protected void addState(final ExecutionState stateCode, final long timestamp) {
StateChange state = new StateChange(stateCode, timestamp);
this.states.add(state);
this.lastState = state;
}
protected boolean newStateRequired(final ExecutionState state) {
private boolean newStateRequired(final ExecutionState state) {
if (!performanceLoggingEnabled) {
return false;
}
return (this.lastState.getExecutionState() != state);
}
private void addState(final ExecutionState stateCode, final long timestamp) {
StateChange state = new StateChange(stateCode, timestamp);
this.states.add(state);
this.lastState = state;
}
@Override
public void sendingFailed() {
if (newStateRequired(ExecutionState.BLOCKED)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment