Class CountingOutputStreamEventResolver
- java.lang.Object
-
- org.n52.iceland.statistics.impl.resolvers.CountingOutputStreamEventResolver
-
- All Implemented Interfaces:
StatisticsServiceEventResolver<CountingOutputStreamEvent>
public class CountingOutputStreamEventResolver extends Object implements StatisticsServiceEventResolver<CountingOutputStreamEvent>
-
-
Constructor Summary
Constructors Constructor Description CountingOutputStreamEventResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CountingOutputStreamEventgetEvent()Map<String,Object>resolve()Resolves the the request to Elasticsearch formatvoidsetEvent(CountingOutputStreamEvent 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<CountingOutputStreamEvent>- Returns:
- Elasticsearch format
-
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<CountingOutputStreamEvent>- Parameters:
handlers- the handlers
-
setEvent
public void setEvent(CountingOutputStreamEvent payload)
Description copied from interface:StatisticsServiceEventResolverSets the payload to the Resolver class. Before theStatisticsServiceEventResolver.resolve()method is called.- Specified by:
setEventin interfaceStatisticsServiceEventResolver<CountingOutputStreamEvent>- Parameters:
payload- the event
-
getEvent
public CountingOutputStreamEvent getEvent()
- Specified by:
getEventin interfaceStatisticsServiceEventResolver<CountingOutputStreamEvent>
-
-