java/com.sap.sailing.landscape/resources/stringmessages/SailingLandscape_StringMessages.properties
... ...
@@ -2,6 +2,8 @@ MasterUnavailableMailSubject=Primary server of replica set {0} temporarily unava
2 2
MasterUnavailableMailBody=The primary server of replica set {0} is temporarily unavailable.\nModifying access will be suspended.\nModifications incurred by a replica will be queued and will be applied when the primary is available again.\n\nYou are receiving this mail because you have administrative permissions for {0}.\nRemove those permissions at https://sapsailing.com/gwt/AdminConsole.html#UserManagementPlace: if you do not like to receive these messages anymore.
3 3
MasterAvailableMailSubject=Primary server of replica set {0} available again
4 4
MasterAvailableMailBody=The primary server of replica set {0} is available again.\nModifying access is possible again.\nQueued modifications will now process.\n\nYou are receiving this mail because you have administrative permissions for {0}.\nRemove those permissions at https://sapsailing.com/gwt/AdminConsole.html#UserManagementPlace: if you do not like to receive these messages anymore.
5
+StartingNewArchiveCandidateSubject=Starting new archive candidate
6
+StartingNewArchiveCandidateBody=Starting new archive candidate.\nFirst archived content is loaded from the MongoDB and afterwards wind estimations are calculated.\nThe whole process can take up to two days.\nCheck the status of the candidate at https://archive-canidate.sapsailing.com/gwt/status
5 7
StartingToArchiveReplicaSetIntoSubject=Starting to archive a replica set to {0}
6 8
StartingToArchiveReplicaSetIntoBody=Starting to archive a replica set to {0}.\nWhile this is going on, refrain from archiving another replica set into the same archive {0}.\nAfter the content has been imported it will be compared to the original.\nYou should receive another e-mail when this has completed.\n\nYou are receiving this mail because you have administrative permissions for {0}.\nRemove those permissions at https://sapsailing.com/gwt/AdminConsole.html#UserManagementPlace: if you do not like to receive these messages anymore.
7 9
StartingToArchiveReplicaSetSubject=Starting to archive replica set {0}
java/com.sap.sailing.landscape/src/com/sap/sailing/landscape/impl/LandscapeServiceImpl.java
... ...
@@ -278,6 +278,7 @@ public class LandscapeServiceImpl implements LandscapeService {
278 278
// TODO bug5311: when refactoring this for general scope migration, moving into a cold storage server other than ARCHIVE will require ALBToReverseProxyRedirectMapper instead
279 279
logger.info("Adding reverse proxy rule for archive candidate with hostname "+ hostname + " and private ip address");
280 280
reverseProxyCluster.setPlainRedirect(hostname, master, Optional.of(optionalKeyName), privateKeyEncryptionPassphrase);
281
+ sendMailAboutNewArchiveCandidate(replicaSet);
281 282
return replicaSet;
282 283
}
283 284
... ...
@@ -1719,10 +1720,10 @@ public class LandscapeServiceImpl implements LandscapeService {
1719 1720
Landscape.WAIT_FOR_PROCESS_TIMEOUT, Optional.ofNullable(optionalKeyName), privateKeyEncryptionPassphrase);
1720 1721
}
1721 1722
1722
-// private void sendMailAboutNewArchiveCandidate(
1723
-// AwsApplicationReplicaSet<String, SailingAnalyticsMetrics, SailingAnalyticsProcess<String>> replicaSet) throws MailException {
1724
-// sendMailToReplicaSetOwner(replicaSet, "StartingNewArchiveCandidateSubject", "StartingNewArchiveCandidateBody", Optional.of(ServerActions.CONFIGURE_REMOTE_INSTANCES));
1725
-// }
1723
+ private void sendMailAboutNewArchiveCandidate(
1724
+ AwsApplicationReplicaSet<String, SailingAnalyticsMetrics, SailingAnalyticsProcess<String>> replicaSet) throws MailException {
1725
+ sendMailToReplicaSetOwner(replicaSet, "StartingNewArchiveCandidateSubject", "StartingNewArchiveCandidateBody", Optional.of(ServerActions.CONFIGURE_REMOTE_INSTANCES));
1726
+ }
1726 1727
1727 1728
private void sendMailAboutMasterUnavailable(
1728 1729
AwsApplicationReplicaSet<String, SailingAnalyticsMetrics, SailingAnalyticsProcess<String>> replicaSet) throws MailException {