Package org.apache.unomi.rest.endpoints
Class ClusterServiceEndPoint
- java.lang.Object
-
- org.apache.unomi.rest.endpoints.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 Summary
Constructors Constructor Description ClusterServiceEndPoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
deleteScopedData(String scope)
Removes all data associated with the provided scope.List<ClusterNode>
getClusterNodes()
Retrieves the list of available nodes for this context server instance.void
purge(String date)
Deprecated.void
setClusterService(ClusterService clusterService)
void
setMessageContext(org.apache.cxf.jaxrs.ext.MessageContext messageContext)
-
-
-
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
-
-