Constructor and Description |
---|
RulesServiceEndPoint() |
Modifier and Type | Method and Description |
---|---|
Map<String,RuleStatistics> |
getAllRuleStatistics()
Retrieves the rule statistics for all known rules.
|
Rule |
getRule(String ruleId)
Retrieves the rule identified by the specified identifier.
|
PartialList<Rule> |
getRuleDetails(Query query)
Retrieves rule details for rules matching the specified query.
|
Set<Metadata> |
getRuleMetadatas()
Retrieves the metadata for all known rules.
|
PartialList<Metadata> |
getRuleMetadatas(Query query)
Retrieves rule metadatas for rules matching the specified
Query . |
RuleStatistics |
getRuleStatistics(String ruleId)
Retrieves the statistics for the rule with the specified identifier
|
void |
removeRule(String ruleId)
Deletes the rule identified by the specified identifier.
|
void |
resetAllRuleStatistics()
Deletes all the rule statistics, which basically resets them to 0.
|
void |
resetQueries()
Deprecated.
As of version 1.1.0-incubating, not needed anymore
|
void |
setRule(Rule rule)
Persists the specified rule to the context server.
|
void |
setRulesService(RulesService rulesService) |
public void setRulesService(RulesService rulesService)
@GET @Path(value="/") public Set<Metadata> getRuleMetadatas()
@POST @Path(value="/") public void setRule(Rule rule)
rule
- the rule to be persisted@GET @Path(value="/statistics") public Map<String,RuleStatistics> getAllRuleStatistics()
@DELETE @Path(value="/statistics") public void resetAllRuleStatistics()
@POST @Path(value="/query") public PartialList<Metadata> getRuleMetadatas(Query query)
Query
.query
- the query the rules which metadata we want to retrieve must matchPartialList
of rules metadata for the rules matching the specified query@POST @Path(value="/query/detailed") public PartialList<Rule> getRuleDetails(Query query)
query
- the query specifying which rules to retrievePartialList
of rule details for the rules matching the specified query@GET @Path(value="/{ruleId}") public Rule getRule(@PathParam(value="ruleId") String ruleId)
ruleId
- the identifier of the rule we want to retrievenull
if no such rule exists.@GET @Path(value="/{ruleId}/statistics") public RuleStatistics getRuleStatistics(@PathParam(value="ruleId") String ruleId)
ruleId
- the identifier of the rule we want to retrievenull
if no such rule exists.@DELETE @Path(value="/{ruleId}") public void removeRule(@PathParam(value="ruleId") String ruleId)
ruleId
- the identifier of the rule we want to delete@Deprecated @GET @Path(value="/resetQueries") public void resetQueries()
Copyright © 2014–2023 Apache Software Foundation. All rights reserved.