Class DefaultServiceEventResolver
- java.lang.Object
-
- org.n52.iceland.statistics.impl.resolvers.DefaultServiceEventResolver
-
- All Implemented Interfaces:
StatisticsServiceEventResolver<Event>
public class DefaultServiceEventResolver extends Object implements StatisticsServiceEventResolver<Event>
-
-
Constructor Summary
Constructors Constructor Description DefaultServiceEventResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventgetEvent()Map<String,Object>resolve()Resolves the the request to Elasticsearch formatvoidsetEvent(Event payload)Sets the payload to the Resolver class.voidsetHandlers(Map<String,StatisticsServiceEventHandler<?>> handlers)before the processing the Handlers can be added to the resolver via spring xml
-
-
-
Method Detail
-
resolve
public Map<String,Object> resolve()
Description copied from interface:StatisticsServiceEventResolverResolves the the request to Elasticsearch format- Specified by:
resolvein interfaceStatisticsServiceEventResolver<Event>- Returns:
- Elasticsearch format
-
setEvent
public void setEvent(Event payload)
Description copied from interface:StatisticsServiceEventResolverSets the payload to the Resolver class. Before theStatisticsServiceEventResolver.resolve()method is called.- Specified by:
setEventin interfaceStatisticsServiceEventResolver<Event>- Parameters:
payload- the event
-
getEvent
public Event getEvent()
- Specified by:
getEventin interfaceStatisticsServiceEventResolver<Event>
-
setHandlers
public void setHandlers(Map<String,StatisticsServiceEventHandler<?>> handlers)
Description copied from interface:StatisticsServiceEventResolverbefore the processing the Handlers can be added to the resolver via spring xml- Specified by:
setHandlersin interfaceStatisticsServiceEventResolver<Event>- Parameters:
handlers- the handlers
-
-