|
Oracle Application Server TopLink API Reference 10g (9.0.4) B10491-01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--oracle.toplink.remote.AbstractClusteringService
Purpose:To Provide a framework for offering customers the ability to automatically connect multiple sessions for synchrnization.
Descripton:This thread object will place a remote dispatcher in a globally available space. it will also monitor the specified multicast socket to allow other sessions to connect.
CacheSynchronizationManager| Field Summary |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
AbstractClusteringService(Session session)PUBLIC: Creates an AbstractClusteringService | |
AbstractClusteringService(java.lang.String multicastAddress, int multicastPort, Session session)ADVANCED: Creates an AbstractClusteringService | |
| Method Summary | |
abstract 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 synchronizatio |
abstract void |
deregisterDispatcher()ADVANCED: This method will deregister the dispatcher for this session from JNDI on the specified host. |
int |
getAnnouncementDelay()PUBLIC: Returns the amount of time in milliseconds that the service will wait between the time that the Remote Service is made available and this session's existences is announced. |
abstract java.net.MulticastSocket |
getCommunicationSocket()ADVANCED: Returns the socket that will be used for the multicast communication. |
abstract java.lang.Object |
getDispatcher()This is the object that will be placed in JNDI to provide remote synchronization services |
java.lang.String |
getLocalHostURL()This method will get the Host address of the JNDI service |
abstract 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 |
java.lang.String |
getMulticastGroupAddress()This method will return the Host adddress of the Multicast Group. |
int |
getMulticastPort()PUBLIC: Return the port that the Service will be using for the multicast socket |
java.lang.String |
getSessionId()ADVANCED: Get the Unique identifier for the session. |
int |
getTimeToLive()PUBLIC: Returns the number of hops the data packet will take before expiring |
abstract void |
registerDispatcher()ADVANCED: This method will register the dispatcher for this session in JNDI on the specified host. |
void |
setAnnouncementDelay(int millisecondsToDelay)PUBLIC: Sets the amount of time in millis that the service should wait between the time that the Remote Service is made available and this session's existences is announced. |
void |
setDispatcher(java.lang.Object dispatcher)This is the object that will be placed in JNDI to provide remote synchronization services |
void |
setLocalHostURL(java.lang.String url)This method will get the Host address of the JNDI service |
void |
setMulticastGroupAddress(java.lang.String multicastGroupAddress)This method will set the Host adddress of the Multicast Group. |
void |
setMulticastPort(int port)PUBLIC: Use this method to set the Multicast Port that this system will use to communicate |
void |
setSessionId(java.lang.String sessionId)ADVANCED: Set the Unique identifier for the session. |
void |
setTimeToLive(int timeToLive)PUBLIC: Use this method to set the number of hops that the Data packet will make until expiring. |
void |
stopListening()ADVANCED: Uses to stop the Listener thread for a dropped session |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, 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 AbstractClusteringService(Session session)
public AbstractClusteringService(java.lang.String multicastAddress,
int multicastPort,
Session session)
multicastAddress - The address of the multicast groupmulticastPort - The port the multicast group is listening on| Method Detail |
public abstract void registerDispatcher()
public abstract void deregisterDispatcher()
public abstract oracle.toplink.internal.remote.RemoteConnection createRemoteConnection(java.lang.String sessionId,
java.lang.String jndiHostURL)
public void setMulticastPort(int port)
port - This is the port that the multicast socket will listen onpublic int getMulticastPort()
public void setLocalHostURL(java.lang.String url)
url - jndiHostURLpublic void setTimeToLive(int timeToLive)
timeToLive -public int getTimeToLive()
public abstract java.net.MulticastSocket getCommunicationSocket()
public java.lang.String getMulticastGroupAddress()
public void setMulticastGroupAddress(java.lang.String multicastGroupAddress)
public abstract java.lang.Object getDispatcher()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic abstract oracle.toplink.internal.remote.RemoteConnection getLocalRemoteConnection()
public void setDispatcher(java.lang.Object dispatcher)
dispatcher -public java.lang.String getLocalHostURL()
public void setSessionId(java.lang.String sessionId)
sessionId -public java.lang.String getSessionId()
public void stopListening()
public void setAnnouncementDelay(int millisecondsToDelay)
public int getAnnouncementDelay()
|
| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||