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