Interface ServerLocatorInternal
- All Superinterfaces:
AutoCloseable,ServerLocator
- All Known Implementing Classes:
ServerLocatorImpl
-
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()connect()Likeconnect()but it does not log warnings if it fails to connect.voidfactoryClosed(ClientSessionFactory factory) intlonggetNextRetryInterval(long retryInterval, double retryIntervalMultiplier, long maxRetryInterval) Exposes the Topology used by this ServerLocator.booleanbooleandefault voidnotifyNodeDown(long uniqueEventID, String nodeID) Notify this about a node down event.voidnotifyNodeDown(long uniqueEventID, String nodeID, boolean disconnect) voidnotifyNodeUp(long uniqueEventID, String nodeID, String backupGroupName, String scaleDownGroupName, Pair<TransportConfiguration, TransportConfiguration> connectorPair, boolean last) voidsetClusterConnection(boolean clusterConnection) setDiscoveryListener(DiscoveryListener listener) setIdentity(String identity) Used to better identify Cluster Connection Locators on logs.voidMethods inherited from interface org.apache.activemq.artemis.api.core.client.ServerLocator
addClusterTopologyListener, addIncomingInterceptor, addOutgoingInterceptor, allInVM, close, createSessionFactory, createSessionFactory, createSessionFactory, createSessionFactory, createSessionFactory, disableFinalizeCheck, getAckBatchSize, getCallFailoverTimeout, getCallTimeout, getClientFailureCheckPeriod, getCompressionLevel, getConfirmationWindowSize, getConnectionLoadBalancingPolicyClassName, getConnectionTTL, getConsumerMaxRate, getConsumerWindowSize, getDiscoveryGroupConfiguration, getFailoverAttempts, getFlowControlThreadPoolMaxSize, getGroupID, getIncomingInterceptorList, getInitialConnectAttempts, getInitialMessagePacketSize, getLocatorConfig, getMaxRetryInterval, getMinLargeMessageSize, getOnMessageCloseTimeout, getOutgoingInterceptorList, getPasswordCodec, getProducerMaxRate, getProducerWindowSize, getProtocolManagerFactory, getReconnectAttempts, getRetryInterval, getRetryIntervalMultiplier, getScheduledThreadPoolMaxSize, getStaticTransportConfigurations, getThreadPoolMaxSize, getUseTopologyForLoadBalancing, initialize, isAutoGroup, isBlockOnAcknowledge, isBlockOnDurableSend, isBlockOnNonDurableSend, isCacheLargeMessagesClient, isClosed, isCompressLargeMessage, isFailoverOnInitialConnection, isHA, isPreAcknowledge, isUseGlobalPools, removeClusterTopologyListener, removeIncomingInterceptor, removeOutgoingInterceptor, setAckBatchSize, setAutoGroup, setBlockOnAcknowledge, setBlockOnDurableSend, setBlockOnNonDurableSend, setCacheLargeMessagesClient, setCallFailoverTimeout, setCallTimeout, setClientFailureCheckPeriod, setCompressionLevel, setCompressLargeMessage, setConfirmationWindowSize, setConnectionLoadBalancingPolicyClassName, setConnectionTTL, setConsumerMaxRate, setConsumerWindowSize, setFailoverAttempts, setFailoverOnInitialConnection, setFlowControlThreadPoolMaxSize, setGroupID, setIncomingInterceptorList, setInitialConnectAttempts, setInitialMessagePacketSize, setLocatorConfig, setMaxRetryInterval, setMinLargeMessageSize, setOnMessageCloseTimeout, setOutgoingInterceptorList, setPasswordCodec, setPreAcknowledge, setProducerMaxRate, setProducerWindowSize, setProtocolManagerFactory, setReconnectAttempts, setRetryInterval, setRetryIntervalMultiplier, setScheduledThreadPoolMaxSize, setThreadPoolMaxSize, setThreadPools, setUseGlobalPools, setUseTopologyForLoadBalancing
-
Method Details
-
start
- Throws:
Exception
-
factoryClosed
-
getAfterConnectInternalListener
AfterConnectInternalListener getAfterConnectInternalListener() -
setAfterConnectionInternalListener
-
setDiscoveryListener
-
setIdentity
Used to better identify Cluster Connection Locators on logs. To facilitate eventual debugging.This method used to be on tests interface, but I'm now making it part of the public interface since
-
setNodeID
-
getNodeID
String getNodeID() -
cleanup
void cleanup() -
resetToInitialConnectors
void resetToInitialConnectors() -
connect
- Throws:
ActiveMQException
-
connectNoWarnings
Likeconnect()but it does not log warnings if it fails to connect.- Throws:
ActiveMQException
-
notifyNodeUp
void notifyNodeUp(long uniqueEventID, String nodeID, String backupGroupName, String scaleDownGroupName, Pair<TransportConfiguration, TransportConfiguration> connectorPair, boolean last) -
notifyNodeDown
Notify this about a node down event.- Parameters:
uniqueEventID- 0 means get the previous ID +1
-
notifyNodeDown
-
setClusterConnection
-
isClusterConnection
boolean isClusterConnection() -
getClusterTransportConfiguration
TransportConfiguration getClusterTransportConfiguration() -
setClusterTransportConfiguration
-
getTopology
Topology getTopology()Description copied from interface:ServerLocatorExposes the Topology used by this ServerLocator.- Specified by:
getTopologyin interfaceServerLocator- Returns:
- topology
-
newProtocolManager
ClientProtocolManager newProtocolManager() -
isConnectable
boolean isConnectable() -
getConnectorsSize
int getConnectorsSize() -
selectNextConnectorPair
Pair<TransportConfiguration,TransportConfiguration> selectNextConnectorPair() -
getNextRetryInterval
long getNextRetryInterval(long retryInterval, double retryIntervalMultiplier, long maxRetryInterval)
-