public class SpringMvcRegisterWrapper extends Object implements ISpringMvcRegister
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
DEFAULT_IP_ENV_NAME |
| 构造器和说明 |
|---|
SpringMvcRegisterWrapper() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
String |
getIpEnvName() |
String |
getLocalIp() |
Integer |
getPort() |
void |
refresh() |
void |
regist() |
void |
setBasePath(String basePath) |
void |
setClient(org.apache.curator.framework.CuratorFramework client) |
void |
setIpEnvName(String ipEnvName) |
void |
setPreServiceName(String preServiceName) |
void |
setSpringMvcServiceScanner(SpringMvcServiceScanner springMvcServiceScanner) |
@PostConstruct public void regist() throws Exception
regist 在接口中 ISpringMvcRegisterException@Scheduled(initialDelay=10000L,
fixedDelay=30000L)
public void refresh()
throws Exception
refresh 在接口中 ISpringMvcRegisterException@PreDestroy public void close() throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionpublic String getLocalIp()
public String getIpEnvName()
public void setIpEnvName(String ipEnvName)
public void setSpringMvcServiceScanner(SpringMvcServiceScanner springMvcServiceScanner)
public void setClient(org.apache.curator.framework.CuratorFramework client)
public void setBasePath(String basePath)
public void setPreServiceName(String preServiceName)
Copyright © 2017. All rights reserved.