package org.objectweb.jonas.webapp.jonasadmin.monitoring;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.objectweb.jonas.webapp.jonasadmin.JonasBaseAction;
import org.objectweb.jonas.webapp.jonasadmin.WhereAreYou;

public class StopAllJonasServersAction extends JonasBaseAction {

	public ActionForward executeAction(ActionMapping p_Mapping,
			ActionForm p_Form, HttpServletRequest p_Request,
			HttpServletResponse p_Response) throws IOException,
			ServletException {
		// Form used
		WhereAreYou oWhere = (WhereAreYou) p_Request.getSession().getAttribute(
				WhereAreYou.SESSION_NAME);
		String sDomainName = oWhere.getCurrentDomainName();

		NodeInfoForm oForm = (NodeInfoForm) p_Form;
		try {


		} catch (Throwable t) {
			addGlobalError(t);
			saveErrors(p_Request, m_Errors);
			return (p_Mapping.findForward("Global Error"));
		}

		// Forward to the jsp.
		return (p_Mapping.findForward("DaemonProxyCluster"));
	}
}