Class DefaultEndpointLocator
- java.lang.Object
-
- org.springframework.cloud.sleuth.zipkin2.DefaultEndpointLocator
-
- All Implemented Interfaces:
EventListener,EndpointLocator,org.springframework.context.ApplicationListener<org.springframework.boot.web.servlet.context.ServletWebServerInitializedEvent>
public class DefaultEndpointLocator extends Object implements EndpointLocator, org.springframework.context.ApplicationListener<org.springframework.boot.web.servlet.context.ServletWebServerInitializedEvent>
EndpointLocatorimplementation that. serviceName - fromServerPropertiesorRegistrationip - fromServerPropertiesport - from lazily assigned port orServerPropertiesYou can override the name usingZipkinProperties.Service.setName(String)- Since:
- 3.0.0
- Author:
- Dave Syer
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description zipkin2.Endpointlocal()voidonApplicationEvent(org.springframework.boot.web.servlet.context.ServletWebServerInitializedEvent event)
-
-
-
Constructor Detail
-
DefaultEndpointLocator
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)
-
-
Method Detail
-
local
public zipkin2.Endpoint local()
- Specified by:
localin interfaceEndpointLocator
-
onApplicationEvent
public void onApplicationEvent(org.springframework.boot.web.servlet.context.ServletWebServerInitializedEvent event)
- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.boot.web.servlet.context.ServletWebServerInitializedEvent>
-
-