use of com.qlangtech.tis.realtime.yarn.rpc.impl.AdapterStatusUmbilicalProtocol in project tis by qlangtech.
the class DataXExecuteInterceptor method getDataXExecReporter.
protected RpcServiceReference getDataXExecReporter() {
IncrStatusUmbilicalProtocolImpl statusServer = IncrStatusUmbilicalProtocolImpl.getInstance();
IncrStatusUmbilicalProtocol statReceiveSvc = new AdapterStatusUmbilicalProtocol() {
@Override
public void reportDumpTableStatus(DumpPhaseStatus.TableDumpStatus tableDumpStatus) {
statusServer.reportDumpTableStatus(tableDumpStatus.getTaskid(), tableDumpStatus.isComplete(), tableDumpStatus.isWaiting(), tableDumpStatus.isFaild(), tableDumpStatus.getName());
}
};
AtomicReference<ITISRpcService> ref = new AtomicReference<>();
ref.set(new DataXAssembleSvcCompsite(statReceiveSvc));
return new RpcServiceReference(ref);
}
Aggregations