use of com.yahoo.athenz.zts.notification.ZTSNotificationTaskFactory in project athenz by yahoo.
the class ZTSImpl method setNotificationManager.
private void setNotificationManager() {
ZTSNotificationTaskFactory ztsNotificationTaskFactory = new ZTSNotificationTaskFactory(instanceCertManager, dataStore, hostnameResolver, userDomainPrefix, serverHostName, httpsPort, new NotificationToEmailConverterCommon(userAuthority));
notificationManager = new NotificationManager(ztsNotificationTaskFactory.getNotificationTasks(), userAuthority);
// Enable notifications for instanceCertManager
instanceCertManager.enableCertStoreNotifications(notificationManager, dataStore, serverHostName);
instanceCertManager.enableSSHStoreNotifications(notificationManager, dataStore, serverHostName);
}
Aggregations