public class ConsulRegistration extends Object implements org.springframework.cloud.client.serviceregistry.Registration
构造器和说明 |
---|
ConsulRegistration(com.ecwid.consul.v1.agent.model.NewService service,
ConsulDiscoveryProperties properties) |
限定符和类型 | 方法和说明 |
---|---|
String |
getHost() |
String |
getInstanceId() |
Map<String,String> |
getMetadata() |
int |
getPort() |
protected ConsulDiscoveryProperties |
getProperties() |
com.ecwid.consul.v1.agent.model.NewService |
getService() |
String |
getServiceId() |
URI |
getUri() |
boolean |
isSecure() |
public ConsulRegistration(com.ecwid.consul.v1.agent.model.NewService service, ConsulDiscoveryProperties properties)
public com.ecwid.consul.v1.agent.model.NewService getService()
protected ConsulDiscoveryProperties getProperties()
public String getInstanceId()
public String getServiceId()
getServiceId
在接口中 org.springframework.cloud.client.ServiceInstance
public String getHost()
getHost
在接口中 org.springframework.cloud.client.ServiceInstance
public int getPort()
getPort
在接口中 org.springframework.cloud.client.ServiceInstance
public boolean isSecure()
isSecure
在接口中 org.springframework.cloud.client.ServiceInstance
public URI getUri()
getUri
在接口中 org.springframework.cloud.client.ServiceInstance
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.