@Generated(value="ons-client") public abstract class ONSClientAbstract extends Object implements Admin
| Modifier and Type | Field and Description |
|---|---|
protected String |
nameServerAddr |
protected String |
namespaceId |
protected Properties |
properties |
protected SessionCredentials |
sessionCredentials |
protected AtomicBoolean |
started |
protected 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) |
protected void |
executePostHandle(List<Runnable> postHandleStack) |
String |
getNameServerAddr() |
protected String |
getNamespace() |
boolean |
isClosed() |
boolean |
isStarted() |
protected boolean |
preHandle(ServiceLoader serviceLoader,
InvocationContext invocationContext,
List<Runnable> runnables) |
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 SessionCredentials sessionCredentials
protected String nameServerAddr
protected AsyncDispatcher traceDispatcher
protected final AtomicBoolean started
protected final String namespaceId
public ONSClientAbstract(Properties properties)
protected abstract void updateNameServerAddr(String newAddrs)
protected boolean preHandle(ServiceLoader serviceLoader, InvocationContext invocationContext, List<Runnable> runnables)
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–2021. All rights reserved.