Exemplo n.º 1
0
        /// <exception cref="System.IO.IOException"/>
        public override void ReadFields(DataInput @in)
        {
            DataInputStream dis = (DataInputStream)@in;

            byte[] buffer = IOUtils.ToByteArray(dis);
            proto = YarnSecurityTestTokenProtos.NMTokenIdentifierNewProto.ParseFrom(buffer);
        }
Exemplo n.º 2
0
 public NMTokenIdentifierNewForTest(NMTokenIdentifier tokenIdentifier, string message
                                    )
 {
     builder = YarnSecurityTestTokenProtos.NMTokenIdentifierNewProto.NewBuilder();
     builder.SetAppAttemptId(tokenIdentifier.GetProto().GetAppAttemptId());
     builder.SetNodeId(tokenIdentifier.GetProto().GetNodeId());
     builder.SetAppSubmitter(tokenIdentifier.GetApplicationSubmitter());
     builder.SetKeyId(tokenIdentifier.GetKeyId());
     builder.SetMessage(message);
     proto   = ((YarnSecurityTestTokenProtos.NMTokenIdentifierNewProto)builder.Build());
     builder = null;
 }
Exemplo n.º 3
0
 public virtual void Build()
 {
     proto   = ((YarnSecurityTestTokenProtos.NMTokenIdentifierNewProto)builder.Build());
     builder = null;
 }
Exemplo n.º 4
0
 public NMTokenIdentifierNewForTest(YarnSecurityTestTokenProtos.NMTokenIdentifierNewProto
                                    proto)
 {
     this.proto = proto;
 }