public class SmsPingMessenger extends Object implements org.opennms.protocols.rt.Messenger<PingRequest,PingReply>, OnmsInboundMessageNotification, org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
SmsPingMessenger() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
afterPropertiesSet
|
void |
process(org.smslib.AGateway gateway,
org.smslib.Message.MessageTypes msgType,
org.smslib.InboundMessage msg)
process
|
void |
sendRequest(PingRequest request)
sendRequest
|
void |
setSmsService(SmsService smsService)
setSmsService
|
void |
start(Queue<PingReply> replyQueue) |
public void setSmsService(SmsService smsService)
setSmsService
smsService
- a SmsService
object.public void afterPropertiesSet() throws Exception
afterPropertiesSet
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
- if any.public void sendRequest(PingRequest request) throws Exception
sendRequest
sendRequest
in interface org.opennms.protocols.rt.Messenger<PingRequest,PingReply>
request
- a PingRequest
object.Exception
- if any.public void start(Queue<PingReply> replyQueue)
start
in interface org.opennms.protocols.rt.Messenger<PingRequest,PingReply>
public void process(org.smslib.AGateway gateway, org.smslib.Message.MessageTypes msgType, org.smslib.InboundMessage msg)
process
process
in interface OnmsInboundMessageNotification
gateway
- a AGateway
object.msgType
- a Message.MessageTypes
object.msg
- a InboundMessage
object.Copyright © 2015. All Rights Reserved.