@Component(value="loggerRestService") public class LoggerRestService extends Object implements LoggerService
| Modifier and Type | Class and Description |
|---|---|
protected static class |
LoggerRestService.LoggerType
Enum for logger entity types
|
| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
enabled |
protected String |
loggerUriPrefix |
| Constructor and Description |
|---|
LoggerRestService() |
| Modifier and Type | Method and Description |
|---|---|
protected List<Map<String,Object>> |
getEntities(LoggerRestService.LoggerType type)
Get a list of entities for the given LoggerType
|
protected List<Integer> |
getIdList(List<Map<String,Object>> list)
Generates an id list from the supplied list
|
List<Integer> |
getReasonIds() |
List<Map<String,Object>> |
getReasons() |
List<Integer> |
getSourceIds() |
List<Map<String,Object>> |
getSources() |
void |
reloadCache()
Use a fixed delay so that the next time it is run depends on the last time it finished
|
public List<Map<String,Object>> getReasons()
getReasons in interface LoggerServicepublic List<Map<String,Object>> getSources()
getSources in interface LoggerServicepublic List<Integer> getReasonIds()
getReasonIds in interface LoggerServicepublic List<Integer> getSourceIds()
getSourceIds in interface LoggerService@Scheduled(fixedDelay=43200000L) public void reloadCache()
protected List<Integer> getIdList(List<Map<String,Object>> list)
list - protected List<Map<String,Object>> getEntities(LoggerRestService.LoggerType type)
type - Copyright © 2014. All rights reserved.