|
SolarMetric Kodo JDO 3.2.4 generated on January 7 2005 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kodo.event.AbstractRemoteCommitProvider | +--kodo.event.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 kodo.event.AbstractRemoteCommitProvider |
eventManager, log |
Constructor Summary | |
JMSRemoteCommitProvider()
|
Method Summary | |
void |
broadcast(RemoteCommitEvent event)
Notifies other remote event managers in this JVM and on other machines of changes to the cache. |
void |
close()
Close any resources used by this provider |
protected Message |
createMessage(RemoteCommitEvent event)
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 MessageListener |
getMessageListener()
Returns a MessageListener capable of
understanding and processing messages created by
createMessage(kodo.event.RemoteCommitEvent) . |
protected Context |
newContext()
Returns a new Context object for use by this
provider. |
void |
setTopic(String name)
Sets the JMS Topic name. |
void |
setTopicConnectionFactory(String name)
Sets the JMS TopicConnectionFactory name. |
Methods inherited from class kodo.event.AbstractRemoteCommitProvider |
setConfiguration, setRemoteCommitEventManager, startConfiguration |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.solarmetric.conf.Configurable |
setConfiguration, startConfiguration |
Constructor Detail |
public JMSRemoteCommitProvider()
Method Detail |
public void setTopic(String name)
topic/KodoCommitProviderTopic
.public void setTopicConnectionFactory(String name)
java:/ConnectionFactory
.protected Context newContext() throws NamingException
Returns a new Context
object for use by this
provider.
This implementation is simply return new
InitialContext()
, which may be non-ideal if you want to
use a non-default environment for obtaining your initial
context.
You could override this method and add additional setters
to allow configuration of the context's environment, or to use
a context implementation other than InitialContext
.
To use an extended remote commit provider, set the
kodo.RemoteCommitProvider
property to the full
classname of the extended class.
public void broadcast(RemoteCommitEvent event)
RemoteCommitProvider
public void close()
RemoteCommitProvider
public void endConfiguration()
Configurable.endConfiguration()
must invoke this method.endConfiguration
in interface Configurable
endConfiguration
in class AbstractRemoteCommitProvider
protected MessageListener getMessageListener()
Returns a MessageListener
capable of
understanding and processing messages created by
createMessage(kodo.event.RemoteCommitEvent)
.
The listener returned by this method is responsible for notifying the provider that a remote event has been received.
protected Message createMessage(RemoteCommitEvent event) throws JMSException
Message
to send to the topic. This
implementation creates an ObjectMessage
.
|
SolarMetric Kodo JDO 3.2.4 generated on January 7 2005 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |