Class VersionDuplicateHandler
- java.lang.Object
-
- org.somda.sdc.biceps.consumer.preprocessing.VersionDuplicateHandler
-
- All Implemented Interfaces:
StatePreprocessingSegment
public class VersionDuplicateHandler extends Object implements StatePreprocessingSegment
Preprocessing segment that removes changes from modification sets that have already been applied on the MDIB storage before.This typically happens after a description change when states are sent out in addition to the description modification message. Those additional elements will be thrown away.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterLastModification(MdibStateModifications modifications, MdibStorage mdibStorage)Function that is invoked after the last modification in the processing chain has been applied.voidbeforeFirstModification(MdibStateModifications modifications, MdibStorage mdibStorage)Function that is invoked before the first modification in the processing chain is applied.voidprocess(MdibStateModifications modifications, AbstractState modification, MdibStorage storage)In a sequence of modifications this function processes one modification.StringtoString()
-
-
-
Method Detail
-
beforeFirstModification
public void beforeFirstModification(MdibStateModifications modifications, MdibStorage mdibStorage)
Description copied from interface:StatePreprocessingSegmentFunction that is invoked before the first modification in the processing chain is applied.Default behavior is do nothing.
- Specified by:
beforeFirstModificationin interfaceStatePreprocessingSegment- Parameters:
modifications- all modifications for preprocessing.mdibStorage- the MDIB storage to be used by the callback.
-
process
public void process(MdibStateModifications modifications, AbstractState modification, MdibStorage storage)
Description copied from interface:StatePreprocessingSegmentIn a sequence of modifications this function processes one modification.- Specified by:
processin interfaceStatePreprocessingSegment- Parameters:
modifications- all modifications that are being processed.modification- the current modification to be processed.storage- the MDIB storage for access.
-
afterLastModification
public void afterLastModification(MdibStateModifications modifications, MdibStorage mdibStorage)
Description copied from interface:StatePreprocessingSegmentFunction that is invoked after the last modification in the processing chain has been applied.Default behavior is do nothing.
- Specified by:
afterLastModificationin interfaceStatePreprocessingSegment- Parameters:
modifications- all modifications for preprocessing.mdibStorage- the MDIB storage to be used by the callback.
-
-