public class ServerPropertiesHostLocator extends Object implements HostLocator
HostLocator that retrieves:
Span.getProcessId() or current application nameServerPropertiesServerPropertiesZipkinProperties.getService()| Constructor and Description |
|---|
ServerPropertiesHostLocator(org.springframework.boot.autoconfigure.web.ServerProperties serverProperties,
String appName)
Deprecated.
|
ServerPropertiesHostLocator(org.springframework.boot.autoconfigure.web.ServerProperties serverProperties,
String appName,
ZipkinProperties zipkinProperties,
org.springframework.cloud.commons.util.InetUtils inetUtils) |
| Modifier and Type | Method and Description |
|---|---|
void |
grabPort(org.springframework.boot.context.embedded.EmbeddedServletContainerInitializedEvent event) |
Host |
locate(Span span) |
@Deprecated public ServerPropertiesHostLocator(org.springframework.boot.autoconfigure.web.ServerProperties serverProperties, String appName)
public ServerPropertiesHostLocator(org.springframework.boot.autoconfigure.web.ServerProperties serverProperties,
String appName,
ZipkinProperties zipkinProperties,
org.springframework.cloud.commons.util.InetUtils inetUtils)
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 © 2017 Pivotal Software, Inc.. All rights reserved.