use of io.airlift.discovery.client.testing.StaticHttpServiceSelector 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);
}
use of io.airlift.discovery.client.testing.StaticHttpServiceSelector 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