|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.fzj.unicore.wsrflite.messaging.MessagingImpl
public class MessagingImpl
manages the internal messaging system
| Method Summary | |
|---|---|
void |
cleanup()
remove all content |
protected de.fzj.unicore.persist.Persist<MessageBean> |
createStore()
|
static MessagingImpl |
get()
|
IMessagingChannel |
getChannel(String name)
gets or creates a messaging channel with the given name |
PullPoint |
getPullPoint(String destination)
get a pull point for reading internal messages targeted at the given destination The messages will be removed from the store, so the application has to process them all, or call |
IMessagingChannel |
getQueue(String name)
Deprecated. use getChannel(String)) instead |
int |
getStoredMessages()
|
boolean |
hasMessages(String destination)
checks if unread messages exist for the given destination |
void |
registerProvider(IMessagingProvider provider,
String id)
register a new messaging provider |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
protected de.fzj.unicore.persist.Persist<MessageBean> createStore()
throws de.fzj.unicore.persist.PersistenceException
de.fzj.unicore.persist.PersistenceException
public static MessagingImpl get()
throws MessagingException
MessagingException
public int getStoredMessages()
throws de.fzj.unicore.persist.PersistenceException
de.fzj.unicore.persist.PersistenceException
public void registerProvider(IMessagingProvider provider,
String id)
IMessaging
registerProvider in interface IMessagingIMessagingProviderpublic boolean hasMessages(String destination)
IMessaging
hasMessages in interface IMessagingtrue if unread messages exist
public PullPoint getPullPoint(String destination)
throws MessagingException
getPullPoint in interface IMessagingdestination - - the name of the messaging queue
PullPoint
MessagingException
public IMessagingChannel getQueue(String name)
throws MessagingException
getChannel(String)) instead
getQueue in interface IMessagingMessagingException
public IMessagingChannel getChannel(String name)
throws MessagingException
IMessaging
getChannel in interface IMessagingname - - the name of the messaging queue
IMessagingChannel
MessagingException
public void cleanup()
throws de.fzj.unicore.persist.PersistenceException
de.fzj.unicore.persist.PersistenceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||