public class SmppChannel extends AbstractAlarmChannel
log
Constructor and Description |
---|
SmppChannel() |
Modifier and Type | Method and Description |
---|---|
protected Runnable |
createSendTask(String msg,
String src) |
protected boolean |
hasSource(String alarmSource) |
void |
init()
Connects to the SMSC, using a SMPP 3.3 Transmitter connection.
|
void |
setHost(String value)
Sets the SMSC host.
|
void |
setPassword(String value) |
void |
setPhones(List<String> value)
Specifies the list of mobile numbers to send the alarms to.
|
void |
setPhonesBySource(Map<String,List<String>> value)
Sets different lists of phones, one for each alarm source.
|
void |
setPort(int value)
Sets the SMSC port.
|
void |
setSource(String value)
Sets the message source (the number from which the message is sent; usually the SMSC sets it)
|
void |
setSystemID(String value)
Sets the System ID property (the SMSC admin will provide this to you).
|
void |
setSystemType(String value)
Sets the system type property (the SMSC admin will provide this to you, although it's optional).
|
void |
shutdown() |
getMinResendInterval, send, setAllowSynchronousSend, setMinResendInterval
public void setSource(String value)
public void setHost(String value)
public void setPort(int value)
public void setSystemID(String value)
public void setSystemType(String value)
public void setPassword(String value)
public void setPhones(List<String> value)
public void setPhonesBySource(Map<String,List<String>> value)
@PostConstruct public void init()
protected Runnable createSendTask(String msg, String src)
createSendTask
in class AbstractAlarmChannel
protected boolean hasSource(String alarmSource)
hasSource
in class AbstractAlarmChannel
@PreDestroy public void shutdown()
shutdown
in interface AlarmChannel
shutdown
in class AbstractAlarmChannel