|
Oracle Application Server TopLink API Reference 10g Release 2 (10.1.2) B15903-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.toplink.remote.CacheSynchronizationManager
Purpose: Allow for a cluster or group of application servers or TopLink sessions to distributely broadcast cache changes to the other servers to synchronize the state of the cache object.
Description: This allows for applications that require multiple application servers to decrease the possibilty of stale data in the TopLink cache.
Constructor Summary | |
CacheSynchronizationManager() PUBLIC: Creates a CacheSynchronizationManager. |
|
CacheSynchronizationManager(java.lang.Class clusteringServiceClassType) PUBLIC: Creates a CacheSynchronizationManager. |
|
CacheSynchronizationManager(java.lang.Object controller) Deprecated. As of version 4.0 |
Method Summary | |
void |
addRemoteConnection(oracle.toplink.internal.remote.RemoteConnection connection) PUBLIC: Add a remote Connection for cache synchronisation. |
void |
connectToAllRemoteServers() PUBLIC: Connect to all known servers, that have been specified through addRemoteConnections. |
java.lang.String |
getLocalHostURL() Deprecated. since 4.5 now set on ClusteringService |
java.util.Hashtable |
getRemoteConnections() PUBLIC: Returns the list of remote connections for cache synchronisation. |
oracle.toplink.internal.remote.RemoteConnection |
getSessionRemoteConnection() ADVANCED: Returns the remoteSession controller dispatcher that this session has made available for synchronization. |
java.lang.Object |
getSessionRemoteController() Deprecated. Since 4.0 |
void |
initialize() ADVANCED: THis method is called during the Login of the session to set up the synchronization service |
boolean |
isAsynchronous() PUBLIC: Return whether the propagation of the change sets should be asynchronous. |
void |
removeAllRemoteConnections() PUBLIC: Remove all remote connections for cache synchronisation. |
void |
removeRemoteConnection(oracle.toplink.internal.remote.RemoteConnection connection) PUBLIC: Remove a remote connection for cache synchronisation. |
void |
setClusteringService(AbstractClusteringService clusteringService) ADVANCED: Use this method to set the clusteringService used to synchronize the distributed sessions The class supplied must subclass AbstractClusteringService |
void |
setClusteringServiceClassType(java.lang.Class clusteringServiceClassType) ADVANCED: Use this method to set the class type to be used to synchronize the distributed sessions The class supplied must subclass AbstractClusteringService |
void |
setIsAsynchronous(boolean isAsynchronous) ADVANCED: This method is used to set if the propagation of the change sets should be asynchronous. |
void |
setLocalHostURL(java.lang.String localHostURL) Deprecated. since 4.5 now set on ClusteringService |
void |
setSessionRemoteConnection(oracle.toplink.internal.remote.RemoteConnection remoteSessionConnection) ADVANCED: Sets the remoteSession connection that this session will make available for synchronization. |
void |
setSessionRemoteController(java.lang.Object remoteSessionController) Deprecated. As of version 4.0 |
void |
setShouldRemoveConnectionOnError(boolean shouldRemoveConnectionOnError) PUBLIC: Allow whether connections to remote servers should be disconnected when an error occurs |
boolean |
shouldRemoveConnectionOnError() PUBLIC: Return whether connections to remote servers should be disconnected when an error occurs |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CacheSynchronizationManager()
public CacheSynchronizationManager(java.lang.Class clusteringServiceClassType)
clusteringServiceClassType
- the class that will be instantiated to connect all nodespublic CacheSynchronizationManager(java.lang.Object controller)
controller
- This must be a globally available RemoteSessionControllerMethod Detail |
public void initialize()
public void addRemoteConnection(oracle.toplink.internal.remote.RemoteConnection connection)
public void connectToAllRemoteServers()
public java.util.Hashtable getRemoteConnections()
public java.lang.Object getSessionRemoteController()
public oracle.toplink.internal.remote.RemoteConnection getSessionRemoteConnection()
public void removeAllRemoteConnections()
public void removeRemoteConnection(oracle.toplink.internal.remote.RemoteConnection connection)
public void setIsAsynchronous(boolean isAsynchronous)
public boolean isAsynchronous()
public void setSessionRemoteController(java.lang.Object remoteSessionController)
public void setSessionRemoteConnection(oracle.toplink.internal.remote.RemoteConnection remoteSessionConnection)
public void setShouldRemoveConnectionOnError(boolean shouldRemoveConnectionOnError)
public boolean shouldRemoveConnectionOnError()
public void setClusteringService(AbstractClusteringService clusteringService)
clusteringService
-public void setClusteringServiceClassType(java.lang.Class clusteringServiceClassType)
clusteringServiceClassType
-public java.lang.String getLocalHostURL()
public void setLocalHostURL(java.lang.String localHostURL)
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |