How yeskabyl/sdp-assignment3 works
This is a small Java alerting library, not a deployed service: callers can resolve a delivery channel from severity and offline-zone status, then use notification abstractions to format and emit alerts through that channel. The resolver selects legacy pager, Telegram, or email delivery; the pager adapter translates the channel contract to the legacy service. Critical and digest notifications apply distinct formatting. The excerpts show these internal relationships, but no application entry point or external transport implementation, so no caller or external-service flow is asserted.
Main entry points: AlertChannel.java Alert channel contract · LegacyPagerAdapter.java Legacy pager adapter · DynamicChannelResolver.java Dynamic channel resolver · EmailAlertChannel.java Email channel
Components 10
Channel selection
- Dynamic channel resolver
src/main/alerting/factory/DynamicChannelResolver.java
Alert formatting
- Alert notification
src/main/alerting/abstraction/AlertNotification.java - Critical notification
src/main/alerting/abstraction/CriticalAlertNotification.java - Digest notification
src/main/alerting/abstraction/DigestAlertNotification.java
Delivery implementations
- Alert channel contract
src/main/alerting/implementor/AlertChannel.java - Email channel
src/main/alerting/implementor/EmailAlertChannel.java - Telegram channel
src/main/alerting/implementor/TelegramAlertChannel.java - Legacy pager adapter
src/main/alerting/implementor/LegacyPagerAdapter.java - Legacy pager service
src/main/alerting/legacy/LegacyPagerService.java - Delivery exception
src/main/alerting/exception/ChannelDeliveryException.java
Connections 14
- Dynamic channel resolver → Legacy pager adapter: selects
src/main/alerting/factory/DynamicChannelResolver.java - Dynamic channel resolver → Telegram channel: selects
src/main/alerting/factory/DynamicChannelResolver.java - Dynamic channel resolver → Email channel: selects
src/main/alerting/factory/DynamicChannelResolver.java - Legacy pager adapter → Legacy pager service: transmits via
src/main/alerting/implementor/LegacyPagerAdapter.java - Critical notification → Alert notification: extends
src/main/alerting/abstraction/CriticalAlertNotification.java - Digest notification → Alert notification: extends
src/main/alerting/abstraction/DigestAlertNotification.java - Critical notification → Alert channel contract: sends through
src/main/alerting/abstraction/CriticalAlertNotification.java - Digest notification → Alert channel contract: sends through
src/main/alerting/abstraction/DigestAlertNotification.java - Email channel → Alert channel contract: implements
src/main/alerting/implementor/EmailAlertChannel.java - Telegram channel → Alert channel contract: implements
src/main/alerting/implementor/TelegramAlertChannel.java - Legacy pager adapter → Alert channel contract: implements
src/main/alerting/implementor/LegacyPagerAdapter.java - Email channel → Delivery exception: throws
src/main/alerting/implementor/EmailAlertChannel.java - Telegram channel → Delivery exception: throws
src/main/alerting/implementor/TelegramAlertChannel.java - Legacy pager adapter → Delivery exception: throws
src/main/alerting/implementor/LegacyPagerAdapter.java