|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mactor.brokers.AbstractMessageBroker
org.mactor.brokers.PollingMessageBrokerTemplate
org.mactor.brokers.file.FileMessageBroker
public class FileMessageBroker
A message broker for communicating via file shares.
MessageBroker| Field Summary |
|---|
| Fields inherited from class org.mactor.brokers.PollingMessageBrokerTemplate |
|---|
log |
| Constructor Summary | |
|---|---|
FileMessageBroker(MessageBrokersConfig.MessageBrokerConfig config)
|
|
| Method Summary | |
|---|---|
protected java.util.List<Message> |
doGetMessages(java.lang.String channel,
int maxMessageCount)
Template method called to check for incoming messages (the polling interval is defined by the message broker config) |
protected void |
doPublishMessage(java.lang.String channel,
Message message)
Template method called to publish a message. |
void |
terminate()
|
| Methods inherited from class org.mactor.brokers.PollingMessageBrokerTemplate |
|---|
onFirstSubscribe, onLastSubscribe, publish, publishWithResponse |
| Methods inherited from class org.mactor.brokers.AbstractMessageBroker |
|---|
raiseOnMessage, subscribe, unsubscribe |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileMessageBroker(MessageBrokersConfig.MessageBrokerConfig config)
throws MactorException
MactorException| Method Detail |
|---|
protected java.util.List<Message> doGetMessages(java.lang.String channel,
int maxMessageCount)
throws MactorException
PollingMessageBrokerTemplate
doGetMessages in class PollingMessageBrokerTemplatechannel - the channelmaxMessageCount - the max number of messages to return (as defined in the
message broker config).
MactorException - if a problem occured (this will not cause the test to fail)
protected void doPublishMessage(java.lang.String channel,
Message message)
throws MactorException
PollingMessageBrokerTemplate
doPublishMessage in class PollingMessageBrokerTemplatechannel - the channelmessage - the message
MactorException - if a problem occured (this will cause the test to fail)public void terminate()
terminate in interface MessageBrokerterminate in class PollingMessageBrokerTemplate
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||