use of com.yahoo.config.subscription.ConfigSourceSet in project vespa by vespa-engine.
the class ProxyServer method main.
public static void main(String[] args) {
/* Initialize the log handler */
LogSetup.clearHandlers();
LogSetup.initVespaLogging("configproxy");
Properties properties = getSystemProperties();
int port = DEFAULT_RPC_PORT;
if (args.length > 0) {
port = Integer.parseInt(args[0]);
}
Event.started("configproxy");
ConfigProxyStatistics statistics = new ConfigProxyStatistics(properties.eventInterval);
Thread t = new Thread(statistics);
t.setName("Metrics generator");
t.setDaemon(true);
t.start();
ConfigSourceSet configSources = new ConfigSourceSet(properties.configSources);
DelayedResponses delayedResponses = new DelayedResponses(statistics);
ProxyServer proxyServer = new ProxyServer(new Spec(null, port), delayedResponses, configSources, statistics, defaultTimingValues(), true, new MemoryCache(), null);
// catch termination signal
proxyServer.setupSigTermHandler();
Thread proxyserverThread = new Thread(proxyServer);
proxyserverThread.setName("configproxy");
proxyserverThread.start();
proxyServer.waitForShutdown();
}
use of com.yahoo.config.subscription.ConfigSourceSet in project vespa by vespa-engine.
the class ProxyServer method updateSourceConnections.
void updateSourceConnections(List<String> sources) {
configSource = new ConfigSourceSet(sources);
flush();
configClient = createRpcClient();
}
Aggregations