use of com.yahoo.vespa.model.container.component.Handler in project vespa by vespa-engine.
the class ContainerDocumentApiBuilderTest method getHandlers.
private Map<String, Handler<?>> getHandlers(String clusterName) {
ContainerCluster cluster = (ContainerCluster) root.getChildren().get(clusterName);
Map<String, Handler<?>> handlerMap = new HashMap<>();
Collection<Handler<?>> handlers = cluster.getHandlers();
for (Handler<?> handler : handlers) {
// die on overwrites
assertThat(handlerMap.containsKey(handler.getComponentId().toString()), is(false));
handlerMap.put(handler.getComponentId().toString(), handler);
}
return handlerMap;
}
Aggregations