public class OpenWireProtocolManager extends Object implements ProtocolManager<org.apache.activemq.artemis.api.core.Interceptor>, org.apache.activemq.artemis.api.core.client.ClusterTopologyListener
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.activemq.command.ProducerId |
advisoryProducerId |
| Constructor and Description |
|---|
OpenWireProtocolManager(OpenWireProtocolManagerFactory factory,
org.apache.activemq.artemis.core.server.ActiveMQServer server) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptsNoHandshake() |
void |
addChannelHandlers(io.netty.channel.ChannelPipeline pipeline) |
void |
addConnection(OpenWireConnection connection,
org.apache.activemq.command.ConnectionInfo info) |
ConnectionEntry |
createConnectionEntry(Acceptor acceptorUsed,
Connection connection) |
void |
fireAdvisory(AMQConnectionContext context,
org.apache.activemq.command.ActiveMQTopic topic,
org.apache.activemq.command.Command copy) |
void |
fireAdvisory(AMQConnectionContext context,
org.apache.activemq.command.ActiveMQTopic topic,
org.apache.activemq.command.Command command,
org.apache.activemq.command.ConsumerId targetConsumerId,
String originalConnectionId) |
org.apache.activemq.command.BrokerId |
getBrokerId() |
String |
getBrokerName() |
ProtocolManagerFactory<org.apache.activemq.artemis.api.core.Interceptor> |
getFactory() |
OpenWireMessageConverter |
getInternalConverter() |
long |
getMaxInactivityDuration() |
long |
getMaxInactivityDurationInitalDelay() |
Map<org.apache.activemq.artemis.api.core.SimpleString,org.apache.activemq.artemis.api.core.RoutingType> |
getPrefixes() |
ScheduledExecutorService |
getScheduledPool() |
org.apache.activemq.artemis.core.server.ActiveMQServer |
getServer() |
List<org.apache.activemq.command.DestinationInfo> |
getTemporaryDestinations() |
void |
handleBuffer(RemotingConnection connection,
org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer) |
void |
handshake(org.apache.activemq.artemis.core.remoting.impl.netty.NettyServerConnection connection,
org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer) |
boolean |
isFaultTolerantConfiguration() |
boolean |
isProtocol(byte[] array) |
boolean |
isRebalanceClusterClients()
URI property
|
boolean |
isStopped() |
boolean |
isStopping() |
boolean |
isUpdateClusterClients() |
boolean |
isUpdateClusterClientsOnRemove()
URI property
|
boolean |
isUseKeepAlive() |
protected org.apache.activemq.command.ConnectionControl |
newConnectionControl() |
void |
nodeDown(long eventUID,
String nodeID) |
void |
nodeUP(org.apache.activemq.artemis.api.core.client.TopologyMember member,
boolean last) |
void |
postProcessDispatch(org.apache.activemq.command.MessageDispatch md) |
void |
preProcessDispatch(org.apache.activemq.command.MessageDispatch messageDispatch) |
void |
removeConnection(org.apache.activemq.command.ConnectionInfo info,
Throwable error) |
void |
removeHandler(String name) |
void |
sendBrokerInfo(OpenWireConnection connection) |
void |
setAnycastPrefix(String anycastPrefix) |
void |
setBrokerName(String name) |
void |
setMaxInactivityDuration(long maxInactivityDuration) |
void |
setMaxInactivityDurationInitalDelay(long maxInactivityDurationInitalDelay) |
void |
setMulticastPrefix(String multicastPrefix) |
void |
setRebalanceClusterClients(boolean rebalance)
URI property
|
void |
setUpdateClusterClients(boolean updateClusterClients)
URI property
|
void |
setUpdateClusterClientsOnRemove(boolean updateClusterClientsOnRemove)
URI property
|
void |
setUpInactivityParams(OpenWireConnection connection,
org.apache.activemq.command.WireFormatInfo command) |
void |
setUseKeepAlive(boolean useKeepAlive) |
void |
updateInterceptors(List<org.apache.activemq.artemis.api.core.BaseInterceptor> incomingInterceptors,
List<org.apache.activemq.artemis.api.core.BaseInterceptor> outgoingInterceptors) |
void |
validateUser(String login,
String passcode,
OpenWireConnection connection) |
List<String> |
websocketSubprotocolIdentifiers() |
protected final org.apache.activemq.command.ProducerId advisoryProducerId
public OpenWireProtocolManager(OpenWireProtocolManagerFactory factory, org.apache.activemq.artemis.core.server.ActiveMQServer server)
public void nodeUP(org.apache.activemq.artemis.api.core.client.TopologyMember member,
boolean last)
nodeUP in interface org.apache.activemq.artemis.api.core.client.ClusterTopologyListenerpublic void nodeDown(long eventUID,
String nodeID)
nodeDown in interface org.apache.activemq.artemis.api.core.client.ClusterTopologyListenerpublic void removeConnection(org.apache.activemq.command.ConnectionInfo info,
Throwable error)
throws javax.jms.InvalidClientIDException
javax.jms.InvalidClientIDExceptionpublic ScheduledExecutorService getScheduledPool()
public org.apache.activemq.artemis.core.server.ActiveMQServer getServer()
public boolean acceptsNoHandshake()
acceptsNoHandshake in interface ProtocolManager<org.apache.activemq.artemis.api.core.Interceptor>public ProtocolManagerFactory<org.apache.activemq.artemis.api.core.Interceptor> getFactory()
getFactory in interface ProtocolManager<org.apache.activemq.artemis.api.core.Interceptor>public void updateInterceptors(List<org.apache.activemq.artemis.api.core.BaseInterceptor> incomingInterceptors, List<org.apache.activemq.artemis.api.core.BaseInterceptor> outgoingInterceptors)
updateInterceptors in interface ProtocolManager<org.apache.activemq.artemis.api.core.Interceptor>public ConnectionEntry createConnectionEntry(Acceptor acceptorUsed, Connection connection)
createConnectionEntry in interface ProtocolManager<org.apache.activemq.artemis.api.core.Interceptor>public void removeHandler(String name)
removeHandler in interface ProtocolManager<org.apache.activemq.artemis.api.core.Interceptor>public void handleBuffer(RemotingConnection connection, org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer)
handleBuffer in interface ProtocolManager<org.apache.activemq.artemis.api.core.Interceptor>public void addChannelHandlers(io.netty.channel.ChannelPipeline pipeline)
addChannelHandlers in interface ProtocolManager<org.apache.activemq.artemis.api.core.Interceptor>public boolean isProtocol(byte[] array)
isProtocol in interface ProtocolManager<org.apache.activemq.artemis.api.core.Interceptor>public void handshake(org.apache.activemq.artemis.core.remoting.impl.netty.NettyServerConnection connection,
org.apache.activemq.artemis.api.core.ActiveMQBuffer buffer)
handshake in interface ProtocolManager<org.apache.activemq.artemis.api.core.Interceptor>public List<String> websocketSubprotocolIdentifiers()
websocketSubprotocolIdentifiers in interface ProtocolManager<org.apache.activemq.artemis.api.core.Interceptor>public void addConnection(OpenWireConnection connection, org.apache.activemq.command.ConnectionInfo info) throws Exception
Exceptionpublic void fireAdvisory(AMQConnectionContext context, org.apache.activemq.command.ActiveMQTopic topic, org.apache.activemq.command.Command copy) throws Exception
Exceptionpublic org.apache.activemq.command.BrokerId getBrokerId()
public void fireAdvisory(AMQConnectionContext context, org.apache.activemq.command.ActiveMQTopic topic, org.apache.activemq.command.Command command, org.apache.activemq.command.ConsumerId targetConsumerId, String originalConnectionId) throws Exception
Exceptionpublic String getBrokerName()
protected org.apache.activemq.command.ConnectionControl newConnectionControl()
public boolean isFaultTolerantConfiguration()
public void postProcessDispatch(org.apache.activemq.command.MessageDispatch md)
public boolean isStopped()
public void preProcessDispatch(org.apache.activemq.command.MessageDispatch messageDispatch)
public boolean isStopping()
public void validateUser(String login, String passcode, OpenWireConnection connection) throws Exception
Exceptionpublic void sendBrokerInfo(OpenWireConnection connection) throws Exception
Exceptionpublic void setUpInactivityParams(OpenWireConnection connection, org.apache.activemq.command.WireFormatInfo command) throws IOException
IOExceptionpublic void setRebalanceClusterClients(boolean rebalance)
public boolean isRebalanceClusterClients()
public void setUpdateClusterClients(boolean updateClusterClients)
public boolean isUpdateClusterClients()
public void setUpdateClusterClientsOnRemove(boolean updateClusterClientsOnRemove)
public boolean isUpdateClusterClientsOnRemove()
public void setBrokerName(String name)
public boolean isUseKeepAlive()
public void setUseKeepAlive(boolean useKeepAlive)
public long getMaxInactivityDuration()
public void setMaxInactivityDuration(long maxInactivityDuration)
public long getMaxInactivityDurationInitalDelay()
public void setMaxInactivityDurationInitalDelay(long maxInactivityDurationInitalDelay)
public void setAnycastPrefix(String anycastPrefix)
setAnycastPrefix in interface ProtocolManager<org.apache.activemq.artemis.api.core.Interceptor>public void setMulticastPrefix(String multicastPrefix)
setMulticastPrefix in interface ProtocolManager<org.apache.activemq.artemis.api.core.Interceptor>public Map<org.apache.activemq.artemis.api.core.SimpleString,org.apache.activemq.artemis.api.core.RoutingType> getPrefixes()
getPrefixes in interface ProtocolManager<org.apache.activemq.artemis.api.core.Interceptor>public List<org.apache.activemq.command.DestinationInfo> getTemporaryDestinations()
public OpenWireMessageConverter getInternalConverter()
Copyright © 2017 The Apache Software Foundation. All Rights Reserved.