mirror of https://github.com/apache/druid.git
move/etc
This commit is contained in:
parent
cabf2a31c3
commit
fc9a6c7740
|
@ -129,11 +129,14 @@ import java.io.IOException;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
|
|
||||||
class BrokerBasedTestConnection implements QueryComponentSupplier
|
/**
|
||||||
|
* A wrapper class to expose a {@link QueryComponentSupplier} as a Broker service.
|
||||||
|
*/
|
||||||
|
public class ExposedAsBrokerQueryComponentSupplierWrapper implements QueryComponentSupplier
|
||||||
{
|
{
|
||||||
private QueryComponentSupplier delegate;
|
private QueryComponentSupplier delegate;
|
||||||
|
|
||||||
public BrokerBasedTestConnection(QueryComponentSupplier delegate)
|
public ExposedAsBrokerQueryComponentSupplierWrapper(QueryComponentSupplier delegate)
|
||||||
{
|
{
|
||||||
this.delegate = delegate;
|
this.delegate = delegate;
|
||||||
}
|
}
|
||||||
|
@ -180,7 +183,7 @@ class BrokerBasedTestConnection implements QueryComponentSupplier
|
||||||
|
|
||||||
installForServerModules(builder);
|
installForServerModules(builder);
|
||||||
|
|
||||||
overrideModules.addAll(BrokerBasedTestConnection.brokerModules());
|
overrideModules.addAll(ExposedAsBrokerQueryComponentSupplierWrapper.brokerModules());
|
||||||
overrideModules.add(new DiscovertModule());
|
overrideModules.add(new DiscovertModule());
|
||||||
|
|
||||||
}
|
}
|
|
@ -83,7 +83,7 @@ public class Launcher
|
||||||
|
|
||||||
ConfigurationInstance ci = CONFIG_STORE.getConfigurationInstance(
|
ConfigurationInstance ci = CONFIG_STORE.getConfigurationInstance(
|
||||||
config,
|
config,
|
||||||
x -> new BrokerBasedTestConnection(x)
|
x -> new ExposedAsBrokerQueryComponentSupplierWrapper(x)
|
||||||
);
|
);
|
||||||
return ci;
|
return ci;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue