You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by ud...@apache.org on 2014/10/24 11:19:40 UTC
[1/2] git commit: add comments for the REST API
Repository: stratos
Updated Branches:
refs/heads/4.0.0-grouping 061cc496f -> 4b1d3a656
add comments for the REST API
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/4b1d3a65
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/4b1d3a65
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/4b1d3a65
Branch: refs/heads/4.0.0-grouping
Commit: 4b1d3a656d7f21eed1c15f247b7fc2c229f266ab
Parents: c01d963
Author: Udara Liyanage <ud...@wso2.com>
Authored: Thu Oct 23 18:08:59 2014 +0530
Committer: Udara Liyanage <ud...@wso2.com>
Committed: Fri Oct 24 14:49:03 2014 +0530
----------------------------------------------------------------------
.../stratos/rest/endpoint/services/StratosAdmin.java | 10 ++++++++++
1 file changed, 10 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/stratos/blob/4b1d3a65/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/services/StratosAdmin.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/services/StratosAdmin.java b/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/services/StratosAdmin.java
index 56602ad..44d42a5 100644
--- a/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/services/StratosAdmin.java
+++ b/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/services/StratosAdmin.java
@@ -414,6 +414,16 @@ public class StratosAdmin extends AbstractAdmin {
return Response.ok().entity(subscriptions).build();
}
+ /**
+ * This API provides information about the application denoted by the given appId. Details includes,
+ * Application details,
+ * Top level cluster details
+ * details of the group and sub groups.
+ * @param applicationId Id of the application.
+ * @return Json representing the application details with 200 as HTTP status. HTTP 404 is returned when there is
+ * no application with given Id.
+ * @throws RestAPIException is thrown in case of failure occurs.
+ */
@GET
@Path("/application/{appId}")
[2/2] git commit: add acquire topology lock for get app info
Posted by ud...@apache.org.
add acquire topology lock for get app info
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/c01d963d
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/c01d963d
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/c01d963d
Branch: refs/heads/4.0.0-grouping
Commit: c01d963dee00f10c32180a8fc6f7d1c3a8af3afc
Parents: 061cc49
Author: Udara Liyanage <ud...@wso2.com>
Authored: Thu Oct 23 17:53:13 2014 +0530
Committer: Udara Liyanage <ud...@wso2.com>
Committed: Fri Oct 24 14:49:03 2014 +0530
----------------------------------------------------------------------
.../org/apache/stratos/rest/endpoint/services/ServiceUtils.java | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/stratos/blob/c01d963d/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/services/ServiceUtils.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/services/ServiceUtils.java b/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/services/ServiceUtils.java
index 1bd2568..b7b5695 100644
--- a/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/services/ServiceUtils.java
+++ b/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/services/ServiceUtils.java
@@ -1462,6 +1462,7 @@ public class ServiceUtils {
Cluster topLevelCluster;
try {
+ TopologyManager.acquireReadLockForCluster(serviceType, clusterId);
topLevelCluster = TopologyManager.getTopology().getService(serviceType).getCluster(clusterId);
}finally {
TopologyManager.releaseReadLockForCluster(serviceType, clusterId);