public abstract class AbstractDtpNotifier extends Object implements DtpNotifier
| 限定符 | 构造器和说明 |
|---|---|
protected |
AbstractDtpNotifier() |
protected |
AbstractDtpNotifier(Notifier notifier) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected String |
buildAlarmContent(NotifyPlatform platform,
NotifyItemEnum notifyItemEnum) |
protected String |
buildNoticeContent(NotifyPlatform platform,
DtpMainProp oldProp,
List<String> diffs) |
protected abstract String |
getAlarmTemplate()
Implement by subclass, get alarm template.
|
protected abstract org.apache.commons.lang3.tuple.Pair<String,String> |
getColors()
Implement by subclass, get content color config.
|
protected abstract String |
getNoticeTemplate()
Implement by subclass, get notice template.
|
protected int |
getQueueCapacity(ThreadPoolExecutor executor) |
protected String |
getRejectHandlerName(ThreadPoolExecutor executor) |
protected String |
populatePoolName(ExecutorWrapper executorWrapper) |
void |
sendAlarmMsg(NotifyItemEnum notifyItemEnum)
Send alarm message.
|
void |
sendChangeMsg(DtpMainProp oldProp,
List<String> diffs)
Send change notify message.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitplatformprotected Notifier notifier
protected AbstractDtpNotifier()
protected AbstractDtpNotifier(Notifier notifier)
public void sendChangeMsg(DtpMainProp oldProp, List<String> diffs)
DtpNotifiersendChangeMsg 在接口中 DtpNotifieroldProp - old propertiesdiffs - the changed keyspublic void sendAlarmMsg(NotifyItemEnum notifyItemEnum)
DtpNotifiersendAlarmMsg 在接口中 DtpNotifiernotifyItemEnum - notify item enumprotected abstract String getNoticeTemplate()
protected abstract String getAlarmTemplate()
protected abstract org.apache.commons.lang3.tuple.Pair<String,String> getColors()
protected String buildAlarmContent(NotifyPlatform platform, NotifyItemEnum notifyItemEnum)
protected String buildNoticeContent(NotifyPlatform platform, DtpMainProp oldProp, List<String> diffs)
protected String populatePoolName(ExecutorWrapper executorWrapper)
protected String getRejectHandlerName(ThreadPoolExecutor executor)
protected int getQueueCapacity(ThreadPoolExecutor executor)
Copyright © 2023. All rights reserved.