use of org.apache.beam.sdk.expansion.service.ExpansionServer in project beam by apache.
the class JobServerDriver method createExpansionService.
@Nullable
private ExpansionServer createExpansionService() throws IOException {
// Skip creating expansion server if configured port is negative.
if (configuration.expansionPort < 0) {
return null;
}
ExpansionServer expansionServer = ExpansionServer.create(new ExpansionService(), configuration.host, configuration.expansionPort);
LOG.info("Java ExpansionService started on {}:{}", expansionServer.getHost(), expansionServer.getPort());
return expansionServer;
}
Aggregations