|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--oracle.toplink.remote.AbstractClusteringService | +--oracle.toplink.remote.AbstractJNDIClusteringService | +--oracle.toplink.remote.jms.JMSClusteringService
PURPOSE:To Provide a framework for offering customers the ability to automatically connect multiple sessions for synchrnization.
Descripton:This object will connect the TopLink Session to an existing JMS Topic from an existing JMS Connection Factory.
CacheSynchronizationManager
,
oracle.toplink.remote.
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary |
JMSClusteringService(Session session)
PUBLIC: Creates a JMSClusteringService |
Method Summary |
Type | Method |
---|---|
oracle.toplink.internal.remote.RemoteConnection |
createRemoteConnection()
ADVANCED: This method should return a remote connection of the appropraite type for use in the synchronization |
oracle.toplink.internal.remote.RemoteConnection |
createRemoteConnection(java.lang.String sessionId,
java.lang.String jndiHostURL)
ADVANCED: This method should return a remote connection of the appropraite type for use in the synchronization Not Used |
java.net.MulticastSocket |
getCommunicationSocket()
ADVANCED: Returns the socket that will be used for the multicast communication. |
java.lang.Object |
getDispatcher()
ADVANCED: This is the object that will be placed in JNDI to provide remote synchronization services Not Used. |
oracle.toplink.internal.remote.RemoteConnection |
getLocalRemoteConnection()
ADVANCED: This method should return a Remote Connection of the appropriate type that references the Remote dispatcher for this Session NOT USED |
java.lang.String |
getTopicConnectionFactoryName()
PUBLIC: Use this method to get the Connection Factory Name for the JMS Topic connections |
java.lang.String |
getTopicName()
PUBLIC: return the JMS Topic name for the Topic that this clustering service will be connecting to. |
void |
registerDispatcher()
ADVANCED: This method will register the dispatcher for this session in JNDI on the specified host. |
void |
run()
This is the main execution method of this class. |
void |
setTopicConnectionFactoryName(java.lang.String connectionFactoryName)
PUBLIC: Use this method to set the Connection Factory Name for the JMS Topic connections |
void |
setTopicName(java.lang.String topicName)
PUBLIC: sets the JMS Topic name for the Topic that this clustering service will be connecting to. |
void |
stopListening()
ADVANCED: Uses to stop the Listener thread for a dropped session |
Methods inherited from class oracle.toplink.remote.AbstractJNDIClusteringService |
getContext, getInitialContextProperties,
getPassword, getUserName, setContext,
setInitialContextFactoryName, setInitialContextProperties,
setLocalHostURL, setPassword,
setUserName |
Methods inherited from class oracle.toplink.remote.AbstractClusteringService |
getAnnouncementDelay, getMulticastGroupAddress,
getMulticastPort, getSessionId, getTimeToLive,
setAnnouncementDelay, setDispatcher, setMulticastGroupAddress,
setMulticastPort, setSessionId, setTimeToLive |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader,
setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public JMSClusteringService(Session session)
Method Detail |
public oracle.toplink.internal.remote.RemoteConnection createRemoteConnection() throws oracle.toplink.remote.jms.JMSException, javax.naming.NamingException
public oracle.toplink.internal.remote.RemoteConnection createRemoteConnection(java.lang.String sessionId, java.lang.String jndiHostURL)
createRemoteConnection
in class AbstractClusteringService
public void registerDispatcher()
registerDispatcher
in class AbstractClusteringService
jndiHostURL
- This is the URL that will be used to register the synchronization service
not usedpublic java.net.MulticastSocket getCommunicationSocket()
getCommunicationSocket
in class AbstractClusteringService
public java.lang.Object getDispatcher() throws java.rmi.RemoteException
getDispatcher
in class AbstractClusteringService
public java.lang.String getTopicConnectionFactoryName()
public java.lang.String getTopicName()
public void run()
run
in class AbstractClusteringService
public oracle.toplink.internal.remote.RemoteConnection getLocalRemoteConnection()
getLocalRemoteConnection
in class AbstractClusteringService
public void setTopicConnectionFactoryName(java.lang.String connectionFactoryName)
public void setTopicName(java.lang.String topicName)
public void stopListening()
stopListening
in class AbstractClusteringService
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |