public class ClusterNodeHandler extends Object
There is one cluster node handler per cluster node (repository).
Constructor and Description |
---|
ClusterNodeHandler(Mapper clusterNodeMapper,
RepositoryDescriptor repositoryDescriptor) |
Modifier and Type | Method and Description |
---|---|
void |
addQueue(InvalidationsQueue queue)
Adds an invalidation queue to this cluster node.
|
void |
close() |
void |
connectionWasReset() |
JDBCConnection |
getConnection() |
void |
processClusterInvalidationsNext() |
void |
propagateInvalidations(Invalidations invalidations,
InvalidationsQueue skipQueue)
Propagates invalidations to all the queues of this cluster node.
|
Invalidations |
receiveClusterInvalidations()
Receives cluster invalidations from other cluster nodes.
|
void |
removeQueue(InvalidationsQueue queue)
Removes an invalidation queue from this cluster node.
|
void |
sendClusterInvalidations(Invalidations invalidations)
Sends cluster invalidations to other cluster nodes.
|
public ClusterNodeHandler(Mapper clusterNodeMapper, RepositoryDescriptor repositoryDescriptor) throws StorageException
StorageException
public JDBCConnection getConnection()
public void close() throws StorageException
StorageException
public void connectionWasReset() throws StorageException
StorageException
public void processClusterInvalidationsNext()
public void addQueue(InvalidationsQueue queue)
public void removeQueue(InvalidationsQueue queue)
public void propagateInvalidations(Invalidations invalidations, InvalidationsQueue skipQueue)
public Invalidations receiveClusterInvalidations() throws StorageException
StorageException
public void sendClusterInvalidations(Invalidations invalidations) throws StorageException
StorageException
Copyright © 2015 Nuxeo SA. All rights reserved.