diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/ApplicationBaseProtocol.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/ApplicationBaseProtocol.java
index 8234c2fb80..3e8c0d6964 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/ApplicationBaseProtocol.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/ApplicationBaseProtocol.java
@@ -94,8 +94,8 @@ public interface ApplicationBaseProtocol {
* @param request
* request for an application report
* @return application report
- * @throws YarnException
- * @throws IOException
+ * @throws YarnException exceptions from yarn servers.
+ * @throws IOException io error occur.
*/
@Public
@Stable
@@ -126,8 +126,8 @@ public GetApplicationReportResponse getApplicationReport(
* request for report on applications
* @return report on applications matching the given application types defined
* in the request
- * @throws YarnException
- * @throws IOException
+ * @throws YarnException exceptions from yarn servers.
+ * @throws IOException io error occur.
* @see GetApplicationsRequest
*/
@Public
@@ -166,8 +166,8 @@ public GetApplicationReportResponse getApplicationReport(
* @param request
* request for an application attempt report
* @return application attempt report
- * @throws YarnException
- * @throws IOException
+ * @throws YarnException exceptions from yarn servers.
+ * @throws IOException io error occur.
*/
@Public
@Unstable
@@ -199,8 +199,8 @@ public GetApplicationAttemptReportResponse getApplicationAttemptReport(
* @param request
* request for reports on all application attempts of an application
* @return reports on all application attempts of an application
- * @throws YarnException
- * @throws IOException
+ * @throws YarnException exceptions from yarn servers.
+ * @throws IOException io error occur.
*/
@Public
@Unstable
@@ -234,8 +234,8 @@ public GetApplicationAttemptsResponse getApplicationAttempts(
* @param request
* request for a container report
* @return container report
- * @throws YarnException
- * @throws IOException
+ * @throws YarnException exceptions from yarn servers.
+ * @throws IOException io error occur.
*/
@Public
@Unstable
@@ -271,8 +271,8 @@ public GetContainerReportResponse getContainerReport(
* @param request
* request for a list of container reports of an application attempt.
* @return reports on all containers of an application attempt
- * @throws YarnException
- * @throws IOException
+ * @throws YarnException exceptions from yarn servers.
+ * @throws IOException io error occur.
*/
@Public
@Unstable
@@ -293,8 +293,8 @@ public GetContainersResponse getContainers(GetContainersRequest request)
* @param request
* request to get a delegation token for the client.
* @return delegation token that can be used to talk to this service
- * @throws YarnException
- * @throws IOException
+ * @throws YarnException exceptions from yarn servers.
+ * @throws IOException io error occur.
*/
@Public
@Stable
@@ -308,8 +308,8 @@ public GetDelegationTokenResponse getDelegationToken(
* @param request
* the delegation token to be renewed.
* @return the new expiry time for the delegation token.
- * @throws YarnException
- * @throws IOException
+ * @throws YarnException exceptions from yarn servers.
+ * @throws IOException io error occur.
*/
@Private
@Unstable
@@ -323,8 +323,8 @@ public RenewDelegationTokenResponse renewDelegationToken(
* @param request
* the delegation token to be cancelled.
* @return an empty response.
- * @throws YarnException
- * @throws IOException
+ * @throws YarnException exceptions from yarn servers.
+ * @throws IOException io error occur.
*/
@Private
@Unstable
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/ApplicationClientProtocol.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/ApplicationClientProtocol.java
index 941a688134..fa742915ad 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/ApplicationClientProtocol.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/ApplicationClientProtocol.java
@@ -112,8 +112,8 @@ public interface ApplicationClientProtocol extends ApplicationBaseProtocol {
* @param request request to get a new ApplicationId
* @return response containing the new ApplicationId
to be used
* to submit an application
- * @throws YarnException
- * @throws IOException
+ * @throws YarnException exceptions from yarn servers.
+ * @throws IOException io error occur.
* @see #submitApplication(SubmitApplicationRequest)
*/
@Public
@@ -157,8 +157,8 @@ public GetNewApplicationResponse getNewApplication(
*
* @param request request to submit a new application
* @return (empty) response on accepting the submission
- * @throws YarnException
- * @throws IOException
+ * @throws YarnException exceptions from yarn servers.
+ * @throws IOException io error occur.
* @see #getNewApplication(GetNewApplicationRequest)
*/
@Public
@@ -184,8 +184,8 @@ public SubmitApplicationResponse submitApplication(
* @param request request to fail an attempt
* @return ResourceManager
returns an empty response
* on success and throws an exception on rejecting the request
- * @throws YarnException
- * @throws IOException
+ * @throws YarnException exceptions from yarn servers.
+ * @throws IOException io error occur.
* @see #getQueueUserAcls(GetQueueUserAclsInfoRequest)
*/
@Public
@@ -210,8 +210,8 @@ public FailApplicationAttemptResponse failApplicationAttempt(
* @param request request to abort a submitted application
* @return ResourceManager
returns an empty response
* on success and throws an exception on rejecting the request
- * @throws YarnException
- * @throws IOException
+ * @throws YarnException exceptions from yarn servers.
+ * @throws IOException io error occur.
* @see #getQueueUserAcls(GetQueueUserAclsInfoRequest)
*/
@Public
@@ -232,8 +232,8 @@ public KillApplicationResponse forceKillApplication(
*
* @param request request for cluster metrics
* @return cluster metrics
- * @throws YarnException
- * @throws IOException
+ * @throws YarnException exceptions from yarn servers.
+ * @throws IOException io error occur.
*/
@Public
@Stable
@@ -252,8 +252,8 @@ public GetClusterMetricsResponse getClusterMetrics(
*
* @param request request for report on all nodes
* @return report on all nodes
- * @throws YarnException
- * @throws IOException
+ * @throws YarnException exceptions from yarn servers.
+ * @throws IOException io error occur.
*/
@Public
@Stable
@@ -274,8 +274,8 @@ public GetClusterNodesResponse getClusterNodes(
*
* @param request request to get queue information
* @return queue information
- * @throws YarnException
- * @throws IOException
+ * @throws YarnException exceptions from yarn servers.
+ * @throws IOException io error occur.
*/
@Public
@Stable
@@ -294,8 +294,8 @@ public GetQueueInfoResponse getQueueInfo(
*
* @param request request to get queue acls for current user
* @return queue acls for current user
- * @throws YarnException
- * @throws IOException
+ * @throws YarnException exceptions from yarn servers.
+ * @throws IOException io error occur.
*/
@Public
@Stable
@@ -309,8 +309,8 @@ public GetQueueUserAclsInfoResponse getQueueUserAcls(
*
* @param request the application ID and the target queue
* @return an empty response
- * @throws YarnException
- * @throws IOException
+ * @throws YarnException exceptions from yarn servers.
+ * @throws IOException io error occur.
*/
@Public
@Unstable
@@ -383,7 +383,7 @@ GetNewReservationResponse getNewReservation(
* @return response the {@link ReservationId} on accepting the submission
* @throws YarnException if the request is invalid or reservation cannot be
* created successfully
- * @throws IOException
+ * @throws IOException io error occur.
*
*/
@Public
@@ -417,7 +417,7 @@ public ReservationSubmissionResponse submitReservation(
* @return response empty on successfully updating the existing reservation
* @throws YarnException if the request is invalid or reservation cannot be
* updated successfully
- * @throws IOException
+ * @throws IOException io error occur.
*
*/
@Public
@@ -439,7 +439,7 @@ public ReservationUpdateResponse updateReservation(
* @return response empty on successfully deleting the existing reservation
* @throws YarnException if the request is invalid or reservation cannot be
* deleted successfully
- * @throws IOException
+ * @throws IOException io error occur.
*
*/
@Public
@@ -494,13 +494,13 @@ ReservationListResponse listReservations(
/**
*
- * The interface used by client to get node to labels mappings in existing cluster + * The interface used by client to get node to labels mappings in existing cluster. *
* - * @param request + * @param request get node to labels request. * @return node to labels mappings - * @throws YarnException - * @throws IOException + * @throws YarnException exceptions from yarn servers. + * @throws IOException io error occur. */ @Public @Unstable @@ -510,13 +510,13 @@ public GetNodesToLabelsResponse getNodeToLabels( /** ** The interface used by client to get labels to nodes mappings - * in existing cluster + * in existing cluster. *
* - * @param request + * @param request get label to nodes request. * @return labels to nodes mappings - * @throws YarnException - * @throws IOException + * @throws YarnException exceptions from yarn servers. + * @throws IOException io error occur. */ @Public @Unstable @@ -530,8 +530,8 @@ public GetLabelsToNodesResponse getLabelsToNodes( * * @param request to get node labels collection of this cluster * @return node labels collection of this cluster - * @throws YarnException - * @throws IOException + * @throws YarnException exceptions from yarn servers. + * @throws IOException io error occur. */ @Public @Unstable @@ -544,8 +544,8 @@ public GetClusterNodeLabelsResponse getClusterNodeLabels( * * @param request to set priority of an application * @return an empty response - * @throws YarnException - * @throws IOException + * @throws YarnException exceptions from yarn servers. + * @throws IOException io error occur. */ @Public @Unstable @@ -573,8 +573,8 @@ public UpdateApplicationPriorityResponse updateApplicationPriority( * @param request request to signal a container * @returnResourceManager
returns an empty response
* on success and throws an exception on rejecting the request
- * @throws YarnException
- * @throws IOException
+ * @throws YarnException exceptions from yarn servers.
+ * @throws IOException io error occur.
*/
@Public
@Unstable
@@ -691,7 +691,7 @@ GetClusterNodeAttributesResponse getClusterNodeAttributes(
* @param request request to get nodes to attributes mapping.
* @return nodes to attributes mappings.
* @throws YarnException if any error happens inside YARN.
- * @throws IOException
+ * @throws IOException io error occur.
*/
@Public
@Unstable
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/ApplicationMasterProtocol.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/ApplicationMasterProtocol.java
index eb40fc7f3e..cc92239e5c 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/ApplicationMasterProtocol.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/ApplicationMasterProtocol.java
@@ -76,9 +76,9 @@ public interface ApplicationMasterProtocol {
*
*
* @param request registration request
- * @return registration respose
- * @throws YarnException
- * @throws IOException
+ * @return registration response
+ * @throws YarnException exceptions from yarn servers.
+ * @throws IOException io error occur.
* @throws InvalidApplicationMasterRequestException The exception is thrown
* when an ApplicationMaster tries to register more then once.
* @see RegisterApplicationMasterRequest
@@ -104,8 +104,8 @@ public RegisterApplicationMasterResponse registerApplicationMaster(
*
* @param request completion request
* @return completion response
- * @throws YarnException
- * @throws IOException
+ * @throws YarnException exceptions from yarn servers.
+ * @throws IOException io error occur.
* @see FinishApplicationMasterRequest
* @see FinishApplicationMasterResponse
*/
@@ -154,8 +154,8 @@ public FinishApplicationMasterResponse finishApplicationMaster(
* @param request
* allocation request
* @return allocation response
- * @throws YarnException
- * @throws IOException
+ * @throws YarnException exceptions from yarn servers.
+ * @throws IOException io error occur.
* @throws InvalidApplicationMasterRequestException
* This exception is thrown when an ApplicationMaster calls allocate
* without registering first.
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/ClientSCMProtocol.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/ClientSCMProtocol.java
index d63fa117f9..4fa524e932 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/ClientSCMProtocol.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/ClientSCMProtocol.java
@@ -55,8 +55,8 @@ public interface ClientSCMProtocol {
*
* @param request request to claim a resource in the shared cache
* @return response indicating if the resource is already in the cache
- * @throws YarnException
- * @throws IOException
+ * @throws YarnException exceptions from yarn servers.
+ * @throws IOException io error occur.
*/
public UseSharedCacheResourceResponse use(
UseSharedCacheResourceRequest request) throws YarnException, IOException;
@@ -81,8 +81,8 @@ public UseSharedCacheResourceResponse use(
*
* @param request request to release a resource in the shared cache
* @return (empty) response on releasing the resource
- * @throws YarnException
- * @throws IOException
+ * @throws YarnException exceptions from yarn servers.
+ * @throws IOException io error occur.
*/
public ReleaseSharedCacheResourceResponse release(
ReleaseSharedCacheResourceRequest request) throws YarnException, IOException;
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/ContainerManagementProtocol.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/ContainerManagementProtocol.java
index 0444440eba..9991248e66 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/ContainerManagementProtocol.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/ContainerManagementProtocol.java
@@ -102,8 +102,8 @@ public interface ContainerManagementProtocol {
* @return response including conatinerIds of all successfully launched
* containers, a containerId-to-exception map for failed requests and
* a allServicesMetaData map.
- * @throws YarnException
- * @throws IOException
+ * @throws YarnException exceptions from yarn servers.
+ * @throws IOException io error occur.
*/
@Public
@Stable
@@ -138,8 +138,8 @@ StartContainersResponse startContainers(StartContainersRequest request)
* @return response which includes a list of containerIds of successfully
* stopped containers, a containerId-to-exception map for failed
* requests.
- * @throws YarnException
- * @throws IOException
+ * @throws YarnException exceptions from yarn servers.
+ * @throws IOException io error occur.
*/
@Public
@Stable
@@ -174,8 +174,8 @@ StopContainersResponse stopContainers(StopContainersRequest request)
* successfully queried containers and a containerId-to-exception map
* for failed requests.
*
- * @throws YarnException
- * @throws IOException
+ * @throws YarnException exceptions from yarn servers.
+ * @throws IOException io error occur.
*/
@Public
@Stable
@@ -195,8 +195,8 @@ GetContainerStatusesResponse getContainerStatuses(
* whose resource has been successfully increased and a
* containerId-to-exception map for failed requests.
*
- * @throws YarnException
- * @throws IOException
+ * @throws YarnException exceptions from yarn servers.
+ * @throws IOException io error occur.
*/
@Public
@Unstable
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/CsiAdaptorPlugin.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/CsiAdaptorPlugin.java
index 26b45f7c31..6974dda318 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/CsiAdaptorPlugin.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/CsiAdaptorPlugin.java
@@ -36,7 +36,7 @@ public interface CsiAdaptorPlugin extends CsiAdaptorProtocol {
* customized configuration from yarn-site.xml.
* @param driverName the name of the csi-driver.
* @param conf configuration.
- * @throws YarnException
+ * @throws YarnException exceptions from yarn servers.
*/
void init(String driverName, Configuration conf) throws YarnException;
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/CsiAdaptorProtocol.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/CsiAdaptorProtocol.java
index 4e064eb219..f78345a5d4 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/CsiAdaptorProtocol.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/CsiAdaptorProtocol.java
@@ -39,8 +39,8 @@ public interface CsiAdaptorProtocol {
* the name of the driver and its version.
* @param request get plugin info request.
* @return response that contains driver name and its version.
- * @throws YarnException
- * @throws IOException
+ * @throws YarnException exceptions from yarn servers.
+ * @throws IOException io error occur.
*/
GetPluginInfoResponse getPluginInfo(GetPluginInfoRequest request)
throws YarnException, IOException;
@@ -51,8 +51,8 @@ GetPluginInfoResponse getPluginInfo(GetPluginInfoRequest request)
* or not, with a detailed message.
* @param request validate volume capability request.
* @return validation response.
- * @throws YarnException
- * @throws IOException
+ * @throws YarnException exceptions from yarn servers.
+ * @throws IOException io error occur.
*/
ValidateVolumeCapabilitiesResponse validateVolumeCapacity(
ValidateVolumeCapabilitiesRequest request) throws YarnException,
@@ -63,8 +63,8 @@ ValidateVolumeCapabilitiesResponse validateVolumeCapacity(
* to the local file system and become visible for clients.
* @param request publish volume request.
* @return publish volume response.
- * @throws YarnException
- * @throws IOException
+ * @throws YarnException exceptions from yarn servers.
+ * @throws IOException io error occur.
*/
NodePublishVolumeResponse nodePublishVolume(
NodePublishVolumeRequest request) throws YarnException, IOException;
@@ -75,8 +75,8 @@ NodePublishVolumeResponse nodePublishVolume(
* volume from given node.
* @param request un-publish volume request.
* @return un-publish volume response.
- * @throws YarnException
- * @throws IOException
+ * @throws YarnException exceptions from yarn servers.
+ * @throws IOException io error occur.
*/
NodeUnpublishVolumeResponse nodeUnpublishVolume(
NodeUnpublishVolumeRequest request) throws YarnException, IOException;
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/package-info.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/package-info.java
index d1f4ea75b7..9fe3696e52 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/package-info.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/package-info.java
@@ -1,4 +1,4 @@
-/*
+/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
@@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-@InterfaceAudience.Public
+@Public
package org.apache.hadoop.yarn.api;
-import org.apache.hadoop.classification.InterfaceAudience;
+import org.apache.hadoop.classification.InterfaceAudience.Public;
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetApplicationsRequest.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetApplicationsRequest.java
index 5a00fa93f0..37c7d8787c 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetApplicationsRequest.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetApplicationsRequest.java
@@ -137,6 +137,7 @@ public static GetApplicationsRequest newInstance(
*
*
* @see ApplicationClientProtocol#getApplications(GetApplicationsRequest)
+ * @param applicationTypes application types.
* @return a report of Applications in {@link GetApplicationsRequest}
*/
@Public
@@ -158,6 +159,7 @@ public static GetApplicationsRequest newInstance(
*
*
* @see ApplicationClientProtocol#getApplications(GetApplicationsRequest)
+ * @param applicationStates application states.
* @return a report of Applications in {@link GetApplicationsRequest}
*/
@Public
@@ -173,12 +175,14 @@ public static GetApplicationsRequest newInstance(
/**
*
* The request from clients to get a report of Applications matching the
- * giving and application types and application types in the cluster from the
+ * giving and application types and application states in the cluster from the
* ResourceManager
.
*
GetApplicationsRequest
*/
@Public
@@ -309,20 +313,20 @@ public static GetApplicationsRequest newInstance(
public abstract RangeContainerStatus
es of the requested containers.
+ * @param statuses ContainerStatus
es of the requested containers.
*/
@Private
@Unstable
@@ -72,7 +73,7 @@ public static GetContainerStatusesResponse newInstance(
/**
* Get the containerId-to-exception map in which the exception indicates error
- * from per container for failed requests
+ * from per container for failed requests.
* @return map of containerId-to-exception
*/
@Public
@@ -81,7 +82,9 @@ public static GetContainerStatusesResponse newInstance(
/**
* Set the containerId-to-exception map in which the exception indicates error
- * from per container for failed requests
+ * from per container for failed requests.
+ *
+ * @param failedContainers containerId-to-exception map.
*/
@Private
@Unstable
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetLocalizationStatusesResponse.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetLocalizationStatusesResponse.java
index 89fca9fbbd..3f29cbfa86 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetLocalizationStatusesResponse.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetLocalizationStatusesResponse.java
@@ -80,6 +80,8 @@ public abstract void setLocalizationStatuses(
/**
* Set the containerId-to-exception map in which the exception indicates error
* from per container for failed request.
+ *
+ * @param failedContainers containerId-to-exception map.
*/
@InterfaceAudience.Private
public abstract void setFailedRequests(
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetNodesToAttributesRequest.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetNodesToAttributesRequest.java
index 4fcd8da693..0da4bd8cb9 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetNodesToAttributesRequest.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/GetNodesToAttributesRequest.java
@@ -48,7 +48,7 @@ public static GetNodesToAttributesRequest newInstance(SetRegisterApplicationMasterRequest
*/
@Public
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/RegisterApplicationMasterResponse.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/RegisterApplicationMasterResponse.java
index 1f8a151a4c..894e8c46d6 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/RegisterApplicationMasterResponse.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/RegisterApplicationMasterResponse.java
@@ -94,7 +94,7 @@ public static RegisterApplicationMasterResponse newInstance(
/**
* Set the ApplicationACL
s for the application.
- * @param acls
+ * @param acls ApplicationACLs for the application.
*/
@Private
@Unstable
@@ -113,6 +113,8 @@ public static RegisterApplicationMasterResponse newInstance(
/**
* Set ClientToAMToken master key.
+ *
+ * @param key ClientToAMToken master key.
*/
@Public
@Stable
@@ -127,7 +129,8 @@ public static RegisterApplicationMasterResponse newInstance(
public abstract String getQueue();
/**
- * Set the queue that the application was placed in.
+ *
Set the queue that the application was placed in.
+ * @param queue queue. */ @Public @Stable diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/SignalContainerRequest.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/SignalContainerRequest.java index 2a3861a773..28cc8ea5b4 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/SignalContainerRequest.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/SignalContainerRequest.java @@ -56,6 +56,7 @@ public static SignalContainerRequest newInstance(ContainerId containerId, /** * Set theContainerId
of the container to signal.
+ * @param containerId containerId.
*/
@Public
@Unstable
@@ -71,6 +72,7 @@ public static SignalContainerRequest newInstance(ContainerId containerId,
/**
* Set the SignalContainerCommand
of the signal request.
+ * @param command signal container command.
*/
@Public
@Unstable
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/StartContainersResponse.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/StartContainersResponse.java
index 8905ae2ae4..c40250a36d 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/StartContainersResponse.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/StartContainersResponse.java
@@ -86,7 +86,8 @@ public abstract void setSuccessfullyStartedContainers(
/**
* Set the containerId-to-exception map in which the exception indicates error
- * from per container for failed requests
+ * from per container for failed requests.
+ * @param failedContainers container for failed requests.
*/
@Private
@Unstable
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/StopContainersResponse.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/StopContainersResponse.java
index 2763bc94b4..3fe9eaa12f 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/StopContainersResponse.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/StopContainersResponse.java
@@ -65,6 +65,7 @@ public static StopContainersResponse newInstance(
/**
* Set the list of containerIds of successfully stopped containers.
+ * @param succeededRequests the list of containerIds of successfully stopped containers.
*/
@Private
@Unstable
@@ -73,8 +74,8 @@ public abstract void setSuccessfullyStoppedContainers(
/**
* Get the containerId-to-exception map in which the exception indicates error
- * from per container for failed requests
- * @return map of containerId-to-exception
+ * from per container for failed requests.
+ * @return map of containerId-to-exception.
*/
@Public
@Stable
@@ -82,7 +83,8 @@ public abstract void setSuccessfullyStoppedContainers(
/**
* Set the containerId-to-exception map in which the exception indicates error
- * from per container for failed requests
+ * from per container for failed requests.
+ * @param failedRequests map of containerId-to-exception.
*/
@Private
@Unstable
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/package-info.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/package-info.java
index 503c4f0ed2..c20779b127 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/package-info.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/protocolrecords/package-info.java
@@ -1,4 +1,4 @@
-/*
+/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
@@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-@InterfaceAudience.Public
+@Public
package org.apache.hadoop.yarn.api.protocolrecords;
-import org.apache.hadoop.classification.InterfaceAudience;
+import org.apache.hadoop.classification.InterfaceAudience.Public;
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/ApplicationSubmissionContext.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/ApplicationSubmissionContext.java
index 1d4ffc9b5b..71f28a165a 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/ApplicationSubmissionContext.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/ApplicationSubmissionContext.java
@@ -516,7 +516,7 @@ public abstract void setAMContainerResourceRequests(
Listaccessible node labels
of the queue.
+ * @param labels node label expression of the queue.
*/
@Private
@Unstable
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/ResourceRequest.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/ResourceRequest.java
index a863910861..5ffc05e3c7 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/ResourceRequest.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/ResourceRequest.java
@@ -437,17 +437,17 @@ public ExecutionTypeRequest getExecutionTypeRequest() {
/**
* For a request at a network hierarchy level, set whether locality can be relaxed - * to that level and beyond.
+ * to that level and beyond.
* *If the flag is off on a rack-level ResourceRequest
,
* containers at that request's priority will not be assigned to nodes on that
* request's rack unless requests specifically for those nodes have also been
- * submitted.
+ * submitted.
* *If the flag is off on an {@link ResourceRequest#ANY}-level
* ResourceRequest
, containers at that request's priority will
* only be assigned on racks for which specific requests have also been
- * submitted.
+ * submitted.
* *For example, to request a container strictly on a specific node, the
* corresponding rack-level and any-level requests should have locality
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/SerializedException.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/SerializedException.java
index 9355a234eb..fc76269d1b 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/SerializedException.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/SerializedException.java
@@ -38,6 +38,8 @@ public static SerializedException newInstance(Throwable e) {
/**
* Constructs a new SerializedException
with the specified detail
* message and cause.
+ * @param message exception detail message.
+ * @param cause cause of the exception.
*/
@Private
@Unstable
@@ -46,6 +48,7 @@ public static SerializedException newInstance(Throwable e) {
/**
* Constructs a new SerializedException
with the specified detail
* message.
+ * @param message exception detail message.
*/
@Private
@Unstable
@@ -53,6 +56,7 @@ public static SerializedException newInstance(Throwable e) {
/**
* Constructs a new SerializedException
with the specified cause.
+ * @param cause cause of the exception.
*/
@Private
@Unstable
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/package-info.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/package-info.java
index b6db5403f0..94fed33e2c 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/package-info.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/package-info.java
@@ -1,4 +1,4 @@
-/*
+/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
@@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-@InterfaceAudience.Public
+@Public
package org.apache.hadoop.yarn.api.records;
-import org.apache.hadoop.classification.InterfaceAudience;
+import org.apache.hadoop.classification.InterfaceAudience.Public;
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/conf/ConfigurationProvider.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/conf/ConfigurationProvider.java
index ae85e82bf3..d888e3c50e 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/conf/ConfigurationProvider.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/conf/ConfigurationProvider.java
@@ -44,12 +44,12 @@ public void close() throws Exception {
}
/**
- * Opens an InputStream at the indicated file
- * @param bootstrapConf Configuration
- * @param name The configuration file name
+ * Opens an InputStream at the indicated file.
+ * @param bootstrapConf Configuration.
+ * @param name The configuration file name.
* @return configuration
- * @throws YarnException
- * @throws IOException
+ * @throws YarnException exceptions from yarn servers.
+ * @throws IOException io error occur.
*/
public abstract InputStream getConfigurationInputStream(
Configuration bootstrapConf, String name) throws YarnException,
@@ -57,12 +57,15 @@ public abstract InputStream getConfigurationInputStream(
/**
* Derived classes initialize themselves using this method.
+ * @param bootstrapConf bootstrap configuration.
+ * @throws Exception exception occur.
*/
public abstract void initInternal(Configuration bootstrapConf)
throws Exception;
/**
* Derived classes close themselves using this method.
+ * @throws Exception exception occur.
*/
public abstract void closeInternal() throws Exception;
}
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/conf/ConfigurationProviderFactory.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/conf/ConfigurationProviderFactory.java
index 3562f173ac..e936f0d845 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/conf/ConfigurationProviderFactory.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/conf/ConfigurationProviderFactory.java
@@ -33,8 +33,8 @@ public class ConfigurationProviderFactory {
/**
* Creates an instance of {@link ConfigurationProvider} using given
* configuration.
- * @param bootstrapConf
- * @return configurationProvider
+ * @param bootstrapConf bootstrap configuration.
+ * @return configurationProvider configuration provider.
*/
@SuppressWarnings("unchecked")
public static ConfigurationProvider
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/conf/HAUtil.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/conf/HAUtil.java
index 1360359a9a..c85e211bd3 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/conf/HAUtil.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/conf/HAUtil.java
@@ -102,7 +102,7 @@ public static boolean isAutomaticFailoverEmbedded(Configuration conf) {
/**
* Verify configuration for Resource Manager HA.
* @param conf Configuration
- * @throws YarnRuntimeException
+ * @throws YarnRuntimeException thrown by a remote service.
*/
public static void verifyAndSetConfiguration(Configuration conf)
throws YarnRuntimeException {
@@ -320,7 +320,10 @@ public static String getConfValueForRMInstance(
}
/**
- * Add non empty and non null suffix to a key.
+ * Add non-empty and non-null suffix to a key.
+ *
+ * @param key key.
+ * @param suffix suffix.
* @return the suffixed key
*/
public static String addSuffix(String key, String suffix) {
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/conf/package-info.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/conf/package-info.java
index ca0aa31426..8acd6a2a93 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/conf/package-info.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/conf/package-info.java
@@ -1,4 +1,4 @@
-/*
+/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
@@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-@InterfaceAudience.Public
+@Public
package org.apache.hadoop.yarn.conf;
-import org.apache.hadoop.classification.InterfaceAudience;
+import org.apache.hadoop.classification.InterfaceAudience.Public;
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/exceptions/package-info.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/exceptions/package-info.java
index 89b73f0578..5ed6c2c9a7 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/exceptions/package-info.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/exceptions/package-info.java
@@ -1,4 +1,4 @@
-/*
+/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
@@ -15,6 +15,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-@InterfaceAudience.Public
+@Public
package org.apache.hadoop.yarn.exceptions;
-import org.apache.hadoop.classification.InterfaceAudience;
\ No newline at end of file
+import org.apache.hadoop.classification.InterfaceAudience.Public;
\ No newline at end of file
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/factories/package-info.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/factories/package-info.java
index 66bf20f3c8..90720e91d0 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/factories/package-info.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/factories/package-info.java
@@ -1,4 +1,4 @@
-/*
+/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
@@ -15,6 +15,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-@InterfaceAudience.Private
+@Private
package org.apache.hadoop.yarn.factories;
-import org.apache.hadoop.classification.InterfaceAudience;
\ No newline at end of file
+import org.apache.hadoop.classification.InterfaceAudience.Private;
\ No newline at end of file
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/factory/providers/package-info.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/factory/providers/package-info.java
index 4f397f3987..f25bd41bac 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/factory/providers/package-info.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/factory/providers/package-info.java
@@ -1,4 +1,4 @@
-/*
+/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
@@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-@InterfaceAudience.Private
+@Private
package org.apache.hadoop.yarn.factory.providers;
-import org.apache.hadoop.classification.InterfaceAudience;
+import org.apache.hadoop.classification.InterfaceAudience.Private;
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/server/api/ResourceManagerAdministrationProtocol.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/server/api/ResourceManagerAdministrationProtocol.java
index 4777cf8b62..6bd1a39eea 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/server/api/ResourceManagerAdministrationProtocol.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/server/api/ResourceManagerAdministrationProtocol.java
@@ -106,8 +106,8 @@ public RefreshServiceAclsResponse refreshServiceAcls(
*
* @param request request to update resource for a node in cluster.
* @return (empty) response on accepting update.
- * @throws YarnException
- * @throws IOException
+ * @throws YarnException exceptions from yarn servers.
+ * @throws IOException io error occur.
*/
@Private
@Idempotent
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/server/api/SCMAdminProtocol.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/server/api/SCMAdminProtocol.java
index 5c791fab4e..5e37259e06 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/server/api/SCMAdminProtocol.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/server/api/SCMAdminProtocol.java
@@ -42,8 +42,8 @@ public interface SCMAdminProtocol {
* @param request request SharedCacheManager
to run a cleaner task
* @return SharedCacheManager
returns an empty response
* on success and throws an exception on rejecting the request
- * @throws YarnException
- * @throws IOException
+ * @throws YarnException exceptions from yarn servers.
+ * @throws IOException io error occur.
*/
@Public
@Unstable
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/server/api/protocolrecords/RefreshNodesRequest.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/server/api/protocolrecords/RefreshNodesRequest.java
index 732d98ebe4..fcbef039f2 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/server/api/protocolrecords/RefreshNodesRequest.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/server/api/protocolrecords/RefreshNodesRequest.java
@@ -54,16 +54,16 @@ public static RefreshNodesRequest newInstance(
}
/**
- * Set the DecommissionType
+ * Set the DecommissionType.
*
- * @param decommissionType
+ * @param decommissionType decommission type.
*/
public abstract void setDecommissionType(DecommissionType decommissionType);
/**
- * Get the DecommissionType
+ * Get the DecommissionType.
*
- * @return decommissionType
+ * @return decommissionType decommission type.
*/
public abstract DecommissionType getDecommissionType();
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/server/api/protocolrecords/package-info.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/server/api/protocolrecords/package-info.java
index a1a78c802a..56aaa15816 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/server/api/protocolrecords/package-info.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/server/api/protocolrecords/package-info.java
@@ -1,4 +1,4 @@
-/*
+/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
@@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-@InterfaceAudience.Private
+@Private
package org.apache.hadoop.yarn.server.api.protocolrecords;
-import org.apache.hadoop.classification.InterfaceAudience;
+import org.apache.hadoop.classification.InterfaceAudience.Private;
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/util/constraint/PlacementConstraintParser.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/util/constraint/PlacementConstraintParser.java
index 85352b3f5d..d0bf888ea3 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/util/constraint/PlacementConstraintParser.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/util/constraint/PlacementConstraintParser.java
@@ -165,7 +165,8 @@ public interface ConstraintTokenizer extends Enumeration