public class DefaultEndpointLocator extends Object implements EndpointLocator
EndpointLocator
implementation that:
ServerProperties
or Registration
ServerProperties
ServerProperties
ZipkinProperties.Service.setName(String)
Constructor and Description |
---|
DefaultEndpointLocator(org.springframework.cloud.client.serviceregistry.Registration registration,
org.springframework.boot.autoconfigure.web.ServerProperties serverProperties,
org.springframework.core.env.Environment environment,
ZipkinProperties zipkinProperties,
org.springframework.cloud.commons.util.InetUtils inetUtils) |
Modifier and Type | Method and Description |
---|---|
void |
grabPort(org.springframework.boot.context.embedded.EmbeddedServletContainerInitializedEvent event) |
zipkin2.Endpoint |
local() |
public DefaultEndpointLocator(org.springframework.cloud.client.serviceregistry.Registration registration, org.springframework.boot.autoconfigure.web.ServerProperties serverProperties, org.springframework.core.env.Environment environment, ZipkinProperties zipkinProperties, org.springframework.cloud.commons.util.InetUtils inetUtils)
public zipkin2.Endpoint local()
local
in interface EndpointLocator
@EventListener(value=org.springframework.boot.context.embedded.EmbeddedServletContainerInitializedEvent.class) public void grabPort(org.springframework.boot.context.embedded.EmbeddedServletContainerInitializedEvent event)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.