public class GrokPatternServiceImpl extends Object implements GrokPatternService
Modifier and Type | Field and Description |
---|---|
static String |
GROK_PATTERNS |
Modifier | Constructor and Description |
---|---|
protected |
GrokPatternServiceImpl(MongoConnection mongoConnection,
MongoJackObjectMapperProvider mapper) |
Modifier and Type | Method and Description |
---|---|
int |
delete(String patternId) |
GrokPattern |
load(String patternId) |
Set<GrokPattern> |
loadAll() |
GrokPattern |
save(GrokPattern pattern) |
boolean |
validate(GrokPattern pattern) |
public static final String GROK_PATTERNS
@Inject protected GrokPatternServiceImpl(MongoConnection mongoConnection, MongoJackObjectMapperProvider mapper)
public GrokPattern load(String patternId) throws NotFoundException
load
in interface GrokPatternService
NotFoundException
public Set<GrokPattern> loadAll()
loadAll
in interface GrokPatternService
public GrokPattern save(GrokPattern pattern) throws ValidationException
save
in interface GrokPatternService
ValidationException
public boolean validate(GrokPattern pattern)
validate
in interface GrokPatternService
public int delete(String patternId)
delete
in interface GrokPatternService
Copyright © 2012-2015 Graylog, Inc.. All Rights Reserved.