Project

General

Profile

« Previous | Next » 

Revision 6135

add option for replicating system metadata (dataone)
https://redmine.dataone.org/issues/1626

View differences:

ForceReplicationSystemMetadataHandler.java
113 113
				// If the server is the notification server, we don't notify it back
114 114
				// again, if server is null we don't replicate to
115 115
				if (server != null && !server.equals(notificationServer)) {
116
					if (replicationServer.isSystemMetadataReplication()) {
117
						comeAndGetIt = new URL("https://" + server
118
								+ "?action=forcereplicatesystemmetadata"
119
								+ "&guid=" + guid + "&server="
120
								+ MetacatUtil.getLocalReplicationServerName());
116 121

  
117
					comeAndGetIt = new URL("https://" + server
118
							+ "?action=forcereplicatesystemmetadata"
119
							+ "&guid=" + guid + "&server="
120
							+ MetacatUtil.getLocalReplicationServerName());
121

  
122
					// Make sure comeAndGetIt is not empty
123
					if (comeAndGetIt != null && !comeAndGetIt.equals("")) {
124 122
						logReplication.warn("Sending message: " + comeAndGetIt.toString());
125 123
						String message = ReplicationService.getURLContent(comeAndGetIt);
126 124
					}

Also available in: Unified diff