public class ServerPropertiesHostLocator extends Object implements HostLocator
HostLocator that retrieves:
Span.getProcessId() or current application nameServerPropertiesServerProperties| Constructor and Description |
|---|
ServerPropertiesHostLocator(org.springframework.boot.autoconfigure.web.ServerProperties serverProperties,
String appName) |
| Modifier and Type | Method and Description |
|---|---|
void |
grabPort(org.springframework.boot.context.embedded.EmbeddedServletContainerInitializedEvent event) |
Host |
locate(Span span) |
public ServerPropertiesHostLocator(org.springframework.boot.autoconfigure.web.ServerProperties serverProperties,
String appName)
public Host locate(Span span)
locate in interface HostLocator@EventListener(value=org.springframework.boot.context.embedded.EmbeddedServletContainerInitializedEvent.class) public void grabPort(org.springframework.boot.context.embedded.EmbeddedServletContainerInitializedEvent event)
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.