예제 #1
0
 public override int GetId()
 {
     lock (this)
     {
         MRProtos.TaskIdProtoOrBuilder p = viaProto ? proto : builder;
         return(p.GetId());
     }
 }
예제 #2
0
 public override TaskType GetTaskType()
 {
     lock (this)
     {
         MRProtos.TaskIdProtoOrBuilder p = viaProto ? proto : builder;
         if (!p.HasTaskType())
         {
             return(null);
         }
         return(ConvertFromProtoFormat(p.GetTaskType()));
     }
 }
예제 #3
0
 public override JobId GetJobId()
 {
     lock (this)
     {
         MRProtos.TaskIdProtoOrBuilder p = viaProto ? proto : builder;
         if (this.jobId != null)
         {
             return(this.jobId);
         }
         if (!p.HasJobId())
         {
             return(null);
         }
         jobId = ConvertFromProtoFormat(p.GetJobId());
         return(jobId);
     }
 }