use of io.airlift.event.client.JsonEventWriter in project airlift by airlift.
the class TestHttpEventClient method newEventClient.
private HttpEventClient newEventClient(List<URI> uris) {
HttpServiceSelector selector = new StaticHttpServiceSelector("collector", "general", uris);
Set<EventTypeMetadata<?>> eventTypes = getValidEventTypeMetaDataSet(FixedDummyEventClass.class);
JsonEventWriter eventWriter = new JsonEventWriter(eventTypes);
return new HttpEventClient(selector, eventWriter, new NodeInfo("test"), httpClient);
}
Aggregations