public abstract class HttpHostDiscover
extends java.lang.Thread
| 构造器和说明 |
|---|
HttpHostDiscover() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected abstract java.util.List<HttpHost> |
discover(HttpServiceHostsConfig httpServiceHostsConfig,
ClientConfiguration configuration,
org.frameworkset.spi.assemble.GetProperties context) |
void |
handleDiscoverHosts(java.util.List<HttpHost> _hosts)
主动定时服务发现和被动服务发现api
|
protected java.lang.Boolean |
handleNullOrEmptyHostsByDiscovery()
返回false,忽略对返回的null或者空的hosts进行处理;
返回true,要对null或者空的hosts进行处理,这样会导致所有的地址不可用
|
void |
run() |
void |
setHttpServiceHosts(HttpServiceHosts httpServiceHosts) |
void |
start() |
void |
stopCheck() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, toString, yieldpublic void stopCheck()
public void handleDiscoverHosts(java.util.List<HttpHost> _hosts)
_hosts - protected abstract java.util.List<HttpHost> discover(HttpServiceHostsConfig httpServiceHostsConfig, ClientConfiguration configuration, org.frameworkset.spi.assemble.GetProperties context)
public void run()
run 在接口中 java.lang.Runnablerun 在类中 java.lang.Threadpublic void setHttpServiceHosts(HttpServiceHosts httpServiceHosts)
public void start()
start 在类中 java.lang.Threadprotected java.lang.Boolean handleNullOrEmptyHostsByDiscovery()