Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Implementation information

The main idea of Configuration Variations framework is a using of a matrix of possible variants of configuration properties.

Lets imagine there's a need to look over all possible variations of IgniteConfiguration where marshaller property can be BinaryMarshallerOptimizedMarshaller and perClassLoadingEnabled can be truefalse. So, there's the following matrix:

IgniteConfiguration PropertyVariant 1Variant 2
marshallerBinaryMarshaller

OptimizedMarshaller

peerClassLoadingEnabledtruefalse

The framework has VariationsIterator which will produce the following 4 variation vectors for the matrix above: 

  • [0, 0] - that means we need to set marshaller property to BinaryMarshaller and perClassLoadingEnabled flag to true. 
  • [1, 0] - that means we need to set marshaller property to OptimizedMarshaller and perClassLoadingEnabled flag to true.
  • [0, 1] - that means we need to set marshaller property to BinaryMarshaller and perClassLoadingEnabled flag to false.
  • [1, 1] - that means we need to set marshaller property to OptimizedMarshaller and perClassLoadingEnabled flag to false.