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) |
int |
deleteAll() |
GrokPattern |
load(String patternId) |
Set<GrokPattern> |
loadAll() |
GrokPattern |
save(GrokPattern pattern) |
List<GrokPattern> |
saveAll(Collection<GrokPattern> patterns,
boolean replace) |
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 List<GrokPattern> saveAll(Collection<GrokPattern> patterns, boolean replace) throws ValidationException
saveAll in interface GrokPatternServiceValidationExceptionpublic boolean validate(GrokPattern pattern)
validate in interface GrokPatternServicepublic int delete(String patternId)
delete in interface GrokPatternServicepublic int deleteAll()
deleteAll in interface GrokPatternServiceCopyright © 2012-2016 Graylog, Inc.. All Rights Reserved.