public class NotificationModule extends ListeningKernelModule implements BTHandlerI, DBManEventListenerI
STR_IF_POSSIBLE, STR_MANDATORY, STR_NEVERSAVE_RETRIES, SAVE_RETRY_DELAY_MS_MAX, SAVE_RETRY_DELAY_MS_MINENV_DAWN_MACHINE_ID| Constructor and Description |
|---|
NotificationModule(DBManLocalI dbm) |
NotificationModule(java.lang.String _nameForLog,
DBManLocalI dbm) |
| Modifier and Type | Method and Description |
|---|---|
void |
addClassesOfInterest(java.util.Set<java.lang.Class> classesOfInterest) |
void |
adjustRetryWVActiveState(boolean active) |
static Benachrichtigungsversendung[] |
createVersendungen(java.util.Collection<AddressWithInfo> addresses,
Transaction tx,
java.lang.Boolean wasSuccessful,
java.lang.String remark,
boolean asCatchall,
java.lang.Boolean erneutVersuchenMoeglich)
Creates, saves and returns
Benachrichtigungsversendung instances for the given AddressWithInfo
instances and their respective MyTISMBenachrichtigung. |
static Benachrichtigungsversendung[] |
createVersendungen(java.util.Collection<AddressWithInfo> addresses,
Transaction tx,
java.lang.Boolean wasSuccessful,
java.lang.String remark,
boolean asCatchall,
java.lang.Boolean erneutVersuchenMoeglich,
java.lang.Throwable cause) |
static Benachrichtigungsversendung[] |
createVersendungen(javax.mail.SendFailedException sfe,
java.util.Collection<AddressWithInfo> addresses,
Transaction tx,
java.lang.String remark,
boolean asCatchall,
java.lang.Boolean erneutVersuchenMoeglich)
Creates, saves and returns
Benachrichtigungsversendung instances for the given AddressWithInfo
instances and their respective MyTISMBenachrichtigung, using info about success or failure from the
given SendFailedException. |
static Benachrichtigungsversendung[] |
createVersendungen(javax.mail.SendFailedException sfe,
java.util.Collection<AddressWithInfo> addresses,
Transaction tx,
java.lang.String remark,
boolean asCatchall,
java.lang.Boolean erneutVersuchenMoeglich,
java.lang.Throwable cause) |
BTsHandler |
getBTsHandler() |
java.util.ArrayList |
getHandlers() |
org.apache.log4j.Logger |
getLogger() |
org.bouncycastle.openpgp.PGPSecretKey |
getOpenPGPSecretKey()
Executed when a relevant
DBManBOChangeEvent is received. |
java.lang.String |
getShouldStartSetting(DBManConfigurationHelperI conf)
Retrieves and returns if this module should actually be started from the MyTISM configuration.
|
java.util.Date |
getStartingDateForChecks() |
java.lang.Integer |
getWantsEncryption() |
java.lang.Integer |
getWantsSignature() |
boolean |
handleBT(BT bt) |
void |
handleSendingLogChanges(java.util.Collection<Benachrichtigungsversendung> createdSendingLogs,
java.lang.String origin)
At the end of the day, only changes to
Benachrichtigungsversendung instances affect the notification
order "done" state; if such changes happened, recalc that state here. |
boolean |
notifyAddress(MyTISMAdresse address,
MyTISMBenachrichtigung notification,
Transaction tx,
boolean isRetry) |
void |
processConfChangeEvent(ConfChangeEvent e)
Called when the MyTISM configuration was changed and if the setting for this module was modified either starts it
up or stops it depending on the new setting.
|
void |
retryFailedNotifications(java.lang.Long orderId)
Triggers retry of failed notifications for the
MyTISMBenachrichtigungsAuftrag with the given Id. |
void |
setBTsHandler(BTsHandler $110) |
void |
setOpenPGPSecretKey(org.bouncycastle.openpgp.PGPSecretKey $107) |
void |
setWantsEncryption(java.lang.Integer $108) |
void |
setWantsSignature(java.lang.Integer $109) |
decrementPending, featureBecameAvailable, featureNoLongerAvailable, getCPending, getEventFilter, getNameForLog, getPendingShowLimit, incrementPending, initialize, isActive, isMandatory, isOrWillBeInactive, isWanted, newThread, processDBManEvent, setActive, setCPending, setEventFilter, setNameForLog, setPendingShowLimit, shutdown, start, start, stop, stop, stopgetBOLoader, getConfiguration, getConnection, getDbm, getJDBCConnection, getNewCachingBOLoader, getNodeNumber, getSchema, getUser, isAuthoritativeSyncServer, isShutdown, loadBO, loadBO, query, query, query, query, query, query, query, query, query, query, runsAsUser, save, save, save, save, save, save, save, save, save, save, save, save, setDbm, setShutdown, setUser, shutdownequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprocessDBManEventhandleSaveResultForRetrywantsConnectionsClosedgetDawnMachineID, getOriginHashpublic NotificationModule(DBManLocalI dbm)
public NotificationModule(java.lang.String _nameForLog,
DBManLocalI dbm)
public java.util.ArrayList getHandlers()
public java.lang.String getShouldStartSetting(DBManConfigurationHelperI conf)
ListeningKernelModulegetShouldStartSetting in class ListeningKernelModulepublic org.apache.log4j.Logger getLogger()
getLogger in interface BTHandlerIpublic void processConfChangeEvent(ConfChangeEvent e)
ListeningKernelModuleprocessConfChangeEvent in interface ConfChangeEventListenerIprocessConfChangeEvent in class ListeningKernelModulee - The ConfChangeEvent object containing details of the configuration change.public void adjustRetryWVActiveState(boolean active)
public void retryFailedNotifications(java.lang.Long orderId)
MyTISMBenachrichtigungsAuftrag with the given Id.public boolean notifyAddress(MyTISMAdresse address, MyTISMBenachrichtigung notification, Transaction tx, boolean isRetry) throws NoHandlerAvailableException
NoHandlerAvailableExceptionpublic static Benachrichtigungsversendung[] createVersendungen(javax.mail.SendFailedException sfe, java.util.Collection<AddressWithInfo> addresses, Transaction tx, java.lang.String remark, boolean asCatchall, java.lang.Boolean erneutVersuchenMoeglich)
Benachrichtigungsversendung instances for the given AddressWithInfo
instances and their respective MyTISMBenachrichtigung, using info about success or failure from the
given SendFailedException.
This method tries to also handle all internal errors by also creating a Benachrichtigungsversendung with
appropriate info.public static Benachrichtigungsversendung[] createVersendungen(javax.mail.SendFailedException sfe, java.util.Collection<AddressWithInfo> addresses, Transaction tx, java.lang.String remark, boolean asCatchall, java.lang.Boolean erneutVersuchenMoeglich, java.lang.Throwable cause)
public static Benachrichtigungsversendung[] createVersendungen(java.util.Collection<AddressWithInfo> addresses, Transaction tx, java.lang.Boolean wasSuccessful, java.lang.String remark, boolean asCatchall, java.lang.Boolean erneutVersuchenMoeglich)
Benachrichtigungsversendung instances for the given AddressWithInfo
instances and their respective MyTISMBenachrichtigung.public static Benachrichtigungsversendung[] createVersendungen(java.util.Collection<AddressWithInfo> addresses, Transaction tx, java.lang.Boolean wasSuccessful, java.lang.String remark, boolean asCatchall, java.lang.Boolean erneutVersuchenMoeglich, java.lang.Throwable cause)
public boolean handleBT(BT bt) throws java.lang.InterruptedException
handleBT in interface BTHandlerIjava.lang.InterruptedExceptionpublic void handleSendingLogChanges(java.util.Collection<Benachrichtigungsversendung> createdSendingLogs, java.lang.String origin)
Benachrichtigungsversendung instances affect the notification
order "done" state; if such changes happened, recalc that state here.public java.util.Date getStartingDateForChecks()
getStartingDateForChecks in interface BTHandlerIpublic void addClassesOfInterest(java.util.Set<java.lang.Class> classesOfInterest)
addClassesOfInterest in interface BTHandlerIpublic org.bouncycastle.openpgp.PGPSecretKey getOpenPGPSecretKey()
DBManBOChangeEvent is received.public void setOpenPGPSecretKey(org.bouncycastle.openpgp.PGPSecretKey $107)
public java.lang.Integer getWantsEncryption()
public void setWantsEncryption(java.lang.Integer $108)
public java.lang.Integer getWantsSignature()
public void setWantsSignature(java.lang.Integer $109)
public BTsHandler getBTsHandler()
public void setBTsHandler(BTsHandler $110)
Copyright © 2000-2026 OAshi S.à r.l. All Rights Reserved.