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