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();
}
}
Aggregations