You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by sp...@apache.org on 2006/07/18 19:58:35 UTC
svn commit: r423154 - in
/geronimo/branches/1.1/applications/console-standard/src:
java/org/apache/geronimo/console/configmanager/ConfigManagerPortlet.java
webapp/WEB-INF/view/configmanager/normal.jsp
Author: sppatel
Date: Tue Jul 18 10:58:35 2006
New Revision: 423154
URL: http://svn.apache.org/viewvc?rev=423154&view=rev
Log:
provide restart link in console for GERONIMO-1865
Modified:
geronimo/branches/1.1/applications/console-standard/src/java/org/apache/geronimo/console/configmanager/ConfigManagerPortlet.java
geronimo/branches/1.1/applications/console-standard/src/webapp/WEB-INF/view/configmanager/normal.jsp
Modified: geronimo/branches/1.1/applications/console-standard/src/java/org/apache/geronimo/console/configmanager/ConfigManagerPortlet.java
URL: http://svn.apache.org/viewvc/geronimo/branches/1.1/applications/console-standard/src/java/org/apache/geronimo/console/configmanager/ConfigManagerPortlet.java?rev=423154&r1=423153&r2=423154&view=diff
==============================================================================
--- geronimo/branches/1.1/applications/console-standard/src/java/org/apache/geronimo/console/configmanager/ConfigManagerPortlet.java (original)
+++ geronimo/branches/1.1/applications/console-standard/src/java/org/apache/geronimo/console/configmanager/ConfigManagerPortlet.java Tue Jul 18 10:58:35 2006
@@ -52,6 +52,8 @@
private static final String STOP_ACTION = "stop";
+ private static final String RESTART_ACTION = "restart";
+
private static final String UNINSTALL_ACTION = "uninstall";
private static final String CONFIG_INIT_PARAM = "config-type";
@@ -93,6 +95,9 @@
} else if (UNINSTALL_ACTION.equals(action)) {
configurationManager.uninstallConfiguration(configId);
messageStatus = "Uninstalled application<br /><br />";
+ } else if (RESTART_ACTION.equals(action)) {
+ configurationManager.restartConfiguration(configId);
+ messageStatus = "Restarted application<br /><br />";
} else {
messageStatus = "Invalid value for changeState: " + action + "<br /><br />";
throw new PortletException("Invalid value for changeState: " + action);
Modified: geronimo/branches/1.1/applications/console-standard/src/webapp/WEB-INF/view/configmanager/normal.jsp
URL: http://svn.apache.org/viewvc/geronimo/branches/1.1/applications/console-standard/src/webapp/WEB-INF/view/configmanager/normal.jsp?rev=423154&r1=423153&r2=423154&view=diff
==============================================================================
--- geronimo/branches/1.1/applications/console-standard/src/webapp/WEB-INF/view/configmanager/normal.jsp (original)
+++ geronimo/branches/1.1/applications/console-standard/src/webapp/WEB-INF/view/configmanager/normal.jsp Tue Jul 18 10:58:35 2006
@@ -9,7 +9,7 @@
<th align="left"> Component Name</th>
<c:if test="${showWebInfo}"><th>URL</th></c:if>
<th> State</th>
- <th align="center" colspan="2">Commands</th>
+ <th align="center" colspan="3">Commands</th>
</tr>
<c:set var="backgroundClass" value='MediumBackground'/>
<c:forEach var="moduleDetails" items="${configurations}">
@@ -27,12 +27,15 @@
<td class="${backgroundClass}"> <c:if test="${moduleDetails.state.running}"><a href="${moduleDetails.urlFor}">${moduleDetails.contextPath}</a></c:if></td>
</c:if>
<td width="100" class="${backgroundClass}"> ${moduleDetails.state}</td>
- <td width="100" class="${backgroundClass}">
+ <td width="75" class="${backgroundClass}">
<c:if test="${moduleDetails.state.running}"> <a href="<portlet:actionURL><portlet:param name="configId" value="${moduleDetails.configId}"/><portlet:param name="action" value="stop"/></portlet:actionURL>">Stop</a></c:if>
<c:if test="${moduleDetails.state.stopped && (moduleDetails.type.name ne 'CAR')}"> <a href="<portlet:actionURL><portlet:param name="configId" value="${moduleDetails.configId}"/><portlet:param name="action" value="start"/></portlet:actionURL>">Start</a></c:if>
<c:if test="${moduleDetails.state.failed}"> <a href="<portlet:actionURL><portlet:param name="configId" value="${moduleDetails.configId}"/><portlet:param name="action" value="stop"/></portlet:actionURL>">Stop</a></c:if>
</td>
- <td width="100" class="${backgroundClass}">
+ <td width="75" class="${backgroudClass}">
+ <c:if test="${moduleDetails.state.running}"> <a href="<portlet:actionURL><portlet:param name="configId" value="${moduleDetails.configId}"/><portlet:param name="action" value="restart"/></portlet:actionURL>">Restart</a></c:if>
+ </td>
+ <td width="75" class="${backgroundClass}">
<a href="<portlet:actionURL><portlet:param name="configId" value="${moduleDetails.configId}"/><portlet:param name="action" value="uninstall"/></portlet:actionURL>">Uninstall</a>
</td>
</tr>