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