public class PersistentCollectionExtractor extends Object implements FeatureExtractor<AuditEvent,String>
| Constructor and Description |
|---|
PersistentCollectionExtractor() |
| Modifier and Type | Method and Description |
|---|---|
String |
extract(String feature,
AuditEvent event)
Extract all values for the specified feature from the given event.
|
static Map<String,String> |
extractScores(AuditEvent evt)
This method extracts scores and environment variables from the given
event by effectively simulating the actions fired by this event which are
included in the K section of the event.
|
static Map<String,String> |
extractScores(AuditEvent evt,
Map<String,String> env)
This method extracts scores and environment variables in the same way as
the method above, but uses the specified map as an initial start to
evaluate initial parameters.
|
Set<String> |
getVariables(AuditEvent event)
This method extracts all available feature names for the given event.
|
static Map<String,String> |
processRuleLog(String ruleLog,
Map<String,String> env) |
static String |
removeQuotes(String s) |
public static Map<String,String> extractScores(AuditEvent evt) throws Exception
This method extracts scores and environment variables from the given event by effectively simulating the actions fired by this event which are included in the K section of the event.
If no K section is available, this method simply returns an empty map.
evt - Exceptionpublic static Map<String,String> processRuleLog(String ruleLog, Map<String,String> env)
public static Map<String,String> extractScores(AuditEvent evt, Map<String,String> env) throws Exception
s - Exceptionpublic Set<String> getVariables(AuditEvent event)
FeatureExtractorgetVariables in interface FeatureExtractor<AuditEvent,String>public String extract(String feature, AuditEvent event)
FeatureExtractorextract in interface FeatureExtractor<AuditEvent,String>Copyright © 2015 jwall.org. All Rights Reserved.