|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The driver interface. Driver is used by Messenger to access devices. More devices can be supported by the transport system via plug in more drivers.
Field Summary |
Type | Field |
---|---|
static int |
FAILED
Valid initialization status. |
static int |
RECEIVE
|
static int |
SEND
|
static int |
SEND_RECEIVE
|
Method Summary |
Type | Method |
---|---|
void |
destroy()
Destroy the driver. |
java.lang.String |
getInfo()
Get additional information of the driver. |
void |
getStatus(java.lang.String mid)
Get the sending status of a message. |
void |
getStatus(java.lang.String[] mids)
Get the sending statuses of a list of messages. |
java.lang.String |
getVersion()
Get the version of the driver. |
int |
init(java.util.Properties properties)
Initialize the driver. |
boolean |
queryNotifying()
Check if query is required to get the notification. |
boolean |
queryTracking()
Check if query is required to track the sending status. |
void |
receive()
Drivers implement this method to perform whatever is appropriate for their particular protocols to receive messages. |
java.lang.String[] |
send(java.lang.String[] dtypes,
java.lang.String[] addresses,
int[] modes,
java.lang.String encoding,
int tracking,
int expiration,
int reliability,
java.lang.String fromAddr,
java.lang.String replyToAddr,
Message message)
Send a message to a list of addresses with this driver. |
java.lang.String[] |
send(java.lang.String dtype,
java.lang.String[] addresses,
int[] modes,
java.lang.String encoding,
int tracking,
int expiration,
int reliability,
java.lang.String fromAddr,
java.lang.String replyToAddr,
Message message)
Send a message to a list of addresses with this driver. |
java.lang.String |
send(java.lang.String dtype,
java.lang.String address,
int mode,
java.lang.String encoding,
int tracking,
int expiration,
int reliability,
java.lang.String fromAddr,
java.lang.String replyToAddr,
Message message)
Send a message to a single address with this driver. |
Field Detail |
public static final int FAILED
public static final int SEND
public static final int RECEIVE
public static final int SEND_RECEIVE
Method Detail |
public int init(java.util.Properties properties)
properties
- the driver's properties.public void destroy()
public java.lang.String getVersion()
public java.lang.String getInfo()
public java.lang.String send(java.lang.String dtype, java.lang.String address, int mode, java.lang.String encoding, int tracking, int expiration, int reliability, java.lang.String fromAddr, java.lang.String replyToAddr, Message message) throws DriverException
dtype
- the delivery type of the destination.address
- the address to send to.mode
- the delivery mode.encoding
- the encoding of the device.tracking
- the tracking level.expiration
- the expiration time.reliability
- the reliability level.fromAddr
- the from-address.replyToAddr
- the reply-to-address.message
- the message
to send.DriverException.
- public java.lang.String[] send(java.lang.String dtype, java.lang.String[] addresses, int[] modes, java.lang.String encoding, int tracking, int expiration, int reliability, java.lang.String fromAddr, java.lang.String replyToAddr, Message message) throws DriverException
dtype
- the delivery type of all destinations.addresses
- the addresses to send to.modes
- the delivery modes.encoding
- the encoding of the device.tracking
- the tracking level.expiration
- the expiration time.reliability
- the reliability level.fromAddr
- the from-address.replyToAddr
- the reply-to-address.message
- the message
to send.DriverException.
- public java.lang.String[] send(java.lang.String[] dtypes, java.lang.String[] addresses, int[] modes, java.lang.String encoding, int tracking, int expiration, int reliability, java.lang.String fromAddr, java.lang.String replyToAddr, Message message) throws DriverException
dtypes
- the delivery types of correspondent destinations.addresses
- the addresses to send to.modes
- the delivery modes.encoding
- the encoding of the device.tracking
- the tracking level.expiration
- the expiration time.reliability
- the reliability level.fromAddr
- the from-address.replyToAddr
- the reply-to-address.message
- the message
to send.DriverException.
- public void getStatus(java.lang.String mid)
mid
- the id of the message.public void getStatus(java.lang.String[] mids)
mids
- the ids of these messages.public boolean queryNotifying()
public boolean queryTracking()
public void receive() throws DriverException
DriverException.
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |