|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fcrepo.server.messaging.MessagingImpl
public class MessagingImpl
The default, JMS implementation of Messaging.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.fcrepo.server.messaging.Messaging |
|---|
Messaging.MessageType |
| Constructor Summary | |
|---|---|
MessagingImpl(String fedoraBaseUrl,
Map<String,List<String>> mdMap,
JMSManager jmsMgr)
|
|
MessagingImpl(String fedoraBaseUrl,
Map<String,List<String>> mdMap,
Properties jndiProps)
Required JNDI Properties: INITIAL_CONTEXT_FACTORY
PROVIDER_URL
Optional JNDI Properties:
CONNECTION_FACTORY_NAME
|
|
| Method Summary | |
|---|---|
void |
close()
Shutdown and/or close any resources and/or connections. |
void |
send(FedoraMethod method)
Send a message to each of the destinations configured for each Messaging#MessageType. |
void |
send(String destName,
FedoraMessage message)
Send the FedoraMessage to the specified destination. |
void |
send(String destName,
FedoraMethod method,
FedoraMessage message)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MessagingImpl(String fedoraBaseUrl,
Map<String,List<String>> mdMap,
Properties jndiProps)
throws MessagingException
fedoraBaseUrl - e.g. http://localhost:8080/fedoramdMap - a Map of Messaging#MessageType to
Destinations.jndiProps - the JNDI configuration properties.
MessagingException
public MessagingImpl(String fedoraBaseUrl,
Map<String,List<String>> mdMap,
JMSManager jmsMgr)
| Method Detail |
|---|
public void send(String destName,
FedoraMessage message)
throws MessagingException
MessagingFedoraMessage to the specified destination.
send in interface MessagingdestName - The destination of the message.message - The message to send.
MessagingException
public void send(String destName,
FedoraMethod method,
FedoraMessage message)
throws MessagingException
MessagingException
public void send(FedoraMethod method)
throws MessagingException
Messaging#MessageType. Currently, only
FedoraMethods that represent
Management methods are supported.
Send a message representing the FedoraMethod.
The message representation and destination(s) are determined by the
implementing class.
send in interface Messagingmethod - The method to send.
MessagingException
public void close()
throws MessagingException
Messaging
close in interface MessagingMessagingException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||