Search in sources :

Example 1 with AsyncSequencer

use of info.xiancloud.core.sequence.default_sequencer.AsyncSequencer 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 AsyncSequencer(group, unit, argMap);
    } else {
        return new NoSequenceGuaranteeSequencer();
    }
}
Also used : Input(info.xiancloud.core.Input) NoSequenceGuaranteeSequencer(info.xiancloud.core.sequence.sequence_no_garantee.NoSequenceGuaranteeSequencer) AsyncSequencer(info.xiancloud.core.sequence.default_sequencer.AsyncSequencer) Unit(info.xiancloud.core.Unit)

Aggregations

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