예제 #1
0
 @Override
 public void fromProtoStream(InputStream inputStream) throws IOException {
   AMStartedProto proto = AMStartedProto.parseDelimitedFrom(inputStream);
   fromProto(proto);
 }
예제 #2
0
 public AMStartedProto toProto() {
   return AMStartedProto.newBuilder()
       .setApplicationAttemptId(this.applicationAttemptId.toString())
       .setStartTime(startTime)
       .build();
 }
예제 #3
0
 public void fromProto(AMStartedProto proto) {
   this.applicationAttemptId =
       ConverterUtils.toApplicationAttemptId(proto.getApplicationAttemptId());
   this.startTime = proto.getStartTime();
 }