Exemple #1
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;
 }
Exemple #2
0
 public virtual void SetMessage(string message)
 {
     builder.SetMessage(message);
 }