Class ClusterServiceEndPoint


  • @Produces("application/json")
    @Path("/cluster")
    public class ClusterServiceEndPoint
    extends Object
    A JAX-RS endpoint to access information about the context server's cluster.
    • Constructor Detail

      • ClusterServiceEndPoint

        public ClusterServiceEndPoint()
    • Method Detail

      • setClusterService

        public void setClusterService​(ClusterService clusterService)
      • setMessageContext

        public void setMessageContext​(org.apache.cxf.jaxrs.ext.MessageContext messageContext)
      • getClusterNodes

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

        @GET
        @Path("/purge/{date}")
        @Deprecated
        public void purge​(@PathParam("date")
                          String 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
      • deleteScopedData

        @DELETE
        @Path("{scope}")
        public void deleteScopedData​(@PathParam("scope")
                                     String scope)
        Removes all data associated with the provided scope.
        Parameters:
        scope - the scope for which we want to remove data