public class AnsRegistration extends Object implements org.springframework.cloud.client.serviceregistry.Registration, org.springframework.cloud.client.ServiceInstance
| Constructor and Description |
|---|
AnsRegistration(AnsProperties ansProperties,
org.springframework.context.ApplicationContext context) |
| Modifier and Type | Method and Description |
|---|---|
AnsProperties |
getAnsProperties() |
String |
getCluster() |
String |
getHost() |
Map<String,String> |
getMetadata() |
int |
getPort() |
float |
getRegisterWeight(String dom) |
String |
getServiceId() |
URI |
getUri() |
void |
init() |
boolean |
isRegisterEnabled() |
boolean |
isSecure() |
void |
setPort(int port) |
String |
toString() |
public AnsRegistration(AnsProperties ansProperties, org.springframework.context.ApplicationContext context)
@PostConstruct public void init()
public String getServiceId()
getServiceId in interface org.springframework.cloud.client.ServiceInstancepublic String getHost()
getHost in interface org.springframework.cloud.client.ServiceInstancepublic int getPort()
getPort in interface org.springframework.cloud.client.ServiceInstancepublic void setPort(int port)
public boolean isSecure()
isSecure in interface org.springframework.cloud.client.ServiceInstancepublic URI getUri()
getUri in interface org.springframework.cloud.client.ServiceInstancepublic Map<String,String> getMetadata()
getMetadata in interface org.springframework.cloud.client.ServiceInstancepublic boolean isRegisterEnabled()
public String getCluster()
public float getRegisterWeight(String dom)
public AnsProperties getAnsProperties()
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.