public class OpenWireConnection extends AbstractRemotingConnection implements org.apache.activemq.artemis.core.security.SecurityAuth, TempQueueObserver
| Modifier and Type | Class and Description |
|---|---|
class |
OpenWireConnection.CommandProcessor |
closeListeners, creationTime, dataReceived, executor, failureListeners, transportConnection| Constructor and Description |
|---|
OpenWireConnection(Connection connection,
ActiveMQServer server,
OpenWireProtocolManager openWireProtocolManager,
org.apache.activemq.openwire.OpenWireFormat wf,
Executor executor) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConsumer(org.apache.activemq.command.ConsumerInfo info) |
void |
addDestination(org.apache.activemq.command.DestinationInfo info) |
void |
addKnownDestination(SimpleString address) |
AMQSession |
addSession(org.apache.activemq.command.SessionInfo ss) |
AMQSession |
addSession(org.apache.activemq.command.SessionInfo ss,
boolean internal) |
void |
addSessions(Set<org.apache.activemq.command.SessionId> sessionSet) |
void |
bufferReceived(Object connectionID,
ActiveMQBuffer buffer) |
boolean |
checkDataReceived() |
boolean |
containsKnownDestination(SimpleString address) |
void |
deliverMessage(org.apache.activemq.command.MessageDispatch dispatch) |
void |
destroy() |
void |
disableTtl() |
void |
disconnect(boolean criticalError) |
void |
disconnect(String reason,
boolean fail) |
void |
dispatch(org.apache.activemq.command.Command command) |
void |
dispatchAsync(org.apache.activemq.command.Command message) |
void |
dispatchSync(org.apache.activemq.command.Command message) |
void |
enableTtl() |
void |
fail(ActiveMQException me,
String message) |
void |
flush() |
AMQSession |
getAdvisorySession() |
String |
getClientID() |
AMQConnectionContext |
getContext() |
OperationContext |
getOperationContext() |
String |
getPassword() |
String |
getProtocolName() |
OpenWireConnection |
getRemotingConnection() |
String |
getSecurityDomain() |
AMQSession |
getSession(org.apache.activemq.command.SessionId sessionId) |
org.apache.activemq.state.ConnectionState |
getState() |
List<org.apache.activemq.command.DestinationInfo> |
getTemporaryDestinations() |
String |
getTransportLocalAddress() |
String |
getUsername() |
AMQConnectionContext |
initContext(org.apache.activemq.command.ConnectionInfo info) |
boolean |
isClient() |
boolean |
isDestroyed() |
boolean |
isNoLocal() |
boolean |
isSuppportAdvisory() |
boolean |
isSuppressInternalManagementObjects() |
void |
killMessage(SimpleString nodeID) |
static XAException |
newXAException(String s,
int errorCode) |
void |
physicalSend(org.apache.activemq.command.Command command) |
protected void |
processDispatch(org.apache.activemq.command.Command command) |
void |
reconnect(AMQConnectionContext existingContext,
org.apache.activemq.command.ConnectionInfo info) |
void |
removeDestination(org.apache.activemq.command.ActiveMQDestination dest) |
void |
removeSession(AMQConnectionContext context,
org.apache.activemq.command.SessionInfo info) |
boolean |
sendCommand(org.apache.activemq.command.Command command)
This will answer with commands to the client
|
void |
sendException(Exception e) |
void |
sendHandshake() |
void |
serviceException(Throwable e) |
void |
setAdvisorySession(AMQSession amqSession) |
void |
setConnectionEntry(ConnectionEntry connectionEntry) |
void |
setNoLocal(boolean noLocal) |
void |
setUpTtl(long inactivityDuration,
long inactivityDurationInitialDelay,
boolean useKeepAlive) |
void |
tempQueueDeleted(SimpleString bindingName) |
void |
updateClient(org.apache.activemq.command.ConnectionControl control) |
void |
updateConsumer(org.apache.activemq.command.ConsumerControl consumerControl) |
org.apache.activemq.openwire.OpenWireFormat |
wireFormat() |
addCloseListener, addFailureListener, asyncFail, callClosingListeners, callFailureListeners, createTransportBuffer, fail, getAuditSubject, getCreationTime, getFailureListeners, getID, getLocalAddress, getRemoteAddress, getSubject, getTransportConnection, isSupportReconnect, isSupportsFlowControl, isWritable, removeCloseListener, removeCloseListeners, removeFailureListener, removeFailureListeners, scheduledFlush, setAuditSubject, setClientID, setCloseListeners, setFailureListenersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisSameTargetpublic OpenWireConnection(Connection connection, ActiveMQServer server, OpenWireProtocolManager openWireProtocolManager, org.apache.activemq.openwire.OpenWireFormat wf, Executor executor)
public String getUsername()
getUsername in interface org.apache.activemq.artemis.core.security.SecurityAuthpublic OperationContext getOperationContext()
public OpenWireConnection getRemotingConnection()
getRemotingConnection in interface org.apache.activemq.artemis.core.security.SecurityAuthpublic String getSecurityDomain()
getSecurityDomain in interface org.apache.activemq.artemis.core.security.SecurityAuthpublic String getPassword()
getPassword in interface org.apache.activemq.artemis.core.security.SecurityAuthpublic void bufferReceived(Object connectionID, ActiveMQBuffer buffer)
bufferReceived in interface BufferHandlerbufferReceived in class AbstractRemotingConnectionpublic void sendException(Exception e)
public void destroy()
destroy in interface RemotingConnectionpublic boolean isClient()
isClient in interface RemotingConnectionpublic boolean isDestroyed()
isDestroyed in interface RemotingConnectionpublic void disconnect(boolean criticalError)
disconnect in interface RemotingConnectionpublic void flush()
flush in interface RemotingConnectionpublic void sendHandshake()
public org.apache.activemq.state.ConnectionState getState()
public void physicalSend(org.apache.activemq.command.Command command)
throws IOException
IOExceptionpublic void dispatchAsync(org.apache.activemq.command.Command message)
throws Exception
Exceptionpublic void dispatchSync(org.apache.activemq.command.Command message)
throws Exception
Exceptionpublic void dispatch(org.apache.activemq.command.Command command)
throws IOException
IOExceptionprotected void processDispatch(org.apache.activemq.command.Command command)
throws IOException
IOExceptionpublic void deliverMessage(org.apache.activemq.command.MessageDispatch dispatch)
public org.apache.activemq.openwire.OpenWireFormat wireFormat()
public void disconnect(String reason, boolean fail)
disconnect in interface RemotingConnectionpublic void fail(ActiveMQException me, String message)
fail in interface RemotingConnectionpublic void setAdvisorySession(AMQSession amqSession)
public AMQSession getAdvisorySession()
public AMQConnectionContext getContext()
public void updateClient(org.apache.activemq.command.ConnectionControl control)
throws Exception
Exceptionpublic AMQConnectionContext initContext(org.apache.activemq.command.ConnectionInfo info) throws Exception
Exceptionpublic void reconnect(AMQConnectionContext existingContext, org.apache.activemq.command.ConnectionInfo info)
public boolean sendCommand(org.apache.activemq.command.Command command)
public void addDestination(org.apache.activemq.command.DestinationInfo info)
throws Exception
Exceptionpublic void updateConsumer(org.apache.activemq.command.ConsumerControl consumerControl)
public void addConsumer(org.apache.activemq.command.ConsumerInfo info)
throws Exception
Exceptionpublic void setConnectionEntry(ConnectionEntry connectionEntry)
public boolean checkDataReceived()
checkDataReceived in interface RemotingConnectioncheckDataReceived in class AbstractRemotingConnectionpublic void setUpTtl(long inactivityDuration,
long inactivityDurationInitialDelay,
boolean useKeepAlive)
public void addKnownDestination(SimpleString address)
public boolean containsKnownDestination(SimpleString address)
public void tempQueueDeleted(SimpleString bindingName)
tempQueueDeleted in interface TempQueueObserverpublic void disableTtl()
public void enableTtl()
public boolean isNoLocal()
public void setNoLocal(boolean noLocal)
public List<org.apache.activemq.command.DestinationInfo> getTemporaryDestinations()
public boolean isSuppressInternalManagementObjects()
public boolean isSuppportAdvisory()
public void addSessions(Set<org.apache.activemq.command.SessionId> sessionSet)
public AMQSession addSession(org.apache.activemq.command.SessionInfo ss)
public AMQSession addSession(org.apache.activemq.command.SessionInfo ss, boolean internal)
public void removeSession(AMQConnectionContext context, org.apache.activemq.command.SessionInfo info) throws Exception
Exceptionpublic AMQSession getSession(org.apache.activemq.command.SessionId sessionId)
public void removeDestination(org.apache.activemq.command.ActiveMQDestination dest)
throws Exception
Exceptionpublic static XAException newXAException(String s, int errorCode)
public void killMessage(SimpleString nodeID)
killMessage in interface RemotingConnectionpublic String getProtocolName()
getProtocolName in interface RemotingConnectionpublic String getClientID()
getClientID in interface RemotingConnectiongetClientID in class AbstractRemotingConnectionpublic String getTransportLocalAddress()
getTransportLocalAddress in interface RemotingConnectionCopyright © 2020 The Apache Software Foundation. All rights reserved.