Beispiel #1
0
 public override NodeState GetNodeState()
 {
     YarnProtos.NodeReportProtoOrBuilder p = viaProto ? proto : builder;
     if (!p.HasNodeState())
     {
         return(null);
     }
     return(ProtoUtils.ConvertFromProtoFormat(p.GetNodeState()));
 }
Beispiel #2
0
 public override void SetNodeState(NodeState nodeState)
 {
     MaybeInitBuilder();
     if (nodeState == null)
     {
         builder.ClearNodeState();
         return;
     }
     builder.SetNodeState(ProtoUtils.ConvertToProtoFormat(nodeState));
 }
Beispiel #3
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();
            }
        }
Beispiel #4
0
 private ReservationRequestInterpreter ConvertFromProtoFormat(YarnProtos.ReservationRequestInterpreterProto
                                                              r)
 {
     return(ProtoUtils.ConvertFromProtoFormat(r));
 }
Beispiel #5
0
 private YarnProtos.ReservationRequestInterpreterProto ConvertToProtoFormat(ReservationRequestInterpreter
                                                                            r)
 {
     return(ProtoUtils.ConvertToProtoFormat(r));
 }
Beispiel #6
0
                public override YarnProtos.ApplicationACLMapProto Next()
                {
                    ApplicationAccessType key = this.aclsIterator.Next();

                    return((YarnProtos.ApplicationACLMapProto)YarnProtos.ApplicationACLMapProto.NewBuilder
                               ().SetAcl(this._enclosing._enclosing.applicationACLS[key]).SetAccessType(ProtoUtils
                                                                                                        .ConvertToProtoFormat(key)).Build());
                }
 private FinalApplicationStatus ConvertFromProtoFormat(YarnProtos.FinalApplicationStatusProto
                                                       s)
 {
     return(ProtoUtils.ConvertFromProtoFormat(s));
 }
 private YarnProtos.ApplicationResourceUsageReportProto ConvertToProtoFormat(ApplicationResourceUsageReport
                                                                             s)
 {
     return(ProtoUtils.ConvertToProtoFormat(s));
 }
 private ContainerState ConvertFromProtoFormat(YarnProtos.ContainerStateProto containerState
                                               )
 {
     return(ProtoUtils.ConvertFromProtoFormat(containerState));
 }
Beispiel #10
0
 protected internal ByteBuffer ConvertFromProtoFormat(ByteString byteString)
 {
     return(ProtoUtils.ConvertFromProtoFormat(byteString));
 }
 private YarnApplicationAttemptState ConvertFromProtoFormat(YarnProtos.YarnApplicationAttemptStateProto
                                                            yarnApplicationAttemptState)
 {
     return(ProtoUtils.ConvertFromProtoFormat(yarnApplicationAttemptState));
 }
 private YarnProtos.YarnApplicationAttemptStateProto ConvertToProtoFormat(YarnApplicationAttemptState
                                                                          state)
 {
     return(ProtoUtils.ConvertToProtoFormat(state));
 }
 private LocalResourceVisibility ConvertFromProtoFormat(YarnProtos.LocalResourceVisibilityProto
                                                        e)
 {
     return(ProtoUtils.ConvertFromProtoFormat(e));
 }
 private YarnProtos.LocalResourceVisibilityProto ConvertToProtoFormat(LocalResourceVisibility
                                                                      e)
 {
     return(ProtoUtils.ConvertToProtoFormat(e));
 }
 private LocalResourceType ConvertFromProtoFormat(YarnProtos.LocalResourceTypeProto
                                                  e)
 {
     return(ProtoUtils.ConvertFromProtoFormat(e));
 }
 private YarnProtos.LocalResourceTypeProto ConvertToProtoFormat(LocalResourceType
                                                                e)
 {
     return(ProtoUtils.ConvertToProtoFormat(e));
 }
 private YarnProtos.ContainerStateProto ConvertToProtoFormat(ContainerState containerState
                                                             )
 {
     return(ProtoUtils.ConvertToProtoFormat(containerState));
 }
Beispiel #18
0
 protected internal ByteString ConvertToProtoFormat(ByteBuffer byteBuffer)
 {
     return(ProtoUtils.ConvertToProtoFormat(byteBuffer));
 }
 private ApplicationResourceUsageReport ConvertFromProtoFormat(YarnProtos.ApplicationResourceUsageReportProto
                                                               s)
 {
     return(ProtoUtils.ConvertFromProtoFormat(s));
 }
 private YarnProtos.QueueACLProto ConvertToProtoFormat(QueueACL queueAcl)
 {
     return(ProtoUtils.ConvertToProtoFormat(queueAcl));
 }
 private YarnProtos.YarnApplicationStateProto ConvertToProtoFormat(YarnApplicationState
                                                                   s)
 {
     return(ProtoUtils.ConvertToProtoFormat(s));
 }
Beispiel #22
0
 private QueueState ConvertFromProtoFormat(YarnProtos.QueueStateProto q)
 {
     return(ProtoUtils.ConvertFromProtoFormat(q));
 }
 private YarnProtos.FinalApplicationStatusProto ConvertToProtoFormat(FinalApplicationStatus
                                                                     s)
 {
     return(ProtoUtils.ConvertToProtoFormat(s));
 }
Beispiel #24
0
 private YarnProtos.QueueStateProto ConvertToProtoFormat(QueueState queueState)
 {
     return(ProtoUtils.ConvertToProtoFormat(queueState));
 }