Search in sources :

Example 1 with ZTSNotificationTaskFactory

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);
}
Also used : NotificationToEmailConverterCommon(com.yahoo.athenz.common.server.notification.NotificationToEmailConverterCommon) NotificationManager(com.yahoo.athenz.common.server.notification.NotificationManager) ZTSNotificationTaskFactory(com.yahoo.athenz.zts.notification.ZTSNotificationTaskFactory)

Aggregations

NotificationManager (com.yahoo.athenz.common.server.notification.NotificationManager)1 NotificationToEmailConverterCommon (com.yahoo.athenz.common.server.notification.NotificationToEmailConverterCommon)1 ZTSNotificationTaskFactory (com.yahoo.athenz.zts.notification.ZTSNotificationTaskFactory)1