Revision 7346
Added by ben leinfelder almost 12 years ago
ReplicationAdmin.java | ||
---|---|---|
38 | 38 |
|
39 | 39 |
import org.apache.log4j.Logger; |
40 | 40 |
|
41 |
import edu.ucsb.nceas.metacat.dataone.hazelcast.HazelcastService; |
|
41 | 42 |
import edu.ucsb.nceas.metacat.replication.ReplicationService; |
42 | 43 |
import edu.ucsb.nceas.metacat.service.SessionService; |
43 | 44 |
import edu.ucsb.nceas.metacat.shared.MetacatUtilException; |
... | ... | |
157 | 158 |
out.println("<html><body>\"Get All\" Done</body></html>"); |
158 | 159 |
} else if (action.equals("servercontrol")) { |
159 | 160 |
ReplicationService.handleServerControlRequest(params, request, response); |
161 |
} else if (action.equals("resynchSystemMetadata")) { |
|
162 |
HazelcastService.getInstance().resynchInThread(); |
|
163 |
response.setContentType("text/html"); |
|
164 |
out = response.getWriter(); |
|
165 |
out.println("<html><body>SystemMetadata resynch has been started</body></html>"); |
|
160 | 166 |
} else { |
161 | 167 |
// Forward the request to the JSP page |
162 | 168 |
RequestUtil.forwardRequest(request, response, "/admin/replication-configuration.jsp", null); |
Also available in: Unified diff
allow SM resynch to be executed any time, not just during start up.
https://redmine.dataone.org/issues/3116