public abstract class AbstractSMSEngine extends java.lang.Object implements SMSEngine
SMSEngine implementations.| Modifier and Type | Field and Description |
|---|---|
protected MessageScheduler |
messageScheduler |
protected ModelService |
modelService |
protected PhoneNumberService |
phoneNumberService |
static java.lang.String |
STARTUP_DELAY_PARAMETER |
| Constructor and Description |
|---|
AbstractSMSEngine() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getEngineId()
Provides the unique engine id.
|
int |
getStartupDelaySeconds()
Called when starting up to find out how many seconds should the engine wait before starting up, to let the hybris suite
prepare to process incoming traffic
|
boolean |
isAvailable(AggregatorSettingsDTO settings)
Tells if the engine currently accepts messages or not.
|
void |
setBeanName(java.lang.String name) |
void |
setMessageScheduler(MessageScheduler messageScheduler) |
void |
setModelService(ModelService modelService) |
void |
setPhoneNumberService(PhoneNumberService phoneNumberHelper) |
void |
shutdown()
Called once the system is about to shut down.
|
void |
startup(java.util.Collection<AggregatorSettingsDTO> aggregatorSettings)
Called once upon system startup.
|
void |
updateAggregators(java.util.Collection<AggregatorSettingsDTO> aggregatorSettings)
May be called while being connected.
|
public static final java.lang.String STARTUP_DELAY_PARAMETER
protected ModelService modelService
protected PhoneNumberService phoneNumberService
protected MessageScheduler messageScheduler
public void setBeanName(java.lang.String name)
public java.lang.String getEngineId()
SMSEnginegetEngineId in interface SMSEnginepublic boolean isAvailable(AggregatorSettingsDTO settings)
SMSEnginefalse to signal temporary
unavailability.
If there is a general (e.g. configuration) problem this should rather be
causing a exception in SMSEngine.send(AggregatorSettingsDTO, OutgoingSMSMessageDTO) instead.isAvailable in interface SMSEnginesettings - the settings of the specific aggregator to checkpublic void setModelService(ModelService modelService)
public void setPhoneNumberService(PhoneNumberService phoneNumberHelper)
public void setMessageScheduler(MessageScheduler messageScheduler)
public void startup(java.util.Collection<AggregatorSettingsDTO> aggregatorSettings)
SMSEnginepublic void shutdown()
SMSEnginepublic void updateAggregators(java.util.Collection<AggregatorSettingsDTO> aggregatorSettings)
SMSEngineupdateAggregators in interface SMSEnginepublic int getStartupDelaySeconds()
SMSEnginegetStartupDelaySeconds in interface SMSEngineCopyright © 2018 SAP SE. All Rights Reserved.