コード例 #1
0
 public override NodeState GetNodeState()
 {
     YarnProtos.NodeReportProtoOrBuilder p = viaProto ? proto : builder;
     if (!p.HasNodeState())
     {
         return(null);
     }
     return(ProtoUtils.ConvertFromProtoFormat(p.GetNodeState()));
 }
コード例 #2
0
        private void InitApplicationACLs()
        {
            if (this.applicationACLS != null)
            {
                return;
            }
            YarnProtos.ContainerLaunchContextProtoOrBuilder p    = viaProto ? proto : builder;
            IList <YarnProtos.ApplicationACLMapProto>       list = p.GetApplicationACLsList();

            this.applicationACLS = new Dictionary <ApplicationAccessType, string>(list.Count);
            foreach (YarnProtos.ApplicationACLMapProto aclProto in list)
            {
                this.applicationACLS[ProtoUtils.ConvertFromProtoFormat(aclProto.GetAccessType())]
                    = aclProto.GetAcl();
            }
        }
コード例 #3
0
 private FinalApplicationStatus ConvertFromProtoFormat(YarnProtos.FinalApplicationStatusProto
                                                       s)
 {
     return(ProtoUtils.ConvertFromProtoFormat(s));
 }
コード例 #4
0
 private YarnApplicationState ConvertFromProtoFormat(YarnProtos.YarnApplicationStateProto
                                                     s)
 {
     return(ProtoUtils.ConvertFromProtoFormat(s));
 }
コード例 #5
0
 private ApplicationResourceUsageReport ConvertFromProtoFormat(YarnProtos.ApplicationResourceUsageReportProto
                                                               s)
 {
     return(ProtoUtils.ConvertFromProtoFormat(s));
 }
コード例 #6
0
 private ContainerState ConvertFromProtoFormat(YarnProtos.ContainerStateProto containerState
                                               )
 {
     return(ProtoUtils.ConvertFromProtoFormat(containerState));
 }
コード例 #7
0
 private ReservationRequestInterpreter ConvertFromProtoFormat(YarnProtos.ReservationRequestInterpreterProto
                                                              r)
 {
     return(ProtoUtils.ConvertFromProtoFormat(r));
 }
コード例 #8
0
 private QueueState ConvertFromProtoFormat(YarnProtos.QueueStateProto q)
 {
     return(ProtoUtils.ConvertFromProtoFormat(q));
 }
コード例 #9
0
ファイル: TokenPBImpl.cs プロジェクト: orf53975/hadoop.net
 protected internal ByteBuffer ConvertFromProtoFormat(ByteString byteString)
 {
     return(ProtoUtils.ConvertFromProtoFormat(byteString));
 }
コード例 #10
0
 private YarnApplicationAttemptState ConvertFromProtoFormat(YarnProtos.YarnApplicationAttemptStateProto
                                                            yarnApplicationAttemptState)
 {
     return(ProtoUtils.ConvertFromProtoFormat(yarnApplicationAttemptState));
 }
コード例 #11
0
 private LocalResourceVisibility ConvertFromProtoFormat(YarnProtos.LocalResourceVisibilityProto
                                                        e)
 {
     return(ProtoUtils.ConvertFromProtoFormat(e));
 }
コード例 #12
0
 private LocalResourceType ConvertFromProtoFormat(YarnProtos.LocalResourceTypeProto
                                                  e)
 {
     return(ProtoUtils.ConvertFromProtoFormat(e));
 }