public class EventReceiverFirehoseTestClient extends Object
Constructor and Description |
---|
EventReceiverFirehoseTestClient(String host,
String chatID,
com.fasterxml.jackson.databind.ObjectMapper jsonMapper,
com.metamx.http.client.HttpClient httpClient,
com.fasterxml.jackson.databind.ObjectMapper smileMapper) |
Modifier and Type | Method and Description |
---|---|
int |
postEvents(Collection<Map<String,Object>> events,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
String mediaType)
post events from the collection and return the count of events accepted
|
int |
postEventsFromFile(String file)
Reads each events from file and post them to the indexing service.
|
public int postEvents(Collection<Map<String,Object>> events, com.fasterxml.jackson.databind.ObjectMapper objectMapper, String mediaType)
events
- Collection of events to be postedpublic int postEventsFromFile(String file)
file
- location of file to post events fromCopyright © 2011–2017. All rights reserved.