TopologyEventListener
instead.@Deprecated
public interface ClusterAware
ClusterAware
service interface may be implemented by
components interested in being made aware of the cluster state or changes
thereof the repository on which Sling primarily depends.
Upon registration and whenever certain changes in the registered JCR Repository service occurrs registered services of this type are made aware of the properties of the repository.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SERVICE
Deprecated.
The name under which services must be registered.
|
Modifier and Type | Method and Description |
---|---|
void |
bindRepository(java.lang.String repositoryId,
java.lang.String clusterId,
boolean isMaster)
Deprecated.
Informs the service on a bound repository.
|
void |
unbindRepository()
Deprecated.
Informs the service that no repository is currently bound.
|
static final java.lang.String SERVICE
void unbindRepository()
This method is called upon two occasions:
void bindRepository(java.lang.String repositoryId, java.lang.String clusterId, boolean isMaster)
This method is called upon three occasions:
isMaster
) state.repositoryId
- The ID of the repository node upon which Sling is
running. If the repository ID is not available from the
repository, this parameter is set to null
.clusterId
- The ID of the cluster upon which Sling is running. If
the cluster ID is not available from the repository, this
parameter is set to null
.isMaster
- true
if the main repository is operating as
the master node in the cluster. If this parameter is
false
the node is operating as the slave.Copyright © 2010 - 2020 Adobe. All Rights Reserved