Search in sources :

Example 1 with DefaultSequencer

use of info.xiancloud.core.sequence.default_sequencer.DefaultSequencer in project xian by happyyangyuan.

the class ISequencer method build.

static ISequencer build(String group, String unit, JSONObject argMap) {
    Unit unit1 = LocalUnitsManager.getLocalUnit(group, unit);
    Input input = unit1.getInput();
    if (input != null && input.isSequential()) {
        LOG.info("sequential: " + group + "." + unit);
        return new DefaultSequencer(group, unit, argMap);
    } else {
        return new NoSequenceGuaranteeSequencer();
    }
}
Also used : Input(info.xiancloud.core.Input) DefaultSequencer(info.xiancloud.core.sequence.default_sequencer.DefaultSequencer) NoSequenceGuaranteeSequencer(info.xiancloud.core.sequence.sequence_no_garantee.NoSequenceGuaranteeSequencer) Unit(info.xiancloud.core.Unit)

Aggregations

Input (info.xiancloud.core.Input)1 Unit (info.xiancloud.core.Unit)1 DefaultSequencer (info.xiancloud.core.sequence.default_sequencer.DefaultSequencer)1 NoSequenceGuaranteeSequencer (info.xiancloud.core.sequence.sequence_no_garantee.NoSequenceGuaranteeSequencer)1