001/**
002 * Licensed to the Apache Software Foundation (ASF) under one
003 * or more contributor license agreements.  See the NOTICE file
004 * distributed with this work for additional information
005 * regarding copyright ownership.  The ASF licenses this file
006 * to you under the Apache License, Version 2.0 (the
007 * "License"); you may not use this file except in compliance
008 * with the License.  You may obtain a copy of the License at
009 *
010 *     http://www.apache.org/licenses/LICENSE-2.0
011 *
012 * Unless required by applicable law or agreed to in writing, software
013 * distributed under the License is distributed on an "AS IS" BASIS,
014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015 * See the License for the specific language governing permissions and
016 * limitations under the License.
017 */
018
019package org.apache.hadoop.yarn.api.protocolrecords;
020
021import org.apache.hadoop.classification.InterfaceAudience.Public;
022import org.apache.hadoop.classification.InterfaceStability.Unstable;
023import org.apache.hadoop.yarn.api.records.ApplicationId;
024
025/**
026 * <p>The request from clients to release a resource in the shared cache.</p>
027 */
028@Public
029@Unstable
030public abstract class ReleaseSharedCacheResourceRequest {
031
032  /**
033   * Get the <code>ApplicationId</code> of the resource to be released.
034   *
035   * @return <code>ApplicationId</code>
036   */
037  @Public
038  @Unstable
039  public abstract ApplicationId getAppId();
040
041  /**
042   * Set the <code>ApplicationId</code> of the resource to be released.
043   *
044   * @param id <code>ApplicationId</code>
045   */
046  @Public
047  @Unstable
048  public abstract void setAppId(ApplicationId id);
049
050  /**
051   * Get the <code>key</code> of the resource to be released.
052   *
053   * @return <code>key</code>
054   */
055  @Public
056  @Unstable
057  public abstract String getResourceKey();
058
059  /**
060   * Set the <code>key</code> of the resource to be released.
061   *
062   * @param key unique identifier for the resource
063   */
064  @Public
065  @Unstable
066  public abstract void setResourceKey(String key);
067}