You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by dd...@apache.org on 2011/10/26 23:01:03 UTC
svn commit: r1189453 - in /incubator/ambari/trunk: ./
controller/src/main/java/org/apache/ambari/controller/rest/resources/
Author: ddas
Date: Wed Oct 26 21:01:02 2011
New Revision: 1189453
URL: http://svn.apache.org/viewvc?rev=1189453&view=rev
Log:
AMBARI-106. Fixes some javadoc stuff.
Modified:
incubator/ambari/trunk/CHANGES.txt
incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/rest/resources/BlueprintResource.java
incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/rest/resources/ClusterResource.java
incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/rest/resources/NodesResource.java
Modified: incubator/ambari/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/CHANGES.txt?rev=1189453&r1=1189452&r2=1189453&view=diff
==============================================================================
--- incubator/ambari/trunk/CHANGES.txt (original)
+++ incubator/ambari/trunk/CHANGES.txt Wed Oct 26 21:01:02 2011
@@ -2,6 +2,8 @@ Ambari Change log
Release 0.1.0 - unreleased
+ AMBARI-106. Fixes some javadoc stuff (ddas)
+
AMBARI-105. Remove post on clusters resource to create new cluster (instead use put operation on cluster resource along with update cluster) (vgogate)
AMBARI-104. Polishes the CLI doc some (ddas)
Modified: incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/rest/resources/BlueprintResource.java
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/rest/resources/BlueprintResource.java?rev=1189453&r1=1189452&r2=1189453&view=diff
==============================================================================
--- incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/rest/resources/BlueprintResource.java (original)
+++ incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/rest/resources/BlueprintResource.java Wed Oct 26 21:01:02 2011
@@ -23,7 +23,6 @@ import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.DefaultValue;
import javax.ws.rs.GET;
-import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
@@ -70,7 +69,7 @@ public class BlueprintResource {
}
/**
- * Get a blueprint revisions
+ * Get a blueprint's revisions
*
* @response.representation.200.doc Get blueprint revisions
* @response.representation.200.mediaType application/json
@@ -104,6 +103,7 @@ public class BlueprintResource {
* @response.representation.200.mediaType application/json
*
* @param blueprintName Name of the blueprint
+ * @param revision Revision of the blueprint
* @throws Exception throws Exception (TBD)
*/
@DELETE
@@ -138,6 +138,7 @@ public class BlueprintResource {
* exist.
*
* @param blueprintName Name of the blueprint
+ * @param locationURL URL pointing to the location of the blueprint
* @param blueprint Input blueprint object specifying the blueprint definition
* @return Returns the new revision of the blueprint
* @throws Exception throws Exception
Modified: incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/rest/resources/ClusterResource.java
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/rest/resources/ClusterResource.java?rev=1189453&r1=1189452&r2=1189453&view=diff
==============================================================================
--- incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/rest/resources/ClusterResource.java (original)
+++ incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/rest/resources/ClusterResource.java Wed Oct 26 21:01:02 2011
@@ -63,7 +63,7 @@ public class ClusterResource {
*
* @param clusterName Name of the cluster; Each cluster is identified w/ unique name
* @return Returns the Cluster Information
- * @throws Exception Throws exception (TBD)
+ * @throws WebApplicationException Throws exception (TBD)
*/
@GET
@Produces({"application/json", "application/xml"})
@@ -109,6 +109,7 @@ public class ClusterResource {
* @response.representation.200.example
*
* @param clusterName Name of the cluster
+ * @param dry_run Whether to do a dry run
* @param cluster Cluster definition to be created new or updated existing one
* Cluster name can not be updated through this API.
* @param dry_run Boolean option to specify dry_run. In dry_run, updates to cluster
@@ -247,7 +248,7 @@ public class ClusterResource {
*
* @param clusterName Name of the cluster; Each cluster is identified w/
* unique name
- * @param roleName Optionally specify the role name to get the nodes
+ * @param role Optionally specify the role name to get the nodes
* associated with the service role
* @param alive Boolean value (true/false) to specify, if nodes to be
* returned are alive or dead. if this query parameter is
Modified: incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/rest/resources/NodesResource.java
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/rest/resources/NodesResource.java?rev=1189453&r1=1189452&r2=1189453&view=diff
==============================================================================
--- incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/rest/resources/NodesResource.java (original)
+++ incubator/ambari/trunk/controller/src/main/java/org/apache/ambari/controller/rest/resources/NodesResource.java Wed Oct 26 21:01:02 2011
@@ -28,11 +28,9 @@ import javax.ws.rs.QueryParam;
import javax.ws.rs.WebApplicationException;
import org.apache.ambari.common.rest.entities.Node;
-import org.apache.ambari.controller.Clusters;
import org.apache.ambari.controller.ExceptionResponse;
import org.apache.ambari.controller.Nodes;
-import com.sun.jersey.spi.resource.Singleton;
/** Nodes Resource represents collection of cluster nodes.
*/
@@ -46,7 +44,7 @@ public class NodesResource {
*
* @param allocated Boolean value to specify, if nodes to be returned are allocated/reserved for some cluster (specify null to return both allocated and unallocated nodes)
* @param alive Boolean value to specify, if nodes to be returned are alive or dead or both (specify null to return both live and dead nodes)
- * @return List of nodes
+ * @return List of nodes
* @throws Exception throws Exception
*/
@GET