2 import="org.ultramonkey.l7.model.*,org.ultramonkey.l7.controller.*,org.ultramonkey.l7.view.*"
3 language="java" contentType="text/html; charset=UTF-8"
10 L7guiServletBase base = new L7guiServletBase();
11 if (session.isNew() || base.checkSession(session) == false) {
12 MessageView error = new MessageView(41391,
13 LogCategorySet.GUI_USER_AUTHENTICATION,
14 Message.INVALID_SESSSION);
15 session.setAttribute(SessionKeys.RESULT_MESSAGE, error);
16 response.sendRedirect(RedirectPages.LOGIN);
21 * get sync info (VS IPaddress)
23 L7guiFramework framework = new L7guiFramework();
24 ClusterData cd = framework.getClusterData();
30 MessageView error = new MessageView(41392,
31 LogCategorySet.GUI_IO_COMMAND,
32 Message.CLUSTER_DATA_ERROR);
33 session.setAttribute(SessionKeys.RESULT_MESSAGE, error);
34 response.sendRedirect(RedirectPages.LOGIN);
44 String threadStatus = (String) session
45 .getAttribute(SessionKeys.THREAD_STATUS);
46 if (threadStatus == null) {
47 MessageView error = new MessageView(41393, LogCategorySet.GUI_SYNC,
48 Message.UNEXPECTED_ERROR);
49 session.setAttribute(SessionKeys.RESULT_MESSAGE, error);
50 response.sendRedirect(RedirectPages.LOGIN);
52 } else if (threadStatus == SessionKeys.THREAD_RUNNING) {
54 } else if (threadStatus == SessionKeys.THREAD_SUCCESS) {
55 response.sendRedirect(RedirectPages.SYNC);
57 } else if (threadStatus == SessionKeys.THREAD_FAIL) {
58 response.sendRedirect(RedirectPages.SYNC_NG);
61 MessageView error = new MessageView(41394, LogCategorySet.GUI_SYNC,
62 Message.UNEXPECTED_ERROR);
63 session.setAttribute(SessionKeys.RESULT_MESSAGE, error);
64 response.sendRedirect(RedirectPages.LOGIN);
69 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
72 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
73 <meta http-equiv="Pragma" content="no-cache">
74 <meta http-equiv="Cache-Control" content="no-cache">
75 <meta http-equiv="Expires" content="0">
76 <meta http-equiv="Content-Script-Type" content="text/javascript" />
77 <meta http-equiv="Content-Style-Type" content="text/css" />
79 <meta http-equiv="refresh"
80 content="<%= RedirectPages.NOSCRIPT_TIME %>; url=<%= RedirectPages.LOGIN %>" />
82 <meta http-equiv="refresh" content="<%= RedirectPages.REFRESH_TIME %>" />
84 <link rel="stylesheet" type="text/css" href="l7gui_basic_style.css" />
85 <link rel="shortcut icon" href="images/favicon.ico" />
86 <title>Running : Sync Resources</title>
91 <h1 class="title">Running : Sync Resources</h1>
96 if ((self != null) && (other != null)){
98 <h2><%=self %> (<%=cd.self_status %>) <img class="arrow2" src="images/arrowlogo2.gif"
99 alt="arrowlogo" /><%=other %> (<%=cd.other_status %>)</h2>