Skip to content
This repository has been archived by the owner on Sep 29, 2021. It is now read-only.

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
davidxia committed Aug 26, 2015
1 parent 418633f commit fc1b4c1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public MasterMain(final CuratorClientFactory curatorClientFactory,
@Override
protected void startUp() throws Exception {
service = new MasterService(masterConfig, createEnvironment("helios-master"),
curatorClientFactory);
curatorClientFactory);
service.startAsync().awaitRunning();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,8 @@ protected void startUp() throws Exception {
}

final ServiceRegistration serviceRegistration = ServiceRegistration.newBuilder()
.endpoint("helios", "http", config.getUriEndpoint().getPort(),
config.getDomain(), config.getName())
.endpoint("helios", config.getUriEndpoint().getScheme(), config.getUriEndpoint().getPort(),
config.getDomain(), config.getName())
.build();
registrar.register(serviceRegistration);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ public static DefaultServerFactory createServerFactory(final URI endpoint,
final String adminEndpointScheme = adminEndpoint.getScheme();
final HttpConnectorFactory adminConnector = getServiceConnector(adminEndpointScheme);
adminConnector.setPort(adminEndpoint.getPort());
serviceConnector.setBindHost(adminEndpoint.getHost());
// bind host should be taken from endpoint.getHost() above. But how to pass in admin endpoint scheme?
// serviceConnector.setBindHost(adminEndpoint.getHost());
// ((HttpsConnectorFactory) adminConnector).setKeyStorePath("path to key store");
serverFactory.setAdminConnectors(ImmutableList.<ConnectorFactory>of(adminConnector));
}

Expand Down

0 comments on commit fc1b4c1

Please sign in to comment.