public interface ClusterService
Modifier and Type | Method and Description |
---|---|
List<ClusterNode> |
getClusterNodes()
Retrieves the list of available nodes for this context server instance.
|
void |
purge(Date date)
Removes all data before the specified date from the context server.
|
void |
purge(String scope)
Removes all data associated with the provided scope.
|
void |
sendEvent(Serializable event)
This function will send an event to the nodes of the cluster
The function takes a Serializable to avoid dependency on any clustering framework
|
List<ClusterNode> getClusterNodes()
ClusterNode
void purge(Date date)
date
- the Date before which all data needs to be removedvoid purge(String scope)
scope
- the scope for which we want to remove datavoid sendEvent(Serializable event)
event
- this object will be cast to a org.apache.karaf.cellar.core.event.Event objectCopyright © 2014–2022 Apache Software Foundation. All rights reserved.