summaryrefslogtreecommitdiffstats
path: root/sandbox/thilina/geronimo_ACE/src/main/webapp
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/thilina/geronimo_ACE/src/main/webapp')
-rw-r--r--sandbox/thilina/geronimo_ACE/src/main/webapp/WEB-INF/geronimo-web.xml106
-rw-r--r--sandbox/thilina/geronimo_ACE/src/main/webapp/pages/Cloud.jsp2
-rw-r--r--sandbox/thilina/geronimo_ACE/src/main/webapp/pages/Composite.html29
-rw-r--r--sandbox/thilina/geronimo_ACE/src/main/webapp/pages/Standalone.jsp107
-rw-r--r--sandbox/thilina/geronimo_ACE/src/main/webapp/pages/header.jsp5
5 files changed, 160 insertions, 89 deletions
diff --git a/sandbox/thilina/geronimo_ACE/src/main/webapp/WEB-INF/geronimo-web.xml b/sandbox/thilina/geronimo_ACE/src/main/webapp/WEB-INF/geronimo-web.xml
index f8767a7327..e5752f7155 100644
--- a/sandbox/thilina/geronimo_ACE/src/main/webapp/WEB-INF/geronimo-web.xml
+++ b/sandbox/thilina/geronimo_ACE/src/main/webapp/WEB-INF/geronimo-web.xml
@@ -1,53 +1,53 @@
-
-<!--
- ~ 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
- ~ regarding copyright ownership. The ASF licenses this file
- ~ to you under the Apache License, Version 2.0 (the
- ~ "License"); you may not use this file except in compliance
- ~ with the License. You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing,
- ~ software distributed under the License is distributed on an
- ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- ~ KIND, either express or implied. See the License for the
- ~ specific language governing permissions and limitations
- ~ under the License.
- -->
-
-
-<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.2">
- <environment>
- <moduleId>
- <groupId>org.apache.tuscany.geronimoace</groupId>
- <artifactId>geronimo-ace</artifactId>
- <version>1.0-SNAPSHOT</version>
- <type>war</type>
- </moduleId>
-
- <dependencies>
- <dependency> <!-- Put a dependancy on the hosting portal (pluto) -->
- <groupId>org.apache.geronimo.plugins</groupId>
- <artifactId>pluto-support</artifactId>
- </dependency>
-
- </dependencies>
- </environment>
-
- <!-- This is where the files are accessed from. (aka - portletContext) -->
- <context-root>/GeronimoACE</context-root>
-
- <!-- Start off a ACEGBean, this is the lifecycle for the portlet -->
- <gbean name="PlutoTest" class="org.apache.geronimo.pluto.AdminConsoleExtensionGBean">
- <attribute name="pageTitle">Tuscany ACE</attribute>
- <attribute name="portletContext">/GeronimoACE</attribute>
- <attribute name="portletList">[GeronimoACE]</attribute>
- <reference name="PortalContainerServices">
- <name>PlutoPortalServices</name>
- </reference>
- </gbean>
-</web-app>
-
+
+<!--
+ ~ 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
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+
+
+<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.2">
+ <environment>
+ <moduleId>
+ <groupId>org.apache.tuscany.geronimoace</groupId>
+ <artifactId>geronimo-ace</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <type>war</type>
+ </moduleId>
+
+ <dependencies>
+ <dependency> <!-- Put a dependancy on the hosting portal (pluto) -->
+ <groupId>org.apache.geronimo.plugins</groupId>
+ <artifactId>pluto-support</artifactId>
+ </dependency>
+
+ </dependencies>
+ </environment>
+
+ <!-- This is where the files are accessed from. (aka - portletContext) -->
+ <context-root>/GeronimoACE</context-root>
+
+ <!-- Start off a ACEGBean, this is the lifecycle for the portlet -->
+ <gbean name="PlutoTest" class="org.apache.geronimo.pluto.AdminConsoleExtensionGBean">
+ <attribute name="pageTitle">Tuscany ACE</attribute>
+ <attribute name="portletContext">/GeronimoACE</attribute>
+ <attribute name="portletList">[GeronimoACE]</attribute>
+ <reference name="PortalContainerServices">
+ <name>PlutoPortalServices</name>
+ </reference>
+ </gbean>
+</web-app>
+
diff --git a/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/Cloud.jsp b/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/Cloud.jsp
index c264528092..92e347d013 100644
--- a/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/Cloud.jsp
+++ b/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/Cloud.jsp
@@ -363,7 +363,7 @@ function init() {
<tr>
<td>Composite namespace:</td>
<td><input type="text" name="compositeNamespace" size="50"/></td>
- <td>e.g. http://your/namespace</td>
+ <td>e.g. http://your/namespace</td>
</tr>
<tr>
<td>Composite name:</td>
diff --git a/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/Composite.html b/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/Composite.html
index 164ea2e6b4..512a952fd2 100644
--- a/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/Composite.html
+++ b/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/Composite.html
@@ -67,17 +67,18 @@ function getCompositesResponse(feed) {
content = entries[i].getElementsByTagName("content")[0].firstChild.nodeValue;
}
var components = '';
- var bs = content.indexOf('<span id="components">'); http://localhost:8080/console/portal//Tuscany ACE/__pm0x3GeronimoACE0x2GeronimoACE!353877598|0_view
- if (bs != -1) {
- var es = content.indexOf('</span>', bs);
- components = content.substring(bs, es + 7);
- } else {
- bs = content.indexOf('<span id="problem"');
- if (bs != -1) {
- var es = content.indexOf('</span>', bs);
- components = content.substring(bs, es + 7);
- }
- }
+ var bs = content.indexOf('<span id="components">');
+ http://localhost:8080/console/portal//Tuscany ACE/__pm0x3GeronimoACE0x2GeronimoACE!353877598|0_view
+ if (bs != -1) {
+ var es = content.indexOf('</span>', bs);
+ components = content.substring(bs, es + 7);
+ } else {
+ bs = content.indexOf('<span id="problem"');
+ if (bs != -1) {
+ var es = content.indexOf('</span>', bs);
+ components = content.substring(bs, es + 7);
+ }
+ }
composites += '<tr>'
composites += '<td><input name="composites" type="checkbox" value="' + id + '">';
@@ -104,7 +105,7 @@ function deleteComposite() {
}
function deleteCompositeResponse() {
-
+
getComposites();
}
@@ -204,9 +205,9 @@ function suggestContributionURIs() {
}
return array(uris);
}
- function echo(){
+function echo() {
- }
+}
function init() {
toolbar();
diff --git a/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/Standalone.jsp b/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/Standalone.jsp
index 120d7583eb..feaf41d156 100644
--- a/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/Standalone.jsp
+++ b/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/Standalone.jsp
@@ -1,25 +1,90 @@
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="header.jsp" %>
<html>
- <head><title>Simple jsp page</title></head>
- <body>
- <form id="form1" name="form1" method="post" action="<portlet:actionURL/>">
- <table>
- <tr>
- <td>Contribution Location :</td>
- <td><input type="text" name="contributionLocation" size="100"/></td>
- </tr>
- <tr>
- <td>Name of the node :</td>
- <td><input type="text" name="nodeName" size="100"/></td>
- </tr>
- <tr>
- <td>Composite :</td>
- <td><input type="text" name="composite" size="100"/></td>
- </tr>
- </table>
- <input type="submit" name="addStandaloneNode" value="start"/>
- </form>
-
- </body>
+<head><title>Simple jsp page</title></head>
+<body>
+
+
+<form id="form1" name="form1" method="post" action="<portlet:actionURL/>">
+
+ <table>
+
+ <tr>
+ <td>Contribution Location :</td>
+ <td><input type="text" name="contributionLocation" size="100"/></td>
+ </tr>
+ <tr>
+ <td>Name of the node :</td>
+ <td><input type="text" name="nodeName" size="100"/></td>
+ </tr>
+ <tr>
+ <td>Composite :</td>
+ <td><input type="text" name="composite" size="100"/></td>
+ </tr>
+
+ <br><br>
+ </table>
+
+ <input type="submit" name="addStandaloneNode" value="start"/>
+
+</form>
+
+<form id="form2" name="form2" method="post" action="<portlet:actionURL/>">
+ <table width="100%">
+ <thead><b> Manage Nodes</b></thead>
+
+ <tbody>
+ <tr>
+ <th>Node</th>
+ <th>Contributions</th>
+ <th>Start Node</th>
+ <th>stop Node</th>
+ </tr>
+ <% ManageNodes mNodes = (ManageNodes) application.getAttribute("managenodes");
+ List<LocalNode> nodeSet = mNodes.getNodeSet();
+ Iterator<LocalNode> iterator = nodeSet.iterator();
+ if (iterator.hasNext() == false) { %>
+
+
+ <tr>
+ <td>
+
+ </td>
+ </tr>
+ <%
+ }
+ while (iterator.hasNext()) {
+ LocalNode temp = iterator.next();
+
+ %>
+ <tr>
+ <td>
+ <%=
+ temp.getName()
+ %>
+ </td>
+
+ <td>
+ <table>
+ <% Iterator<SCAContribution> contributionList = temp.getContributionList().iterator();
+ while (contributionList.hasNext()) { %>
+
+ <tr>
+ <%=contributionList.next().getLocation()%>
+ </tr>
+ <br>
+ <%
+ } %></table>
+ </td>
+ <td><input type="hidden" name="nodeName" value=<%=temp.getName()%>/></td>
+ <td><input type="submit" name="StartStandaloneNode" value="start"/></td>
+ <td><input type="submit" name="StopStandaloneNode" value="stop"/></td>
+ </tr>
+ <%
+ }
+ %>
+ </tbody>
+ </table>
+</form>
+</body>
</html> \ No newline at end of file
diff --git a/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/header.jsp b/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/header.jsp
index b202ba1d57..b9fbcce8e9 100644
--- a/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/header.jsp
+++ b/sandbox/thilina/geronimo_ACE/src/main/webapp/pages/header.jsp
@@ -1,3 +1,8 @@
+<%@ page import="org.apache.tuscany.geronimoace.LocalNode" %>
+<%@ page import="org.apache.tuscany.geronimoace.ManageNodes" %>
+<%@ page import="org.apache.tuscany.sca.node.SCAContribution" %>
+<%@ page import="java.util.Iterator" %>
+<%@ page import="java.util.List" %>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file