public interface NetworkProvider extends GenericProvider
Modifier and Type | Method and Description |
---|---|
java.lang.String |
format(DeviceCommand command,
Address address)
This method will be called by DMS to give the NetworkProvider an
opportunity to format the command string in their own format before
sending it to the client device.
|
void |
send(java.lang.String message,
Address address)
Send the command string to the client device.
|
destroy, initialize
java.lang.String format(DeviceCommand command, Address address)
command
- Device Management Command object.address
- Address to which this command is going to be sent.void send(java.lang.String message, Address address) throws java.io.IOException
message
- Message to be sent to the client deviceaddress
- Address of the client device.java.io.IOException
- Should network error occur during message
transimission.