public class JSMPPServer extends Object implements SmppServerSimulator<org.jsmpp.bean.SubmitSm>
Constructor and Description |
---|
JSMPPServer(SimulatorConfiguration config)
Initializes with provided configuration.
|
Modifier and Type | Method and Description |
---|---|
int |
getPort()
The actual port used by the SMPP server.
|
List<org.jsmpp.bean.SubmitSm> |
getReceivedMessages()
Get the list of received messages.
|
void |
start()
Start the SMPP server.
|
void |
stop()
Stop the SMPP server.
|
public JSMPPServer(SimulatorConfiguration config)
config
- the server configurationpublic void start() throws SmppServerException
SmppServerSimulator
start
in interface SmppServerSimulator<org.jsmpp.bean.SubmitSm>
SmppServerException
- when server couldn't be startedpublic void stop() throws SmppServerException
SmppServerSimulator
stop
in interface SmppServerSimulator<org.jsmpp.bean.SubmitSm>
SmppServerException
- when the server couldn't be stoppedpublic int getPort()
SmppServerSimulator
getPort
in interface SmppServerSimulator<org.jsmpp.bean.SubmitSm>
public List<org.jsmpp.bean.SubmitSm> getReceivedMessages()
SmppServerSimulator
getReceivedMessages
in interface SmppServerSimulator<org.jsmpp.bean.SubmitSm>
Copyright © 2021. All rights reserved.