|
jSyncManager Simple Java Server | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jSyncManager.SJS.Adapters.SMTPServer.RemoteMessageHandler
public class RemoteMessageHandler
This class is used to sort messages that must be relayed to a specific remote server. It then stores these message in the appropriate RemoteServerMessage Object.
| Field Summary | |
|---|---|
(package private) LogManager |
logManager
The LogManager currently in use |
| Constructor Summary | |
|---|---|
RemoteMessageHandler(LogManager logManager)
Creates a new handler for remote messages. |
|
| Method Summary | |
|---|---|
void |
send()
Sends all stored messages to their respective servers. |
void |
store(Message currentMsg,
Address recipient)
Stores incoming messages in a map with the server IP as key |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
LogManager logManager
| Constructor Detail |
|---|
public RemoteMessageHandler(LogManager logManager)
logManager - The log manager for logging remote handle errors.| Method Detail |
|---|
public void store(Message currentMsg,
Address recipient)
currentMsg - the message to be storesrecipient - the address of the recipientpublic void send()
|
jSyncManager Simple Java Server | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||