コード例 #1
0
ファイル: DAGFinishedEvent.java プロジェクト: hiteshs/tez
 public void fromProto(DAGFinishedProto proto) {
   this.dagID = TezDAGID.fromString(proto.getDagId());
   this.finishTime = proto.getFinishTime();
   this.state = DAGState.values()[proto.getState()];
   if (proto.hasDiagnostics()) {
     this.diagnostics = proto.getDiagnostics();
   }
   if (proto.hasCounters()) {
     this.tezCounters = DagTypeConverters.convertTezCountersFromProto(proto.getCounters());
   }
 }
コード例 #2
0
ファイル: DAGFinishedEvent.java プロジェクト: hiteshs/tez
 @Override
 public void fromSummaryProtoStream(SummaryEventProto proto) throws IOException {
   this.dagID = TezDAGID.fromString(proto.getDagId());
   this.finishTime = proto.getTimestamp();
   this.state = DAGState.values()[Ints.fromByteArray(proto.getEventPayload().toByteArray())];
 }