PermitMonitor permitMonitor = ArbitrateFactory.getInstance(pipelineId, PermitMonitor.class);
permitMonitor.waitForPermit();// 阻塞等待授权
TransformStageListener transformStageListener = ArbitrateFactory.getInstance(pipelineId,
TransformStageListener.class);
Long processId = transformStageListener.waitForProcess(); // 符合条件的processId
ChannelStatus status = permitMonitor.getChannelPermit();
if (status.isStart()) {// 即时查询一下当前的状态,状态随时可能会变
// 根据pipelineId+processId构造对应的path
String path = StagePathUtils.getExtractStage(pipelineId, processId);