Beispiel #1
0
 public override ApplicationId GetAppId()
 {
     YarnServiceProtos.ReleaseSharedCacheResourceRequestProtoOrBuilder p = viaProto ?
                                                                           proto : builder;
     if (this.applicationId != null)
     {
         return(this.applicationId);
     }
     if (!p.HasApplicationId())
     {
         return(null);
     }
     this.applicationId = ConvertFromProtoFormat(p.GetApplicationId());
     return(this.applicationId);
 }
Beispiel #2
0
 public override string GetResourceKey()
 {
     YarnServiceProtos.ReleaseSharedCacheResourceRequestProtoOrBuilder p = viaProto ?
                                                                           proto : builder;
     return((p.HasResourceKey()) ? p.GetResourceKey() : null);
 }