|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.solarmetric.kodo.runtime.event.impl.RemoteCommitProviderImpl
|
+--com.solarmetric.kodo.runtime.event.impl.JMSRemoteCommitProvider
JMS-based implementation of RemoteCommitProvider that
listens for object modifications and propagates those changes to
other RemoteCommitProviders over a JMS topic.
| Fields inherited from class com.solarmetric.kodo.runtime.event.impl.RemoteCommitProviderImpl |
_factory, _log |
| Constructor Summary | |
JMSRemoteCommitProvider()
|
|
| Method Summary | |
void |
broadcastCommitInfo(Set adds,
Set updates,
Set deletes)
Notifies other PersistenceManagerFactory objects in this JVM and on other machines of changes to the cache. |
void |
close()
Close any resources used by this provider |
protected javax.jms.Message |
createMessage(Set adds,
Set updates,
Set deletes)
Returns a new Message to send to the topic. |
void |
endConfiguration()
Subclasses that need to perform actions in Configurable.endConfiguration() must invoke this method. |
protected javax.jms.MessageListener |
getMessageListener()
Returns a MessageListener capable of
understanding and processing messages created by
createMessage(java.util.Set, java.util.Set, java.util.Set). |
void |
setTopic(String name)
Sets the JMS Topic name. |
void |
setTopicConnectionFactory(String name)
Sets the JMS TopicConnectionFactory name. |
void |
startConfiguration()
No-op implementation. |
| Methods inherited from class com.solarmetric.kodo.runtime.event.impl.RemoteCommitProviderImpl |
receivedCommitInfo, setPersistenceManagerFactory |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public JMSRemoteCommitProvider()
| Method Detail |
public void setTopic(String name)
topic/KodoCommitProviderTopic.public void setTopicConnectionFactory(String name)
java:/ConnectionFactory.
public void broadcastCommitInfo(Set adds,
Set updates,
Set deletes)
RemoteCommitProviderNotifies other PersistenceManagerFactory objects in this JVM and on other machines of changes to the cache. This method must not notify the PersistenceManagerFactory associated with the PersistenceManager that originated this commit.
adds, updates, and
deletes are sets of object IDs that were added,
updated, or deleted.
public void close()
RemoteCommitProviderpublic void startConfiguration()
startConfiguration in interface Configurablepublic void endConfiguration()
Configurable.endConfiguration() must invoke this method.endConfiguration in interface Configurableprotected javax.jms.MessageListener getMessageListener()
Returns a MessageListener capable of
understanding and processing messages created by
createMessage(java.util.Set, java.util.Set, java.util.Set).
The listener returned by this method is responsible for
notifying the provider that a remote event has been received. It
should invoke RemoteCommitProvider#receivedCommitInfo.
This implementation transfers data via
NotificationObject objects, and invokes
NotificationObject.receivedCommitInfo(com.solarmetric.kodo.runtime.event.impl.RemoteCommitProviderImpl) on the received
object, which in turn invokes
RemoteCommitProviderImpl.receivedCommitInfo(java.util.Set, java.util.Set, java.util.Set).
protected javax.jms.Message createMessage(Set adds,
Set updates,
Set deletes)
throws javax.jms.JMSException
Message to send to the topic. This
implementation creates an ObjectMessage.
|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||