You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-commits@hadoop.apache.org by ac...@apache.org on 2011/08/30 03:22:30 UTC
svn commit: r1163069 [1/2] - in
/hadoop/common/trunk/hadoop-mapreduce-project: ./
hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/
hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/
hadoop-yarn/ha...
Author: acmurthy
Date: Tue Aug 30 01:22:28 2011
New Revision: 1163069
URL: http://svn.apache.org/viewvc?rev=1163069&view=rev
Log:
MAPREDUCE-2897. Javadoc for ClientRMProtocol protocol and related records.
Modified:
hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/AMRMProtocol.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/ClientRMProtocol.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/ContainerManager.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/AllocateRequest.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/AllocateResponse.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/FinishApplicationMasterRequest.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/FinishApplicationMasterResponse.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/FinishApplicationRequest.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/FinishApplicationResponse.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetAllApplicationsRequest.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetAllApplicationsResponse.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetApplicationReportRequest.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetApplicationReportResponse.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetClusterMetricsRequest.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetClusterMetricsResponse.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetClusterNodesRequest.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetClusterNodesResponse.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetContainerStatusRequest.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetContainerStatusResponse.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetNewApplicationIdRequest.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetNewApplicationIdResponse.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetQueueInfoRequest.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetQueueInfoResponse.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetQueueUserAclsInfoRequest.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetQueueUserAclsInfoResponse.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/RegisterApplicationMasterRequest.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/RegisterApplicationMasterResponse.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/StartContainerRequest.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/StartContainerResponse.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/StopContainerRequest.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/StopContainerResponse.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/SubmitApplicationRequest.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/SubmitApplicationResponse.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/AMResponse.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/ApplicationReport.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/ApplicationSubmissionContext.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/ContainerLaunchContext.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/LocalResource.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/LocalResourceType.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/LocalResourceVisibility.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/NodeHealthStatus.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/NodeReport.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/QueueACL.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/QueueInfo.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/QueueState.java
hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/QueueUserACLInfo.java
Modified: hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt?rev=1163069&r1=1163068&r2=1163069&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt (original)
+++ hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt Tue Aug 30 01:22:28 2011
@@ -1172,6 +1172,9 @@ Release 0.23.0 - Unreleased
MAPREDUCE-2886. Fix Javadoc warnings in MapReduce. (mahadev)
+ MAPREDUCE-2897. Javadoc for ClientRMProtocol protocol and related records.
+ (acmurthy)
+
Release 0.22.0 - Unreleased
INCOMPATIBLE CHANGES
Modified: hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/AMRMProtocol.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/AMRMProtocol.java?rev=1163069&r1=1163068&r2=1163069&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/AMRMProtocol.java (original)
+++ hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/AMRMProtocol.java Tue Aug 30 01:22:28 2011
@@ -89,6 +89,11 @@ public interface AMRMProtocol {
* of {@link ResourceRequest} and returns unused {@link Container} allocated
* to it via {@link AllocateRequest}.</p>
*
+ * <p>This also doubles up as a <em>heartbeat</em> to let the
+ * <code>ResourceManager</code> know that the <code>ApplicationMaster</code>
+ * is alive. Thus, applications should use periodically make this call to
+ * be kept alive.</p>
+ *
* <p>The <code>ResourceManager</code> responds with list of allocated
* {@link Container}, status of completed containers and headroom information
* for the application.</p>
Modified: hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/ClientRMProtocol.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/ClientRMProtocol.java?rev=1163069&r1=1163068&r2=1163069&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/ClientRMProtocol.java (original)
+++ hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/ClientRMProtocol.java Tue Aug 30 01:22:28 2011
@@ -18,6 +18,9 @@
package org.apache.hadoop.yarn.api;
+import org.apache.hadoop.classification.InterfaceAudience.Public;
+import org.apache.hadoop.classification.InterfaceStability.Stable;
+
import org.apache.hadoop.yarn.api.protocolrecords.FinishApplicationRequest;
import org.apache.hadoop.yarn.api.protocolrecords.FinishApplicationResponse;
import org.apache.hadoop.yarn.api.protocolrecords.GetAllApplicationsRequest;
@@ -36,17 +39,190 @@ import org.apache.hadoop.yarn.api.protoc
import org.apache.hadoop.yarn.api.protocolrecords.GetQueueUserAclsInfoResponse;
import org.apache.hadoop.yarn.api.protocolrecords.SubmitApplicationRequest;
import org.apache.hadoop.yarn.api.protocolrecords.SubmitApplicationResponse;
+import org.apache.hadoop.yarn.api.records.ApplicationId;
+import org.apache.hadoop.yarn.api.records.ApplicationReport;
+import org.apache.hadoop.yarn.api.records.ContainerLaunchContext;
+import org.apache.hadoop.yarn.api.records.NodeReport;
+import org.apache.hadoop.yarn.api.records.Resource;
+import org.apache.hadoop.yarn.api.records.YarnClusterMetrics;
import org.apache.hadoop.yarn.exceptions.YarnRemoteException;
+/**
+ * <p>The protocol between clients and the <code>ResourceManager</code>
+ * to submit/abort jobs and to get information on applications, cluster metrics,
+ * nodes, queues and ACLs.</p>
+ */
+@Public
+@Stable
public interface ClientRMProtocol {
- public GetNewApplicationIdResponse getNewApplicationId(GetNewApplicationIdRequest request) throws YarnRemoteException;
- public SubmitApplicationResponse submitApplication(SubmitApplicationRequest request) throws YarnRemoteException;
- public FinishApplicationResponse finishApplication(FinishApplicationRequest request) throws YarnRemoteException;
+ /**
+ * <p>The interface used by clients to obtain a new {@link ApplicationId} for
+ * submitting new applications.</p>
+ *
+ * <p>The <code>ResourceManager</code> responds with a new, monotonically
+ * increasing, {@link ApplicationId} which is used by the client to submit
+ * a new application.</p>
+ *
+ * @param request request to get a new <code>ApplicationId</code>
+ * @return new <code>ApplicationId</code> to be used to submit an application
+ * @throws YarnRemoteException
+ * @see #submitApplication(SubmitApplicationRequest)
+ */
+ public GetNewApplicationIdResponse getNewApplicationId(
+ GetNewApplicationIdRequest request)
+ throws YarnRemoteException;
+
+ /**
+ * <p>The interface used by clients to submit a new application to the
+ * <code>ResourceManager.</code></p>
+ *
+ * <p>The client is required to provide details such as queue,
+ * {@link Resource} required to run the <code>ApplicationMaster</code>,
+ * the equivalent of {@link ContainerLaunchContext} for launching
+ * the <code>ApplicationMaster</code> etc. via the
+ * {@link SubmitApplicationRequest}.</p>
+ *
+ * <p>Currently the <code>ResourceManager</code> sends an immediate (empty)
+ * {@link SubmitApplicationResponse} on accepting the submission and throws
+ * an exception if it rejects the submission.</p>
+ *
+ * <p> In secure mode,the <code>ResourceManager</code> verifies access to
+ * queues etc. before accepting the application submission.</p>
+ *
+ * @param request request to submit a new application
+ * @return (empty) response on accepting the submission
+ * @throws YarnRemoteException
+ * @see #getNewApplicationId(GetNewApplicationIdRequest)
+ */
+ public SubmitApplicationResponse submitApplication(
+ SubmitApplicationRequest request)
+ throws YarnRemoteException;
+
+ /**
+ * <p>The interface used by clients to request the
+ * <code>ResourceManager</code> to abort submitted application.</p>
+ *
+ * <p>The client, via {@link FinishApplicationRequest} provides the
+ * {@link ApplicationId} of the application to be aborted.</p>
+ *
+ * <p> In secure mode,the <code>ResourceManager</code> verifies access to the
+ * application, queue etc. before terminating the application.</p>
+ *
+ * <p>Currently, the <code>ResourceManager</code> returns an empty response
+ * on success and throws an exception on rejecting the request.</p>
+ *
+ * @param request request to abort a submited application
+ * @return <code>ResourceManager</code> returns an empty response
+ * on success and throws an exception on rejecting the request
+ * @throws YarnRemoteException
+ * @see #getQueueUserAcls(GetQueueUserAclsInfoRequest)
+ */
+ public FinishApplicationResponse finishApplication(
+ FinishApplicationRequest request)
+ throws YarnRemoteException;
- public GetApplicationReportResponse getApplicationReport(GetApplicationReportRequest request) throws YarnRemoteException;
- public GetClusterMetricsResponse getClusterMetrics(GetClusterMetricsRequest request) throws YarnRemoteException;
- public GetAllApplicationsResponse getAllApplications(GetAllApplicationsRequest request) throws YarnRemoteException;
- public GetClusterNodesResponse getClusterNodes(GetClusterNodesRequest request) throws YarnRemoteException;
- public GetQueueInfoResponse getQueueInfo(GetQueueInfoRequest request) throws YarnRemoteException;
- public GetQueueUserAclsInfoResponse getQueueUserAcls(GetQueueUserAclsInfoRequest request) throws YarnRemoteException;
+ /**
+ * <p>The interface used by clients to get a report of an Application from
+ * the <code>ResourceManager</code>.</p>
+ *
+ * <p>The client, via {@link GetApplicationReportRequest} provides the
+ * {@link ApplicationId} of the application.</p>
+ *
+ * <p> In secure mode,the <code>ResourceManager</code> verifies access to the
+ * application, queue etc. before accepting the request.</p>
+ *
+ * <p>The <code>ResourceManager</code> responds with a
+ * {@link GetApplicationReportResponse} which includes the
+ * {@link ApplicationReport} for the application.</p>
+ *
+ * @param request request for an application report
+ * @return application report
+ * @throws YarnRemoteException
+ */
+ public GetApplicationReportResponse getApplicationReport(
+ GetApplicationReportRequest request)
+ throws YarnRemoteException;
+
+ /**
+ * <p>The interface used by clients to get metrics about the cluster from
+ * the <code>ResourceManager</code>.</p>
+ *
+ * <p>The <code>ResourceManager</code> responds with a
+ * {@link GetClusterMetricsResponse} which includes the
+ * {@link YarnClusterMetrics} with details such as number of current
+ * nodes in the cluster.</p>
+ *
+ * @param request request for cluster metrics
+ * @return cluster metrics
+ * @throws YarnRemoteException
+ */
+ public GetClusterMetricsResponse getClusterMetrics(
+ GetClusterMetricsRequest request)
+ throws YarnRemoteException;
+
+ /**
+ * <p>The interface used by clients to get a report of all Applications
+ * in the cluster from the <code>ResourceManager</code>.</p>
+ *
+ * <p>The <code>ResourceManager</code> responds with a
+ * {@link GetAllApplicationsResponse} which includes the
+ * {@link ApplicationReport} for all the applications.</p>
+ *
+ * @param request request for report on all running applications
+ * @return report on all running applications
+ * @throws YarnRemoteException
+ */
+ public GetAllApplicationsResponse getAllApplications(
+ GetAllApplicationsRequest request)
+ throws YarnRemoteException;
+
+ /**
+ * <p>The interface used by clients to get a report of all nodes
+ * in the cluster from the <code>ResourceManager</code>.</p>
+ *
+ * <p>The <code>ResourceManager</code> responds with a
+ * {@link GetClusterNodesResponse} which includes the
+ * {@link NodeReport} for all the nodes in the cluster.</p>
+ *
+ * @param request request for report on all nodes
+ * @return report on all nodes
+ * @throws YarnRemoteException
+ */
+ public GetClusterNodesResponse getClusterNodes(
+ GetClusterNodesRequest request)
+ throws YarnRemoteException;
+
+ /**
+ * <p>The interface used by clients to get information about <em>queues</em>
+ * from the <code>ResourceManager</code>.</p>
+ *
+ * <p>The client, via {@link GetQueueInfoRequest}, can ask for details such
+ * as used/total resources, child queues, running applications etc.</p>
+ *
+ * <p> In secure mode,the <code>ResourceManager</code> verifies access before
+ * providing the information.</p>
+ *
+ * @param request request to get queue information
+ * @return queue information
+ * @throws YarnRemoteException
+ */
+ public GetQueueInfoResponse getQueueInfo(
+ GetQueueInfoRequest request)
+ throws YarnRemoteException;
+
+ /**
+ * <p>The interface used by clients to get information about <em>queue
+ * acls</em> for <em>current users</em> from the <code>ResourceManager</code>.
+ * </p>
+ *
+ * <p>The <code>ResourceManager</code> responds with queue acls for all
+ * existing queues.</p>
+ *
+ * @param request request to get queue acls for <em>current user</em>
+ * @return queue acls for <em>current user</em>
+ * @throws YarnRemoteException
+ */
+ public GetQueueUserAclsInfoResponse getQueueUserAcls(
+ GetQueueUserAclsInfoRequest request)
+ throws YarnRemoteException;
}
Modified: hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/ContainerManager.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/ContainerManager.java?rev=1163069&r1=1163068&r2=1163069&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/ContainerManager.java (original)
+++ hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/ContainerManager.java Tue Aug 30 01:22:28 2011
@@ -115,7 +115,7 @@ public interface ContainerManager {
*
* @param request request to get <code>ContainerStatus</code> of a container
* with the specified <code>ContainerId</code>
- * @return the <code>ContainerStatus</code> of the container
+ * @return <code>ContainerStatus</code> of the container
* @throws YarnRemoteException
*/
@Public
Modified: hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/AllocateRequest.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/AllocateRequest.java?rev=1163069&r1=1163068&r2=1163069&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/AllocateRequest.java (original)
+++ hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/AllocateRequest.java Tue Aug 30 01:22:28 2011
@@ -32,8 +32,7 @@ import org.apache.hadoop.yarn.api.record
/**
* <p>The core request sent by the <code>ApplicationMaster</code> to the
- * <code>ResourceManager</code> to obtain resources in the cluster via
- * {@link AMRMProtocol#allocate(AllocateRequest)}.</p>
+ * <code>ResourceManager</code> to obtain resources in the cluster.</p>
*
* <p>The request includes:
* <ul>
@@ -55,13 +54,14 @@ import org.apache.hadoop.yarn.api.record
* </ul>
* </p>
*
+ * @see AMRMProtocol#allocate(AllocateRequest)
*/
@Public
@Stable
public interface AllocateRequest {
/**
- * Get the {@link ApplicationAttemptId} being managed by the
+ * Get the <code>ApplicationAttemptId</code> being managed by the
* <code>ApplicationMaster</code>.
* @return <code>ApplicationAttemptId</code> being managed by the
* <code>ApplicationMaster</code>
@@ -70,32 +70,46 @@ public interface AllocateRequest {
@Stable
ApplicationAttemptId getApplicationAttemptId();
- @Private
- @Unstable
+ /**
+ * Set the <code>ApplicationAttemptId</code> being managed by the
+ * <code>ApplicationMaster</code>.
+ * @param applicationAttemptId <code>ApplicationAttemptId</code> being managed
+ * by the <code>ApplicationMaster</code>
+ */
+ @Public
+ @Stable
void setApplicationAttemptId(ApplicationAttemptId applicationAttemptId);
/**
- * Get the response id.
- * @return the response id
+ * Get the <em>response id</em>.
+ * @return <em>response id</em>
*/
@Public
@Stable
int getResponseId();
-
- @Private
- @Unstable
+
+ /**
+ * Set the <em>response id</em>
+ * @param id <em>response id</em>
+ */
+ @Public
+ @Stable
void setResponseId(int id);
/**
- * Get the current progress of application.
- * @return the current progress of application
+ * Get the <em>current progress</em> of application.
+ * @return <em>current progress</em> of application
*/
@Public
@Stable
float getProgress();
- @Private
- @Unstable
+ /**
+ * Set the <em>current progress</em> of application
+ * @param progress <em>current progress</em> of application
+ */
+ @Public
+ @Stable
void setProgress(float progress);
/**
@@ -116,43 +130,55 @@ public interface AllocateRequest {
int getAskCount();
/**
- * Get the list of <code>ContainerId</code> of unused containers being
- * released by the <code>ApplicationMaster</code>.
- * @return list of <code>ContainerId</code> of unused containers being
- * released by the <code>ApplicationMaster</code>
+ * Add list of <code>ResourceRequest</code> to upate the
+ * <code>ResourceManager</code> about the application's resource requirements.
+ * @param resourceRequest list of <code>ResourceRequest</code> to upate the
+ * <code>ResourceManager</code> about the application's
+ * resource requirements
*/
@Public
@Stable
- List<ContainerId> getReleaseList();
-
- @Private
- @Unstable
- ContainerId getRelease(int index);
-
- @Private
- @Unstable
- int getReleaseCount();
-
-
- @Private
- @Unstable
void addAllAsks(List<ResourceRequest> resourceRequest);
-
+
@Private
@Unstable
void addAsk(ResourceRequest request);
-
+
@Private
@Unstable
void removeAsk(int index);
-
+
@Private
@Unstable
void clearAsks();
+
+ /**
+ * Get the list of <code>ContainerId</code> of unused containers being
+ * released by the <code>ApplicationMaster</code>.
+ * @return list of <code>ContainerId</code> of unused containers being
+ * released by the <code>ApplicationMaster</code>
+ */
+ @Public
+ @Stable
+ List<ContainerId> getReleaseList();
+ @Private
+ @Unstable
+ ContainerId getRelease(int index);
@Private
@Unstable
+ int getReleaseCount();
+
+ /**
+ * Add the list of <code>ContainerId</code> of unused containers being
+ * released by the <code>ApplicationMaster</code>
+ * @param releaseContainers list of <code>ContainerId</code> of unused
+ * containers being released by the <
+ * code>ApplicationMaster</code>
+ */
+ @Public
+ @Stable
void addAllReleases(List<ContainerId> releaseContainers);
@Private
Modified: hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/AllocateResponse.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/AllocateResponse.java?rev=1163069&r1=1163068&r2=1163069&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/AllocateResponse.java (original)
+++ hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/AllocateResponse.java Tue Aug 30 01:22:28 2011
@@ -28,8 +28,7 @@ import org.apache.hadoop.yarn.api.record
/**
* <p>The response sent by the <code>ResourceManager</code> the
- * <code>ApplicationMaster</code> during resource negotiation via
- * {@link AMRMProtocol#allocate(AllocateRequest)}.</p>
+ * <code>ApplicationMaster</code> during resource negotiation.</p>
*
* <p>The response, via {@link AMResponse}, includes:
* <ul>
@@ -45,6 +44,8 @@ import org.apache.hadoop.yarn.api.record
* </li>
* </ul>
* </p>
+ *
+ * @see AMRMProtocol#allocate(AllocateRequest)
*/
@Public
@Stable
Modified: hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/FinishApplicationMasterRequest.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/FinishApplicationMasterRequest.java?rev=1163069&r1=1163068&r2=1163069&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/FinishApplicationMasterRequest.java (original)
+++ hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/FinishApplicationMasterRequest.java Tue Aug 30 01:22:28 2011
@@ -18,18 +18,14 @@
package org.apache.hadoop.yarn.api.protocolrecords;
-import org.apache.hadoop.classification.InterfaceAudience.Private;
import org.apache.hadoop.classification.InterfaceAudience.Public;
import org.apache.hadoop.classification.InterfaceStability.Stable;
-import org.apache.hadoop.classification.InterfaceStability.Unstable;
import org.apache.hadoop.yarn.api.AMRMProtocol;
import org.apache.hadoop.yarn.api.records.ApplicationAttemptId;
/**
* <p>The finalization request sent by the <code>ApplicationMaster</code> to
- * inform the <code>ResourceManager</code> about its completion via the
- * {@link AMRMProtocol#finishApplicationMaster(FinishApplicationMasterRequest)}
- * api.</p>
+ * inform the <code>ResourceManager</code> about its completion.</p>
*
* <p>The final request includes details such:
* <ul>
@@ -46,11 +42,12 @@ import org.apache.hadoop.yarn.api.record
* </ul>
* </p>
*
+ * @see AMRMProtocol#finishApplicationMaster(FinishApplicationMasterRequest)
*/
public interface FinishApplicationMasterRequest {
/**
- * Get the {@link ApplicationAttemptId} being managed by the
+ * Get the <code>ApplicationAttemptId</code> being managed by the
* <code>ApplicationMaster</code>.
* @return <code>ApplicationAttemptId</code> being managed by the
* <code>ApplicationMaster</code>
@@ -59,44 +56,63 @@ public interface FinishApplicationMaster
@Stable
ApplicationAttemptId getApplicationAttemptId();
- @Private
- @Unstable
+ /**
+ * Set the <code>ApplicationAttemptId</code> being managed by the
+ * <code>ApplicationMaster</code>.
+ * @param applicationAttemptId <code>ApplicationAttemptId</code> being managed
+ * by the <code>ApplicationMaster</code>
+ */
+ @Public
+ @Stable
void setAppAttemptId(ApplicationAttemptId applicationAttemptId);
/**
- * Get final state of the <code>ApplicationMaster</code>.
- * @return final state of the <code>ApplicationMaster</code>
+ * Get <em>final state</em> of the <code>ApplicationMaster</code>.
+ * @return <em>final state</em> of the <code>ApplicationMaster</code>
*/
@Public
@Stable
String getFinalState();
- @Private
- @Unstable
- void setFinalState(String string);
+ /**
+ * Set <em>final state</em> of the <code>ApplicationMaster</code>
+ * @param finalState <em>final state</em> of the <code>ApplicationMaster</code>
+ */
+ @Public
+ @Stable
+ void setFinalState(String finalState);
/**
- * Get diagnostic information if the application failed.
- * @return diagnostic information if the application failed
+ * Get <em>diagnostic information</em> on application failure.
+ * @return <em>diagnostic information</em> on application failure
*/
@Public
@Stable
String getDiagnostics();
- @Private
- @Unstable
- void setDiagnostics(String string);
+ /**
+ * Set <em>diagnostic information</em> on application failure.
+ * @param diagnostics <em>diagnostic information</em> on application failure
+ */
+ @Public
+ @Stable
+ void setDiagnostics(String diagnostics);
/**
- * Get the tracking URL for the <code>ApplicationMaster</code>.
- * @return the tracking URL for the <code>ApplicationMaster</code>
+ * Get the <em>tracking URL</em> for the <code>ApplicationMaster</code>.
+ * @return <em>tracking URL</em>for the <code>ApplicationMaster</code>
*/
@Public
@Stable
String getTrackingUrl();
- @Private
- @Unstable
- void setTrackingUrl(String historyUrl);
+ /**
+ * Set the <em>tracking URL</em>for the <code>ApplicationMaster</code>
+ * @param url <em>tracking URL</em>for the
+ * <code>ApplicationMaster</code>
+ */
+ @Public
+ @Stable
+ void setTrackingUrl(String url);
}
Modified: hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/FinishApplicationMasterResponse.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/FinishApplicationMasterResponse.java?rev=1163069&r1=1163068&r2=1163069&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/FinishApplicationMasterResponse.java (original)
+++ hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/FinishApplicationMasterResponse.java Tue Aug 30 01:22:28 2011
@@ -24,11 +24,11 @@ import org.apache.hadoop.yarn.api.AMRMPr
/**
* <p>The response sent by the <code>ResourceManager</code> to a
- * <code>ApplicationMaster</code> on it's completion via the
- * {@link AMRMProtocol#finishApplicationMaster(FinishApplicationMasterRequest)}
- * api.</p>
+ * <code>ApplicationMaster</code> on it's completion.</p>
*
* <p>Currently, this is empty.</p>
+ *
+ * @see AMRMProtocol#finishApplicationMaster(FinishApplicationMasterRequest)
*/
@Public
@Stable
Modified: hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/FinishApplicationRequest.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/FinishApplicationRequest.java?rev=1163069&r1=1163068&r2=1163069&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/FinishApplicationRequest.java (original)
+++ hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/FinishApplicationRequest.java Tue Aug 30 01:22:28 2011
@@ -18,10 +18,34 @@
package org.apache.hadoop.yarn.api.protocolrecords;
+import org.apache.hadoop.classification.InterfaceAudience.Private;
+import org.apache.hadoop.classification.InterfaceAudience.Public;
+import org.apache.hadoop.classification.InterfaceStability.Stable;
+import org.apache.hadoop.classification.InterfaceStability.Unstable;
+import org.apache.hadoop.yarn.api.ClientRMProtocol;
import org.apache.hadoop.yarn.api.records.ApplicationId;
+/**
+ * <p>The request sent by the client to the <code>ResourceManager</code>
+ * to abort a submitted application.</p>
+ *
+ * <p>The request includes the {@link ApplicationId} of the application to be
+ * aborted.</p>
+ *
+ * @see ClientRMProtocol#finishApplication(FinishApplicationRequest)
+ */
+@Public
+@Stable
public interface FinishApplicationRequest {
+ /**
+ * Get the <code>ApplicationId</code> of the application to be aborted.
+ * @return <code>ApplicationId</code> of the application to be aborted
+ */
+ @Public
+ @Stable
public abstract ApplicationId getApplicationId();
+ @Private
+ @Unstable
public abstract void setApplicationId(ApplicationId applicationId);
}
Modified: hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/FinishApplicationResponse.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/FinishApplicationResponse.java?rev=1163069&r1=1163068&r2=1163069&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/FinishApplicationResponse.java (original)
+++ hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/FinishApplicationResponse.java Tue Aug 30 01:22:28 2011
@@ -18,6 +18,20 @@
package org.apache.hadoop.yarn.api.protocolrecords;
+import org.apache.hadoop.classification.InterfaceAudience.Public;
+import org.apache.hadoop.classification.InterfaceStability.Stable;
+import org.apache.hadoop.yarn.api.ClientRMProtocol;
+
+/**
+ * <p>The response sent by the <code>ResourceManager</code> to the client
+ * aborting a submitted application.</p>
+ *
+ * <p>Currently it's empty.</p>
+ *
+ * @see ClientRMProtocol#finishApplication(FinishApplicationRequest)
+ */
+@Public
+@Stable
public interface FinishApplicationResponse {
}
Modified: hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetAllApplicationsRequest.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetAllApplicationsRequest.java?rev=1163069&r1=1163068&r2=1163069&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetAllApplicationsRequest.java (original)
+++ hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetAllApplicationsRequest.java Tue Aug 30 01:22:28 2011
@@ -18,5 +18,17 @@
package org.apache.hadoop.yarn.api.protocolrecords;
+import org.apache.hadoop.classification.InterfaceAudience.Public;
+import org.apache.hadoop.classification.InterfaceStability.Stable;
+import org.apache.hadoop.yarn.api.ClientRMProtocol;
+
+/**
+ * <p>The request from clients to get a report of all Applications
+ * in the cluster from the <code>ResourceManager</code>.</p>
+ *
+ * @see ClientRMProtocol#getAllApplications(GetAllApplicationsRequest)
+ */
+@Public
+@Stable
public interface GetAllApplicationsRequest {
}
Modified: hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetAllApplicationsResponse.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetAllApplicationsResponse.java?rev=1163069&r1=1163068&r2=1163069&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetAllApplicationsResponse.java (original)
+++ hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetAllApplicationsResponse.java Tue Aug 30 01:22:28 2011
@@ -20,9 +20,36 @@ package org.apache.hadoop.yarn.api.proto
import java.util.List;
+import org.apache.hadoop.classification.InterfaceAudience.Private;
+import org.apache.hadoop.classification.InterfaceAudience.Public;
+import org.apache.hadoop.classification.InterfaceStability.Stable;
+import org.apache.hadoop.classification.InterfaceStability.Unstable;
+import org.apache.hadoop.yarn.api.ClientRMProtocol;
import org.apache.hadoop.yarn.api.records.ApplicationReport;
+/**
+ * <p>The response sent by the <code>ResourceManager</code> to a client
+ * requesting an {@link ApplicationReport} for all applications.</p>
+ *
+ * <p>The <code>ApplicationReport</code> for each application includes details
+ * such as user, queue, name, host on which the <code>ApplicationMaster</code>
+ * is running, RPC port, tracking URL, diagnostics, start time etc.</p>
+ *
+ * @see ApplicationReport
+ * @see ClientRMProtocol#getAllApplications(GetAllApplicationsRequest)
+ */
+@Public
+@Stable
public interface GetAllApplicationsResponse {
+ /**
+ * Get <code>ApplicationReport</code> for all applications.
+ * @return <code>ApplicationReport</code> for all applications
+ */
+ @Public
+ @Stable
List<ApplicationReport> getApplicationList();
+
+ @Private
+ @Unstable
void setApplicationList(List<ApplicationReport> applications);
}
Modified: hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetApplicationReportRequest.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetApplicationReportRequest.java?rev=1163069&r1=1163068&r2=1163069&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetApplicationReportRequest.java (original)
+++ hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetApplicationReportRequest.java Tue Aug 30 01:22:28 2011
@@ -18,9 +18,34 @@
package org.apache.hadoop.yarn.api.protocolrecords;
+import org.apache.hadoop.classification.InterfaceAudience.Public;
+import org.apache.hadoop.classification.InterfaceStability.Stable;
+import org.apache.hadoop.yarn.api.ClientRMProtocol;
import org.apache.hadoop.yarn.api.records.ApplicationId;
+import org.apache.hadoop.yarn.api.records.ApplicationReport;
+/**
+ * <p>The request sent by a client to the <code>ResourceManager</code> to
+ * get an {@link ApplicationReport} for an application.</p>
+ *
+ * <p>The request should include the {@link ApplicationId} of the
+ * application.</p>
+ *
+ * @see ClientRMProtocol#getApplicationReport(GetApplicationReportRequest)
+ * @see ApplicationReport
+ */
+@Public
+@Stable
public interface GetApplicationReportRequest {
- public abstract ApplicationId getApplicationId();
- public abstract void setApplicationId(ApplicationId applicationId);
+ /**
+ * Get the <code>ApplicationId</code> of the application.
+ * @return <code>ApplicationId</code> of the application
+ */
+ public ApplicationId getApplicationId();
+
+ /**
+ * Set the <code>ApplicationId</code> of the application
+ * @param applicationId <code>ApplicationId</code> of the application
+ */
+ public void setApplicationId(ApplicationId applicationId);
}
Modified: hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetApplicationReportResponse.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetApplicationReportResponse.java?rev=1163069&r1=1163068&r2=1163069&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetApplicationReportResponse.java (original)
+++ hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetApplicationReportResponse.java Tue Aug 30 01:22:28 2011
@@ -18,9 +18,35 @@
package org.apache.hadoop.yarn.api.protocolrecords;
+import org.apache.hadoop.classification.InterfaceAudience.Private;
+import org.apache.hadoop.classification.InterfaceAudience.Public;
+import org.apache.hadoop.classification.InterfaceStability.Stable;
+import org.apache.hadoop.classification.InterfaceStability.Unstable;
+import org.apache.hadoop.yarn.api.ClientRMProtocol;
import org.apache.hadoop.yarn.api.records.ApplicationReport;
+/**
+ * <p>The response sent by the <code>ResourceManager</code> to a client
+ * requesting an application report.</p>
+ *
+ * <p>The response includes an {@link ApplicationReport} which has details such
+ * as user, queue, name, host on which the <code>ApplicationMaster</code> is
+ * running, RPC port, tracking URL, diagnostics, start time etc.</p>
+ *
+ * @see ClientRMProtocol#getApplicationReport(GetApplicationReportRequest)
+ */
+@Public
+@Stable
public interface GetApplicationReportResponse {
- public abstract ApplicationReport getApplicationReport();
- public abstract void setApplicationReport(ApplicationReport ApplicationReport);
+ /**
+ * Get the <code>ApplicationReport</code> for the application.
+ * @return <code>ApplicationReport</code> for the application
+ */
+ @Public
+ @Stable
+ public ApplicationReport getApplicationReport();
+
+ @Private
+ @Unstable
+ public void setApplicationReport(ApplicationReport ApplicationReport);
}
Modified: hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetClusterMetricsRequest.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetClusterMetricsRequest.java?rev=1163069&r1=1163068&r2=1163069&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetClusterMetricsRequest.java (original)
+++ hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetClusterMetricsRequest.java Tue Aug 30 01:22:28 2011
@@ -18,6 +18,18 @@
package org.apache.hadoop.yarn.api.protocolrecords;
+import org.apache.hadoop.classification.InterfaceAudience.Public;
+import org.apache.hadoop.classification.InterfaceStability.Stable;
+import org.apache.hadoop.yarn.api.ClientRMProtocol;
+
+/**
+ * <p>The request sent by clients to get cluster metrics from the
+ * <code>ResourceManager</code>.</p>
+ *
+ * @see ClientRMProtocol#getClusterMetrics(GetClusterMetricsRequest)
+ */
+@Public
+@Stable
public interface GetClusterMetricsRequest {
}
Modified: hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetClusterMetricsResponse.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetClusterMetricsResponse.java?rev=1163069&r1=1163068&r2=1163069&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetClusterMetricsResponse.java (original)
+++ hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetClusterMetricsResponse.java Tue Aug 30 01:22:28 2011
@@ -18,9 +18,32 @@
package org.apache.hadoop.yarn.api.protocolrecords;
+import org.apache.hadoop.classification.InterfaceAudience.Private;
+import org.apache.hadoop.classification.InterfaceAudience.Public;
+import org.apache.hadoop.classification.InterfaceStability.Stable;
+import org.apache.hadoop.classification.InterfaceStability.Unstable;
+import org.apache.hadoop.yarn.api.ClientRMProtocol;
import org.apache.hadoop.yarn.api.records.YarnClusterMetrics;
+/**
+ * <p>The response sent by the <code>ResourceManager</code> to a client
+ * requesting cluster metrics.<p>
+ *
+ * @see YarnClusterMetrics
+ * @see ClientRMProtocol#getClusterMetrics(GetClusterMetricsRequest)
+ */
+@Public
+@Stable
public interface GetClusterMetricsResponse {
- public abstract YarnClusterMetrics getClusterMetrics();
- public abstract void setClusterMetrics(YarnClusterMetrics metrics);
+ /**
+ * Get the <code>YarnClusterMetrics</code> for the cluster.
+ * @return <code>YarnClusterMetrics</code> for the cluster
+ */
+ @Public
+ @Stable
+ public YarnClusterMetrics getClusterMetrics();
+
+ @Private
+ @Unstable
+ public void setClusterMetrics(YarnClusterMetrics metrics);
}
Modified: hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetClusterNodesRequest.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetClusterNodesRequest.java?rev=1163069&r1=1163068&r2=1163069&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetClusterNodesRequest.java (original)
+++ hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetClusterNodesRequest.java Tue Aug 30 01:22:28 2011
@@ -18,6 +18,18 @@
package org.apache.hadoop.yarn.api.protocolrecords;
+import org.apache.hadoop.classification.InterfaceAudience.Public;
+import org.apache.hadoop.classification.InterfaceStability.Stable;
+import org.apache.hadoop.yarn.api.ClientRMProtocol;
+
+/**
+ * <p>The request from clients to get a report of all nodes
+ * in the cluster from the <code>ResourceManager</code>.</p>
+ *
+ * @see ClientRMProtocol#getClusterNodes(GetClusterNodesRequest)
+ */
+@Public
+@Stable
public interface GetClusterNodesRequest {
}
Modified: hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetClusterNodesResponse.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetClusterNodesResponse.java?rev=1163069&r1=1163068&r2=1163069&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetClusterNodesResponse.java (original)
+++ hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetClusterNodesResponse.java Tue Aug 30 01:22:28 2011
@@ -20,9 +20,36 @@ package org.apache.hadoop.yarn.api.proto
import java.util.List;
+import org.apache.hadoop.classification.InterfaceAudience.Private;
+import org.apache.hadoop.classification.InterfaceAudience.Public;
+import org.apache.hadoop.classification.InterfaceStability.Stable;
+import org.apache.hadoop.classification.InterfaceStability.Unstable;
+import org.apache.hadoop.yarn.api.ClientRMProtocol;
import org.apache.hadoop.yarn.api.records.NodeReport;
+/**
+ * <p>The response sent by the <code>ResourceManager</code> to a client
+ * requesting an {@link NodeReport} for all nodes.</p>
+ *
+ * <p>The <code>NodeReport</code> contains per-node information such as
+ * available resources, number of containers, tracking url, rack name, health
+ * status etc.
+ *
+ * @see NodeReport
+ * @see ClientRMProtocol#getClusterNodes(GetClusterNodesRequest)
+ */
+@Public
+@Stable
public interface GetClusterNodesResponse {
+ /**
+ * Get <code>NodeReport</code> for all nodes in the cluster.
+ * @return <code>NodeReport</code> for all nodes in the cluster
+ */
+ @Public
+ @Stable
List<NodeReport> getNodeReports();
+
+ @Private
+ @Unstable
void setNodeReports(List<NodeReport> nodeReports);
}
Modified: hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetContainerStatusRequest.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetContainerStatusRequest.java?rev=1163069&r1=1163068&r2=1163069&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetContainerStatusRequest.java (original)
+++ hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetContainerStatusRequest.java Tue Aug 30 01:22:28 2011
@@ -18,18 +18,17 @@
package org.apache.hadoop.yarn.api.protocolrecords;
-import org.apache.hadoop.classification.InterfaceAudience.Private;
import org.apache.hadoop.classification.InterfaceAudience.Public;
import org.apache.hadoop.classification.InterfaceStability.Stable;
-import org.apache.hadoop.classification.InterfaceStability.Unstable;
import org.apache.hadoop.yarn.api.ContainerManager;
import org.apache.hadoop.yarn.api.records.ContainerId;
import org.apache.hadoop.yarn.api.records.ContainerStatus;
/**
* <p>The request sent by the <code>ApplicationMaster</code> to the
- * <code>NodeManager</code> to get {@link ContainerStatus} of a container via
- * {@link ContainerManager#getContainerStatus(GetContainerStatusRequest)}.</p>
+ * <code>NodeManager</code> to get {@link ContainerStatus} of a container.</p>
+ *
+ * @see ContainerManager#getContainerStatus(GetContainerStatusRequest)
*/
@Public
@Stable
@@ -44,7 +43,13 @@ public interface GetContainerStatusReque
@Stable
public abstract ContainerId getContainerId();
- @Private
- @Unstable
+ /**
+ * Set the <code>ContainerId</code> of container for which to obtain the
+ * <code>ContainerStatus</code>
+ * @param containerId <code>ContainerId</code> of container for which to
+ * obtain the <code>ContainerStatus</code>
+ */
+ @Public
+ @Stable
public abstract void setContainerId(ContainerId containerId);
}
Modified: hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetContainerStatusResponse.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetContainerStatusResponse.java?rev=1163069&r1=1163068&r2=1163069&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetContainerStatusResponse.java (original)
+++ hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetContainerStatusResponse.java Tue Aug 30 01:22:28 2011
@@ -28,8 +28,9 @@ import org.apache.hadoop.yarn.api.record
/**
* <p>The response sent by the <code>NodeManager</code> to the
* <code>ApplicationMaster</code> when asked to obtainer <em>status</em>
- * of a container via
- * {@link ContainerManager#getContainerStatus(GetContainerStatusRequest)}.</p>
+ * of a container.</p>
+ *
+ * @see ContainerManager#getContainerStatus(GetContainerStatusRequest)
*/
@Public
@Stable
Modified: hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetNewApplicationIdRequest.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetNewApplicationIdRequest.java?rev=1163069&r1=1163068&r2=1163069&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetNewApplicationIdRequest.java (original)
+++ hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetNewApplicationIdRequest.java Tue Aug 30 01:22:28 2011
@@ -18,6 +18,19 @@
package org.apache.hadoop.yarn.api.protocolrecords;
+import org.apache.hadoop.classification.InterfaceAudience.Public;
+import org.apache.hadoop.classification.InterfaceStability.Stable;
+import org.apache.hadoop.yarn.api.ClientRMProtocol;
+import org.apache.hadoop.yarn.api.records.ApplicationId;
+
+/**
+ * <p>The request sent by clients to get a new {@link ApplicationId} for
+ * submitting an application.</p>
+ *
+ * @see ClientRMProtocol#getNewApplicationId(GetNewApplicationIdRequest)
+ */
+@Public
+@Stable
public interface GetNewApplicationIdRequest {
}
Modified: hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetNewApplicationIdResponse.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetNewApplicationIdResponse.java?rev=1163069&r1=1163068&r2=1163069&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetNewApplicationIdResponse.java (original)
+++ hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetNewApplicationIdResponse.java Tue Aug 30 01:22:28 2011
@@ -18,9 +18,33 @@
package org.apache.hadoop.yarn.api.protocolrecords;
+import org.apache.hadoop.classification.InterfaceAudience.Private;
+import org.apache.hadoop.classification.InterfaceAudience.Public;
+import org.apache.hadoop.classification.InterfaceStability.Stable;
+import org.apache.hadoop.classification.InterfaceStability.Unstable;
+import org.apache.hadoop.yarn.api.ClientRMProtocol;
import org.apache.hadoop.yarn.api.records.ApplicationId;
+/**
+ * <p>The response sent by the <code>ResourceManager</code> to the client for
+ * a request to a new {@link ApplicationId} for submitting applications.</p>
+ *
+ * @see ClientRMProtocol#getNewApplicationId(GetNewApplicationIdRequest)
+ */
+@Public
+@Stable
public interface GetNewApplicationIdResponse {
+ /**
+ * Get the <em>new</em> <code>ApplicationId</code> allocated by the
+ * <code>ResourceManager</code>.
+ * @return <em>new</em> <code>ApplicationId</code> allocated by the
+ * <code>ResourceManager</code>
+ */
+ @Public
+ @Stable
public abstract ApplicationId getApplicationId();
+
+ @Private
+ @Unstable
public abstract void setApplicationId(ApplicationId applicationId);
}
Modified: hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetQueueInfoRequest.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetQueueInfoRequest.java?rev=1163069&r1=1163068&r2=1163069&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetQueueInfoRequest.java (original)
+++ hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetQueueInfoRequest.java Tue Aug 30 01:22:28 2011
@@ -18,17 +18,70 @@
package org.apache.hadoop.yarn.api.protocolrecords;
+import org.apache.hadoop.classification.InterfaceAudience.Public;
+import org.apache.hadoop.classification.InterfaceStability.Stable;
+import org.apache.hadoop.yarn.api.ClientRMProtocol;
+
+/**
+ * <p>The request sent by clients to get <em>queue information</em>
+ * from the <code>ResourceManager</code>.</p>
+ *
+ * @see ClientRMProtocol#getQueueInfo(GetQueueInfoRequest)
+ */
+@Public
+@Stable
public interface GetQueueInfoRequest {
+ /**
+ * Get the <em>queue name</em> for which to get queue information.
+ * @return <em>queue name</em> for which to get queue information
+ */
String getQueueName();
+
+ /**
+ * Set the <em>queue name</em> for which to get queue information
+ * @param queueName <em>queue name</em> for which to get queue information
+ */
void setQueueName(String queueName);
+ /**
+ * Is information about <em>active applications<e/m> required?
+ * @return <code>true</code> if applications' information is to be included,
+ * else <code>false</code>
+ */
boolean getIncludeApplications();
+
+ /**
+ * Should we get fetch information about <em>active applications</em>?
+ * @param includeApplications fetch information about <em>active
+ * applications</em>?
+ */
void setIncludeApplications(boolean includeApplications);
+ /**
+ * Is information about <em>child queues</em> required?
+ * @return <code>true</code> if information about child queues is required,
+ * else <code>false</code>
+ */
boolean getIncludeChildQueues();
+
+ /**
+ * Should we fetch information about <em>child queues</em>?
+ * @param includeChildQueues fetch information about <em>child queues</em>?
+ */
void setIncludeChildQueues(boolean includeChildQueues);
+ /**
+ * Is information on the entire <em>child queue hierarchy</em> required?
+ * @return <code>true</code> if information about entire hierarchy is
+ * required, <code>false</code> otherwise
+ */
boolean getRecursive();
+
+ /**
+ * Should we fetch information on the entire <em>child queue hierarchy</em>?
+ * @param recursive fetch information on the entire <em>child queue
+ * hierarchy</em>?
+ */
void setRecursive(boolean recursive);
}
Modified: hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetQueueInfoResponse.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetQueueInfoResponse.java?rev=1163069&r1=1163068&r2=1163069&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetQueueInfoResponse.java (original)
+++ hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetQueueInfoResponse.java Tue Aug 30 01:22:28 2011
@@ -18,9 +18,34 @@
package org.apache.hadoop.yarn.api.protocolrecords;
+import org.apache.hadoop.classification.InterfaceAudience.Private;
+import org.apache.hadoop.classification.InterfaceAudience.Public;
+import org.apache.hadoop.classification.InterfaceStability.Stable;
+import org.apache.hadoop.classification.InterfaceStability.Unstable;
+import org.apache.hadoop.yarn.api.ClientRMProtocol;
import org.apache.hadoop.yarn.api.records.QueueInfo;
+/**
+ * <p>The response sent by the <code>ResourceManager</code> to a client
+ * requesting information about queues in the system.</p>
+ *
+ * <p>The response includes a {@link QueueInfo} which has details such as
+ * queue name, used/total capacities, running applications, child queues etc
+ * .</p>
+ *
+ * @see QueueInfo
+ * @see ClientRMProtocol#getQueueInfo(GetQueueInfoRequest)
+ */
+@Public
+@Stable
public interface GetQueueInfoResponse {
+ /**
+ * Get the <code>QueueInfo</code> for the specified queue.
+ * @return <code>QueueInfo</code> for the specified queue
+ */
QueueInfo getQueueInfo();
+
+ @Private
+ @Unstable
void setQueueInfo(QueueInfo queueInfo);
}
Modified: hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetQueueUserAclsInfoRequest.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetQueueUserAclsInfoRequest.java?rev=1163069&r1=1163068&r2=1163069&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetQueueUserAclsInfoRequest.java (original)
+++ hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetQueueUserAclsInfoRequest.java Tue Aug 30 01:22:28 2011
@@ -18,6 +18,18 @@
package org.apache.hadoop.yarn.api.protocolrecords;
+import org.apache.hadoop.classification.InterfaceAudience.Public;
+import org.apache.hadoop.classification.InterfaceStability.Stable;
+import org.apache.hadoop.yarn.api.ClientRMProtocol;
+
+/**
+ * <p>The request sent by clients to the <code>ResourceManager</code> to
+ * get queue acls for the <em>current user</em>.</p>
+ *
+ * @see ClientRMProtocol#getQueueUserAcls(GetQueueUserAclsInfoRequest)
+ */
+@Public
+@Stable
public interface GetQueueUserAclsInfoRequest {
}
Modified: hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetQueueUserAclsInfoResponse.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetQueueUserAclsInfoResponse.java?rev=1163069&r1=1163068&r2=1163069&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetQueueUserAclsInfoResponse.java (original)
+++ hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetQueueUserAclsInfoResponse.java Tue Aug 30 01:22:28 2011
@@ -20,12 +20,39 @@ package org.apache.hadoop.yarn.api.proto
import java.util.List;
+import org.apache.hadoop.classification.InterfaceAudience.Private;
+import org.apache.hadoop.classification.InterfaceAudience.Public;
+import org.apache.hadoop.classification.InterfaceStability.Stable;
+import org.apache.hadoop.classification.InterfaceStability.Unstable;
+import org.apache.hadoop.yarn.api.ClientRMProtocol;
+import org.apache.hadoop.yarn.api.records.QueueACL;
import org.apache.hadoop.yarn.api.records.QueueUserACLInfo;
+/**
+ * <p>The response sent by the <code>ResourceManager</code> to clients
+ * seeking queue acls for the user.</p>
+ *
+ * <p>The response contains a list of {@link QueueUserACLInfo} which
+ * provides information about {@link QueueACL} per queue.</p>
+ *
+ * @see QueueACL
+ * @see QueueUserACLInfo
+ * @see ClientRMProtocol#getQueueUserAcls(GetQueueUserAclsInfoRequest)
+ */
+@Public
+@Stable
public interface GetQueueUserAclsInfoResponse {
+ /**
+ * Get the <code>QueueUserACLInfo</code> per queue for the user.
+ * @return <code>QueueUserACLInfo</code> per queue for the user
+ */
+ @Public
+ @Stable
public List<QueueUserACLInfo> getUserAclsInfoList();
+ @Private
+ @Unstable
public void setUserAclsInfoList(List<QueueUserACLInfo> queueUserAclsList);
}
Modified: hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/RegisterApplicationMasterRequest.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/RegisterApplicationMasterRequest.java?rev=1163069&r1=1163068&r2=1163069&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/RegisterApplicationMasterRequest.java (original)
+++ hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/RegisterApplicationMasterRequest.java Tue Aug 30 01:22:28 2011
@@ -27,9 +27,7 @@ import org.apache.hadoop.yarn.api.record
/**
* <p>The request sent by the <code>ApplicationMaster</code> to
- * <code>ResourceManager</code> on registration via the
- * {@link AMRMProtocol#registerApplicationMaster(RegisterApplicationMasterRequest)}
- * api.</p>
+ * <code>ResourceManager</code> on registration.</p>
*
* <p>The registration includes details such as:
* <ul>
@@ -42,13 +40,15 @@ import org.apache.hadoop.yarn.api.record
* <li>Tracking URL</li>
* </ul>
* </p>
+ *
+ * @see AMRMProtocol#registerApplicationMaster(RegisterApplicationMasterRequest)
*/
@Public
@Stable
public interface RegisterApplicationMasterRequest {
/**
- * Get the {@link ApplicationAttemptId} being managed by the
+ * Get the <code>ApplicationAttemptId</code> being managed by the
* <code>ApplicationMaster</code>.
* @return <code>ApplicationAttemptId</code> being managed by the
* <code>ApplicationMaster</code>
@@ -57,44 +57,69 @@ public interface RegisterApplicationMast
@Stable
ApplicationAttemptId getApplicationAttemptId();
- @Private
- @Unstable
+ /**
+ * Set the <code>ApplicationAttemptId</code> being managed by the
+ * <code>ApplicationMaster</code>.
+ * @param applicationAttemptId <code>ApplicationAttemptId</code> being managed
+ * by the <code>ApplicationMaster</code>
+ */
+ @Public
+ @Stable
void setApplicationAttemptId(ApplicationAttemptId applicationAttemptId);
/**
- * Get the host on which the <code>ApplicationMaster</code> is running.
- * @return host on which the <code>ApplicationMaster</code> is running
+ * Get the <em>host</em> on which the <code>ApplicationMaster</code> is
+ * running.
+ * @return <em>host</em> on which the <code>ApplicationMaster</code> is running
*/
@Public
@Stable
String getHost();
+ /**
+ * Set the <em>host</em> on which the <code>ApplicationMaster</code> is
+ * running.
+ * @param host <em>host</em> on which the <code>ApplicationMaster</code>
+ * is running
+ */
@Private
@Unstable
void setHost(String host);
/**
- * Get the RPC port on which the <code>ApplicationMaster</code> is responding.
- * @return the RPC port on which the <code>ApplicationMaster</code> is
+ * Get the <em>RPC port</em> on which the <code>ApplicationMaster</code>
+ * is responding.
+ * @return the <em>RPC port<em> on which the <code>ApplicationMaster</code> is
* responding
*/
@Public
@Stable
int getRpcPort();
- @Private
- @Unstable
+ /**
+ * Set the <em>RPC port<em> on which the <code>ApplicationMaster</code> is
+ * responding.
+ * @param port <em>RPC port<em> on which the <code>ApplicationMaster</code> is
+ * responding
+ */
+ @Public
+ @Stable
void setRpcPort(int port);
/**
- * Get the tracking URL for the <code>ApplicationMaster</code>.
- * @return the tracking URL for the <code>ApplicationMaster</code>
+ * Get the <em>tracking URL</em> for the <code>ApplicationMaster</code>.
+ * @return <em>tracking URL</em> for the <code>ApplicationMaster</code>
*/
@Public
@Stable
String getTrackingUrl();
- @Private
- @Unstable
- void setTrackingUrl(String string);
+ /**
+ * Set the <em>tracking URL</em> for the <code>ApplicationMaster</code>.
+ * @param trackingUrl <em>tracking URL</em> for the
+ * <code>ApplicationMaster</code>
+ */
+ @Public
+ @Stable
+ void setTrackingUrl(String trackingUrl);
}
Modified: hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/RegisterApplicationMasterResponse.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/RegisterApplicationMasterResponse.java?rev=1163069&r1=1163068&r2=1163069&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/RegisterApplicationMasterResponse.java (original)
+++ hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/RegisterApplicationMasterResponse.java Tue Aug 30 01:22:28 2011
@@ -27,9 +27,7 @@ import org.apache.hadoop.yarn.api.record
/**
* <p>The response sent by the <code>ResourceManager</code> to a new
- * <code>ApplicationMaster</code> on registration via the
- * {@link AMRMProtocol#registerApplicationMaster(RegisterApplicationMasterRequest)}
- * api.</p>
+ * <code>ApplicationMaster</code> on registration.</p>
*
* <p>The response contains critical details such as:
* <ul>
@@ -37,6 +35,8 @@ import org.apache.hadoop.yarn.api.record
* <li>Maximum capability for allocated resources in the cluster.</li>
* </ul>
* </p>
+ *
+ * @see AMRMProtocol#registerApplicationMaster(RegisterApplicationMasterRequest)
*/
@Public
@Stable
Modified: hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/StartContainerRequest.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/StartContainerRequest.java?rev=1163069&r1=1163068&r2=1163069&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/StartContainerRequest.java (original)
+++ hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/StartContainerRequest.java Tue Aug 30 01:22:28 2011
@@ -18,17 +18,14 @@
package org.apache.hadoop.yarn.api.protocolrecords;
-import org.apache.hadoop.classification.InterfaceAudience.Private;
import org.apache.hadoop.classification.InterfaceAudience.Public;
import org.apache.hadoop.classification.InterfaceStability.Stable;
-import org.apache.hadoop.classification.InterfaceStability.Unstable;
import org.apache.hadoop.yarn.api.ContainerManager;
import org.apache.hadoop.yarn.api.records.ContainerLaunchContext;
/**
* <p>The request sent by the <code>ApplicationMaster</code> to the
- * <code>NodeManager</code> to <em>start</em> a container via
- * {@link ContainerManager#startContainer(StartContainerRequest)}.</p>
+ * <code>NodeManager</code> to <em>start</em> a container.</p>
*
* <p>The <code>ApplicationMaster</code> has to provide details such as
* allocated resource capability, security tokens (if enabled), command
@@ -36,6 +33,7 @@ import org.apache.hadoop.yarn.api.record
* necessary binaries/jar/shared-objects etc. via the
* {@link ContainerLaunchContext}.</p>
*
+ * @see ContainerManager#startContainer(StartContainerRequest)
*/
@Public
@Stable
@@ -51,7 +49,13 @@ public interface StartContainerRequest {
@Stable
public abstract ContainerLaunchContext getContainerLaunchContext();
- @Private
- @Unstable
+ /**
+ * Set the <code>ContainerLaunchContext</code> for the container to be started
+ * by the <code>NodeManager</code>
+ * @param context <code>ContainerLaunchContext</code> for the container to be
+ * started by the <code>NodeManager</code>
+ */
+ @Public
+ @Stable
public abstract void setContainerLaunchContext(ContainerLaunchContext context);
}
Modified: hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/StartContainerResponse.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/StartContainerResponse.java?rev=1163069&r1=1163068&r2=1163069&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/StartContainerResponse.java (original)
+++ hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/StartContainerResponse.java Tue Aug 30 01:22:28 2011
@@ -25,8 +25,9 @@ import org.apache.hadoop.yarn.api.Contai
/**
* <p>The response sent by the <code>NodeManager</code> to the
* <code>ApplicationMaster</code> when asked to <em>start</em> an
- * allocated container via
- * {@link ContainerManager#startContainer(StartContainerRequest)}.</p>
+ * allocated container.</p>
+ *
+ * @see ContainerManager#startContainer(StartContainerRequest)
*/
@Public
@Stable
Modified: hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/StopContainerRequest.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/StopContainerRequest.java?rev=1163069&r1=1163068&r2=1163069&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/StopContainerRequest.java (original)
+++ hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/StopContainerRequest.java Tue Aug 30 01:22:28 2011
@@ -18,17 +18,16 @@
package org.apache.hadoop.yarn.api.protocolrecords;
-import org.apache.hadoop.classification.InterfaceAudience.Private;
import org.apache.hadoop.classification.InterfaceAudience.Public;
import org.apache.hadoop.classification.InterfaceStability.Stable;
-import org.apache.hadoop.classification.InterfaceStability.Unstable;
import org.apache.hadoop.yarn.api.ContainerManager;
import org.apache.hadoop.yarn.api.records.ContainerId;
/**
* <p>The request sent by the <code>ApplicationMaster</code> to the
- * <code>NodeManager</code> to <em>stop</em> a container via
- * {@link ContainerManager#stopContainer(StopContainerRequest)}.</p>
+ * <code>NodeManager</code> to <em>stop</em> a container.</p>
+ *
+ * @see ContainerManager#stopContainer(StopContainerRequest)
*/
@Public
@Stable
@@ -41,7 +40,11 @@ public interface StopContainerRequest {
@Stable
ContainerId getContainerId();
- @Private
- @Unstable
+ /**
+ * Set the <code>ContainerId</code> of the container to be stopped.
+ * @param containerId <code>ContainerId</code> of the container to be stopped
+ */
+ @Public
+ @Stable
void setContainerId(ContainerId containerId);
}
Modified: hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/StopContainerResponse.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/StopContainerResponse.java?rev=1163069&r1=1163068&r2=1163069&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/StopContainerResponse.java (original)
+++ hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/StopContainerResponse.java Tue Aug 30 01:22:28 2011
@@ -25,8 +25,9 @@ import org.apache.hadoop.yarn.api.Contai
/**
* <p>The response sent by the <code>NodeManager</code> to the
* <code>ApplicationMaster</code> when asked to <em>stop</em> an
- * allocated container via
- * {@link ContainerManager#stopContainer(StopContainerRequest)}.</p>
+ * allocated container.</p>
+ *
+ * @see ContainerManager#stopContainer(StopContainerRequest)
*/
@Public
@Stable
Modified: hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/SubmitApplicationRequest.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/SubmitApplicationRequest.java?rev=1163069&r1=1163068&r2=1163069&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/SubmitApplicationRequest.java (original)
+++ hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/SubmitApplicationRequest.java Tue Aug 30 01:22:28 2011
@@ -18,9 +18,43 @@
package org.apache.hadoop.yarn.api.protocolrecords;
+import org.apache.hadoop.classification.InterfaceAudience.Public;
+import org.apache.hadoop.classification.InterfaceStability.Stable;
+import org.apache.hadoop.yarn.api.ClientRMProtocol;
import org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext;
+import org.apache.hadoop.yarn.api.records.ContainerLaunchContext;
+import org.apache.hadoop.yarn.api.records.Resource;
+/**
+ * <p>The request sent by a client to <em>submit an application</em> to the
+ * <code>ResourceManager</code>.</p>
+ *
+ * <p>The request, via {@link ApplicationSubmissionContext}, contains
+ * details such as queue, {@link Resource} required to run the
+ * <code>ApplicationMaster</code>, the equivalent of
+ * {@link ContainerLaunchContext} for launching the
+ * <code>ApplicationMaster</code> etc.
+ *
+ * @see ClientRMProtocol#submitApplication(SubmitApplicationRequest)
+ */
+@Public
+@Stable
public interface SubmitApplicationRequest {
+ /**
+ * Get the <code>ApplicationSubmissionContext</code> for the application.
+ * @return <code>ApplicationSubmissionContext</code> for the application
+ */
+ @Public
+ @Stable
public abstract ApplicationSubmissionContext getApplicationSubmissionContext();
- public abstract void setApplicationSubmissionContext(ApplicationSubmissionContext context);
+
+ /**
+ * Set the <code>ApplicationSubmissionContext</code> for the application.
+ * @param context <code>ApplicationSubmissionContext</code> for the
+ * application
+ */
+ @Public
+ @Stable
+ public abstract void setApplicationSubmissionContext(
+ ApplicationSubmissionContext context);
}
Modified: hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/SubmitApplicationResponse.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/SubmitApplicationResponse.java?rev=1163069&r1=1163068&r2=1163069&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/SubmitApplicationResponse.java (original)
+++ hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/SubmitApplicationResponse.java Tue Aug 30 01:22:28 2011
@@ -18,6 +18,18 @@
package org.apache.hadoop.yarn.api.protocolrecords;
+import org.apache.hadoop.classification.InterfaceAudience.Public;
+import org.apache.hadoop.classification.InterfaceStability.Stable;
+import org.apache.hadoop.yarn.api.ClientRMProtocol;
+
+/**
+ * <p>The response sent by the <code>ResourceManager</code> to a client on
+ * application submission.</p>
+ *
+ * @see ClientRMProtocol#submitApplication(SubmitApplicationRequest)
+ */
+@Public
+@Stable
public interface SubmitApplicationResponse {
}
Modified: hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/AMResponse.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/AMResponse.java?rev=1163069&r1=1163068&r2=1163069&view=diff
==============================================================================
--- hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/AMResponse.java (original)
+++ hadoop/common/trunk/hadoop-mapreduce-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/AMResponse.java Tue Aug 30 01:22:28 2011
@@ -29,8 +29,7 @@ import org.apache.hadoop.yarn.api.protoc
/**
* <p>The response sent by the <code>ResourceManager</code> the
- * <code>ApplicationMaster</code> during resource negotiation via
- * {@link AMRMProtocol#allocate(AllocateRequest)}.</p>
+ * <code>ApplicationMaster</code> during resource negotiation.</p>
*
* <p>The response includes:
* <ul>
@@ -46,6 +45,8 @@ import org.apache.hadoop.yarn.api.protoc
* </li>
* </ul>
* </p>
+ *
+ * @see AMRMProtocol#allocate(AllocateRequest)
*/
@Public
@Unstable
@@ -67,8 +68,8 @@ public interface AMResponse {
public void setReboot(boolean reboot);
/**
- * Get the last response id.
- * @return the last response id
+ * Get the <em>last response id</em>.
+ * @return <em>last response id</em>
*/
@Public
@Stable
@@ -79,9 +80,9 @@ public interface AMResponse {
public void setResponseId(int responseId);
/**
- * Get the list of newly allocated {@link Container} by the
+ * Get the list of <em>newly allocated</em> <code>Container</code> by the
* <code>ResourceManager</code>.
- * @return list of newly allocated <code>Container</code>
+ * @return list of <em>newly allocated</em> <code>Container</code>
*/
@Public
@Stable
@@ -112,7 +113,10 @@ public interface AMResponse {
public void clearNewContainers();
/**
- * Get available headroom for resources in the cluster for the application.
+ * Get the <em>available headroom</em> for resources in the cluster for the
+ * application.
+ * @return limit available headroom for resources in the cluster for the
+ * application
*/
@Public
@Stable
@@ -123,8 +127,8 @@ public interface AMResponse {
public void setAvailableResources(Resource limit);
/**
- * Get the list of completed containers.
- * @return the list of completed containers
+ * Get the list of <em>completed containers</em>.
+ * @return the list of <em>completed containers</em>
*/
@Public
@Stable