@Generated(value="ons-client") public abstract class ONSClientAbstract extends Object implements Admin
| Modifier and Type | Field and Description |
|---|---|
protected String |
nameServerAddr |
protected Properties |
properties |
protected com.aliyun.openservices.ons.api.impl.authority.SessionCredentials |
sessionCredentials |
protected AtomicBoolean |
started |
protected com.alibaba.ons.open.trace.core.dispatch.AsyncDispatcher |
traceDispatcher |
protected static String |
WSADDR_INTERNAL
内网地址服务器
|
protected static long |
WSADDR_INTERNAL_TIMEOUTMILLS |
protected static String |
WSADDR_INTERNET
公网地址服务器
|
protected static long |
WSADDR_INTERNET_TIMEOUTMILLS |
| Constructor and Description |
|---|
ONSClientAbstract(Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildIntanceName() |
protected void |
checkONSProducerServiceState(com.alibaba.rocketmq.client.impl.producer.DefaultMQProducerImpl producer) |
String |
getNameServerAddr() |
protected String |
getNamespace() |
boolean |
isClosed() |
boolean |
isStarted() |
void |
shutdown() |
void |
start() |
void |
updateCredential(Properties credentialProperties) |
protected abstract void |
updateNameServerAddr(String newAddrs) |
protected static final String WSADDR_INTERNAL
protected static final String WSADDR_INTERNET
protected static final long WSADDR_INTERNAL_TIMEOUTMILLS
protected static final long WSADDR_INTERNET_TIMEOUTMILLS
protected final Properties properties
protected final com.aliyun.openservices.ons.api.impl.authority.SessionCredentials sessionCredentials
protected String nameServerAddr
protected com.alibaba.ons.open.trace.core.dispatch.AsyncDispatcher traceDispatcher
protected final AtomicBoolean started
public ONSClientAbstract(Properties properties)
protected abstract void updateNameServerAddr(String newAddrs)
public String getNameServerAddr()
protected String buildIntanceName()
protected String getNamespace()
protected void checkONSProducerServiceState(com.alibaba.rocketmq.client.impl.producer.DefaultMQProducerImpl producer)
public void updateCredential(Properties credentialProperties)
updateCredential in interface AdminCopyright © 2012–2019. All rights reserved.