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 GrokPatternServiceNotFoundExceptionpublic Set<GrokPattern> loadAll()
loadAll in interface GrokPatternServicepublic GrokPattern save(GrokPattern pattern) throws ValidationException
save in interface GrokPatternServiceValidationExceptionpublic boolean validate(GrokPattern pattern)
validate in interface GrokPatternServicepublic int delete(String patternId)
delete in interface GrokPatternServiceCopyright © 2012-2015 Graylog, Inc.. All Rights Reserved.