Interface ClusterService

  • All Known Implementing Classes:
    ClusterServiceImpl

    public interface ClusterService
    A service to access information about the context server's cluster.
    • Method Detail

      • getClusterNodes

        List<ClusterNode> getClusterNodes()
        Retrieves the list of available nodes for this context server instance.
        Returns:
        a list of ClusterNode
      • purge

        @Deprecated
        void purge​(Date date)
        Deprecated.
        Removes all data before the specified date from the context server.
        Parameters:
        date - the Date before which all data needs to be removed
      • purge

        void purge​(String scope)
        Removes all data associated with the provided scope.
        Parameters:
        scope - the scope for which we want to remove data
      • sendEvent

        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
        Parameters:
        event - this object will be cast to a org.apache.karaf.cellar.core.event.Event object