Class AMQPConnection_0_8Impl
- java.lang.Object
-
- org.apache.qpid.server.model.AbstractConfiguredObject<C>
-
- org.apache.qpid.server.transport.AbstractAMQPConnection<AMQPConnection_0_8Impl,AMQPConnection_0_8Impl>
-
- org.apache.qpid.server.protocol.v0_8.AMQPConnection_0_8Impl
-
- All Implemented Interfaces:
EventLoggerProvider,ConfiguredObject<AMQPConnection_0_8Impl>,Connection<AMQPConnection_0_8Impl>,ContextProvider,PermissionedObject,TaskExecutorProvider,AMQPConnection_0_8<AMQPConnection_0_8Impl>,MethodProcessor<ServerChannelMethodProcessor>,ServerMethodProcessor<ServerChannelMethodProcessor>,SaslSettings,AMQPConnection<AMQPConnection_0_8Impl>,TransportActivity,ProtocolEngine,Deletable<AMQPConnection_0_8Impl>
public class AMQPConnection_0_8Impl extends AbstractAMQPConnection<AMQPConnection_0_8Impl,AMQPConnection_0_8Impl> implements ServerMethodProcessor<ServerChannelMethodProcessor>, AMQPConnection_0_8<AMQPConnection_0_8Impl>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classAMQPConnection_0_8Impl.WriteDeliverMethod-
Nested classes/interfaces inherited from class org.apache.qpid.server.model.AbstractConfiguredObject
AbstractConfiguredObject.CallableWithArgument<V extends Object,A extends Object>, AbstractConfiguredObject.ChainedListenableFuture<V extends Object>, AbstractConfiguredObject.ChainedSettableFuture<V extends Object>, AbstractConfiguredObject.DuplicateIdException, AbstractConfiguredObject.DuplicateNameException
-
Nested classes/interfaces inherited from interface org.apache.qpid.server.transport.AMQPConnection
AMQPConnection.CloseReason
-
-
Field Summary
-
Fields inherited from class org.apache.qpid.server.transport.AbstractAMQPConnection
PUBLISH_ACTION_MAP_CREATOR
-
Fields inherited from class org.apache.qpid.server.model.AbstractConfiguredObject
SECURED_STRING_VALUE
-
Fields inherited from interface org.apache.qpid.server.protocol.v0_8.AMQPConnection_0_8
BATCH_LIMIT, DEFAULT_BATCH_LIMIT, DEFAULT_FORCE_MESSAGE_VALIDATION, DEFAULT_HEARTBEAT_TIMEOUT_FACTOR, DEFAULT_HIGH_PREFETCH_LIMIT, FORCE_MESSAGE_VALIDATION, HIGH_PREFETCH_LIMIT, PROPERTY_HEARTBEAT_TIMEOUT_FACTOR
-
Fields inherited from interface org.apache.qpid.server.model.ConfiguredObject
AWAIT_ATTAINMENT_TIMEOUT, CONTEXT, CREATED_BY, CREATED_TIME, DEFAULT_AWAIT_ATTAINMENT_TIMEOUT, DESCRIPTION, DESIRED_STATE, DURABLE, ID, LAST_UPDATED_BY, LAST_UPDATED_TIME, LIFETIME_POLICY, NAME, OVER_SIZED_ATTRIBUTE_ALTERNATIVE_TEXT, STATE, TYPE
-
Fields inherited from interface org.apache.qpid.server.model.Connection
CLIENT_ID, CLIENT_VERSION, CLOSE_RESPONSE_TIMEOUT, DEFAULT_CLOSE_RESPONSE_TIMEOUT, DEFAULT_MAX_MESSAGE_SIZE, DEFAULT_MAX_UNCOMMITTED_IN_MEMORY_SIZE, INCOMING, LOCAL_ADDRESS, MAX_MESSAGE_SIZE, MAX_UNCOMMITTED_IN_MEMORY_SIZE, PORT, PRINCIPAL, PROPERTIES, REMOTE_ADDRESS, REMOTE_PROCESS_NAME, REMOTE_PROCESS_PID, SESSION_COUNT_LIMIT, STATE, TRANSPORT
-
-
Constructor Summary
Constructors Constructor Description AMQPConnection_0_8Impl(Broker<?> broker, ServerNetworkConnection network, AmqpPort<?> port, Transport transport, Protocol protocol, long connectionId, AggregateTicker aggregateTicker)
-
Method Summary
-
Methods inherited from class org.apache.qpid.server.transport.AbstractAMQPConnection
addChildAsync, addDeleteTask, beforeClose, checkAuthorizedMessagePrincipal, createLocalTransaction, decrementTransactionOpenCounter, doOnIOThreadAsync, getAccessControlContextFromSubject, getAccessControllerContext, getAddressSpace, getAddressSpaceName, getAggregateTicker, getAuthorizedPrincipal, getBroker, getBytesIn, getBytesOut, getChildExecutor, getClientId, getClientProduct, getClientVersion, getConnectionId, getContextProvider, getEventLogger, getExternalPrincipal, getLastInboundMessageTime, getLastIoTime, getLastMessageTime, getLastOutboundMessageTime, getLastReadTime, getLastWriteTime, getLocalAddress, getLocalFQDN, getLocalTransactionBegins, getLocalTransactionOpen, getLocalTransactionRollbacks, getLogSubject, getMaxMessageSize, getMaxUncommittedInMemorySize, getMessageCompressionThreshold, getMessagesIn, getMessagesOut, getNetwork, getOldestTransactionStartTime, getPort, getPrincipal, getProtocol, getRemoteAddress, getRemoteAddressString, getRemoteProcessName, getRemoteProcessPid, getRemoteSocketAddress, getSessionCount, getSessions, getSubject, getTransactedMessagesIn, getTransactedMessagesOut, getTransport, getTransportInfo, incrementTransactionBeginCounter, incrementTransactionOpenCounter, incrementTransactionRollbackCounter, initialiseHeartbeating, isConnectionStopped, isIncoming, isIOThread, logCreated, logDeleted, logOperation, markTransportClosed, onClose, onDelete, onOpen, performDeleteTasks, popScheduler, pushScheduler, received, registerMessageDelivered, registerMessageReceived, registerTransactedMessageDelivered, registerTransactedMessageReceived, registerTransactionTickers, removeDeleteTask, resetStatistics, runAsSubject, setAddressSpace, setClientId, setClientProduct, setClientVersion, setIOThread, setRemoteProcessPid, setSubject, stopConnection, toString, unregisterTransactionTickers, updateAccessControllerContext, updateLastMessageInboundTime, updateLastMessageOutboundTime, updateLastWriteTime, updateMaxMessageSize
-
Methods inherited from class org.apache.qpid.server.model.AbstractConfiguredObject
addChangeListener, addFutureCallback, applyToChildren, asObjectRecord, attainState, attributesAsString, attributeSet, authorise, authorise, authorise, authoriseCreateChild, awaitChildClassToAttainState, awaitChildClassToAttainState, beforeDelete, changeAttributes, childAdded, childRemoved, close, closeAsync, closeChildren, create, createAsync, createChild, createChildAsync, decryptSecrets, delete, deleteAsync, deleteChildren, deleteNoChecks, doAfter, doAfter, doAfter, doAfter, doAfter, doAfter, doAfterAlways, doAfterAlways, doCreation, doOnConfigThread, doOpening, doResolution, doSync, doSync, doValidation, findConfiguredObject, forceUpdateAllSecureAttributes, getAccessControl, getActualAttributes, getAncestor, getAttainedChildById, getAttainedChildByName, getAttribute, getAttributeNames, getCategoryClass, getChildById, getChildByName, getChildren, getContext, getContextKeys, getContextValue, getContextValue, getCreatedBy, getCreatedTime, getDescription, getDesiredState, getId, getLastOpenedTime, getLastUpdatedBy, getLastUpdatedTime, getLifetimePolicy, getModel, getName, getObjectFactory, getParent, getState, getStatistics, getStatistics, getSubjectWithAddedSystemRights, getSystemPrincipal, getSystemTaskControllerContext, getSystemTaskSubject, getSystemTaskSubject, getTaskExecutor, getType, getTypeClass, getUserPreferences, handleExceptionOnOpen, hasEncrypter, isDurable, isSystemProcess, isSystemSubject, logRecovered, logUpdated, managesChildStorage, newToken, notifyStateChanged, onCreate, onExceptionInOpen, onResolve, onValidate, open, openAsync, postResolve, postResolveChildren, postSetAttributes, registerWithParents, removeChangeListener, removeContextVariable, rethrowRuntimeExceptionsOnOpen, runTask, setAttributes, setAttributesAsync, setContextVariable, setEncrypter, setState, setUserPreferences, start, startAsync, stop, updateModel, validateChange, validateChildDelete, validateOnCreate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.qpid.server.transport.AMQPConnection
checkAuthorizedMessagePrincipal, createLocalTransaction, decrementTransactionOpenCounter, doOnIOThreadAsync, getAccessControlContextFromSubject, getAddressSpaceName, getAggregateTicker, getAuthorizedPrincipal, getBroker, getConnectionId, getMaxMessageSize, getMessageCompressionThreshold, getPort, getRemoteAddressString, getRemoteSocketAddress, getSubject, incrementTransactionBeginCounter, incrementTransactionOpenCounter, incrementTransactionRollbackCounter, isConnectionStopped, isIOThread, popScheduler, pushScheduler, registerMessageDelivered, registerMessageReceived, registerTransactedMessageDelivered, registerTransactedMessageReceived, registerTransactionTickers, stopConnection, unregisterTransactionTickers, updateLastMessageInboundTime, updateLastMessageOutboundTime
-
Methods inherited from interface org.apache.qpid.server.protocol.v0_8.AMQPConnection_0_8
getContextProvider
-
Methods inherited from interface org.apache.qpid.server.model.ConfiguredObject
addChangeListener, asObjectRecord, authorise, authorise, authorise, close, closeAsync, createChild, createChildAsync, decryptSecrets, delete, deleteAsync, findConfiguredObject, getActualAttributes, getAttainedChildById, getAttainedChildByName, getAttribute, getAttributeNames, getCategoryClass, getChildById, getChildByName, getChildExecutor, getChildren, getContext, getCreatedBy, getCreatedTime, getDescription, getDesiredState, getId, getLastOpenedTime, getLastUpdatedBy, getLastUpdatedTime, getLifetimePolicy, getModel, getName, getObjectFactory, getParent, getState, getStatistics, getStatistics, getType, getTypeClass, getUserPreferences, hasEncrypter, isDurable, managesChildStorage, newToken, open, openAsync, removeChangeListener, removeContextVariable, setAttributes, setAttributesAsync, setContextVariable, setUserPreferences
-
Methods inherited from interface org.apache.qpid.server.model.Connection
getAddressSpace, getBytesIn, getBytesOut, getClientId, getClientProduct, getClientVersion, getLastInboundMessageTime, getLastIoTime, getLastMessageTime, getLastOutboundMessageTime, getLocalAddress, getLocalTransactionBegins, getLocalTransactionOpen, getLocalTransactionRollbacks, getMaxUncommittedInMemorySize, getMessagesIn, getMessagesOut, getOldestTransactionStartTime, getPrincipal, getProtocol, getRemoteAddress, getRemoteProcessName, getRemoteProcessPid, getSessionCount, getSessions, getTransactedMessagesIn, getTransactedMessagesOut, getTransport, getTransportInfo, isIncoming, resetStatistics
-
Methods inherited from interface org.apache.qpid.server.model.ContextProvider
getContextKeys, getContextValue, getContextValue
-
Methods inherited from interface org.apache.qpid.server.util.Deletable
addDeleteTask, removeDeleteTask
-
Methods inherited from interface org.apache.qpid.server.logging.EventLoggerProvider
getEventLogger
-
Methods inherited from interface org.apache.qpid.server.transport.ProtocolEngine
getAggregateTicker, getSubject, received, setIOThread
-
Methods inherited from interface org.apache.qpid.server.model.TaskExecutorProvider
getTaskExecutor
-
Methods inherited from interface org.apache.qpid.server.transport.network.TransportActivity
getLastReadTime, getLastWriteTime
-
-
-
-
Constructor Detail
-
AMQPConnection_0_8Impl
public AMQPConnection_0_8Impl(Broker<?> broker, ServerNetworkConnection network, AmqpPort<?> port, Transport transport, Protocol protocol, long connectionId, AggregateTicker aggregateTicker)
-
-
Method Detail
-
isTransportBlockedForWriting
public boolean isTransportBlockedForWriting()
- Specified by:
isTransportBlockedForWritingin interfaceAMQPConnection<AMQPConnection_0_8Impl>- Specified by:
isTransportBlockedForWritingin interfaceProtocolEngine
-
setTransportBlockedForWriting
public void setTransportBlockedForWriting(boolean blocked)
- Specified by:
setTransportBlockedForWritingin interfaceProtocolEngine
-
setMaxFrameSize
public void setMaxFrameSize(int frameMax)
-
getMaxFrameSize
public long getMaxFrameSize()
-
isClosing
public boolean isClosing()
- Specified by:
isClosingin interfaceAMQPConnection<AMQPConnection_0_8Impl>
-
createDeliveryMethod
public ClientDeliveryMethod createDeliveryMethod(int channelId)
- Specified by:
createDeliveryMethodin interfaceAMQPConnection_0_8<AMQPConnection_0_8Impl>
-
onReceive
protected void onReceive(QpidByteBuffer msg)
- Specified by:
onReceivein classAbstractAMQPConnection<AMQPConnection_0_8Impl,AMQPConnection_0_8Impl>
-
writeFrame
public void writeFrame(AMQDataBlock frame)
- Specified by:
writeFramein interfaceAMQPConnection_0_8<AMQPConnection_0_8Impl>
-
getChannel
public AMQChannel getChannel(int channelId)
-
channelAwaitingClosure
public boolean channelAwaitingClosure(int channelId)
- Specified by:
channelAwaitingClosurein interfaceAMQPConnection_0_8<AMQPConnection_0_8Impl>
-
closeChannel
public void closeChannel(AMQChannel channel)
- Specified by:
closeChannelin interfaceAMQPConnection_0_8<AMQPConnection_0_8Impl>
-
closeChannelAndWriteFrame
public void closeChannelAndWriteFrame(AMQChannel channel, int cause, String message)
- Specified by:
closeChannelAndWriteFramein interfaceAMQPConnection_0_8<AMQPConnection_0_8Impl>
-
closeChannel
public void closeChannel(int channelId, int cause, String message)
-
closeChannelOk
public void closeChannelOk(int channelId)
- Specified by:
closeChannelOkin interfaceAMQPConnection_0_8<AMQPConnection_0_8Impl>
-
sendConnectionClose
public void sendConnectionClose(int errorCode, String message, int channelId)- Specified by:
sendConnectionClosein interfaceAMQPConnection_0_8<AMQPConnection_0_8Impl>
-
closeNetworkConnection
public void closeNetworkConnection()
-
isSendQueueDeleteOkRegardless
public boolean isSendQueueDeleteOkRegardless()
- Specified by:
isSendQueueDeleteOkRegardlessin interfaceAMQPConnection_0_8<AMQPConnection_0_8Impl>
-
getProtocolMajorVersion
public byte getProtocolMajorVersion()
-
getProtocolVersion
public ProtocolVersion getProtocolVersion()
- Specified by:
getProtocolVersionin interfaceAMQPConnection_0_8<AMQPConnection_0_8Impl>- Specified by:
getProtocolVersionin interfaceMethodProcessor<ServerChannelMethodProcessor>
-
getProtocolMinorVersion
public byte getProtocolMinorVersion()
-
getRegistry
public MethodRegistry getRegistry()
-
getProtocolOutputConverter
public ProtocolOutputConverter getProtocolOutputConverter()
- Specified by:
getProtocolOutputConverterin interfaceAMQPConnection_0_8<AMQPConnection_0_8Impl>
-
getMethodRegistry
public MethodRegistry getMethodRegistry()
- Specified by:
getMethodRegistryin interfaceAMQPConnection_0_8<AMQPConnection_0_8Impl>
-
closed
public void closed()
- Specified by:
closedin interfaceProtocolEngine
-
isOrderlyClose
protected boolean isOrderlyClose()
- Specified by:
isOrderlyClosein classAbstractAMQPConnection<AMQPConnection_0_8Impl,AMQPConnection_0_8Impl>
-
getCloseCause
protected String getCloseCause()
- Specified by:
getCloseCausein classAbstractAMQPConnection<AMQPConnection_0_8Impl,AMQPConnection_0_8Impl>
-
encryptedTransport
public void encryptedTransport()
- Specified by:
encryptedTransportin interfaceProtocolEngine
-
readerIdle
public final void readerIdle()
- Specified by:
readerIdlein interfaceProtocolEngine- Specified by:
readerIdlein interfaceTransportActivity
-
writerIdle
public void writerIdle()
- Specified by:
writerIdlein interfaceProtocolEngine- Specified by:
writerIdlein interfaceTransportActivity
-
getSessionCountLimit
public int getSessionCountLimit()
- Specified by:
getSessionCountLimitin interfaceConnection<AMQPConnection_0_8Impl>
-
getHeartbeatDelay
public int getHeartbeatDelay()
- Specified by:
getHeartbeatDelayin interfaceAMQPConnection_0_8<AMQPConnection_0_8Impl>
-
getAddress
public String getAddress()
-
closeSessionAsync
public void closeSessionAsync(AMQPSession<?,?> session, AMQPConnection.CloseReason reason, String message)
- Specified by:
closeSessionAsyncin interfaceAMQPConnection<AMQPConnection_0_8Impl>
-
sendConnectionCloseAsync
public void sendConnectionCloseAsync(AMQPConnection.CloseReason reason, String description)
- Specified by:
sendConnectionCloseAsyncin interfaceAMQPConnection<AMQPConnection_0_8Impl>
-
addAsyncTask
protected void addAsyncTask(Action<? super AMQPConnection_0_8Impl> action)
- Specified by:
addAsyncTaskin classAbstractAMQPConnection<AMQPConnection_0_8Impl,AMQPConnection_0_8Impl>
-
block
public void block()
- Specified by:
blockin interfaceAMQPConnection<AMQPConnection_0_8Impl>
-
unblock
public void unblock()
- Specified by:
unblockin interfaceAMQPConnection<AMQPConnection_0_8Impl>
-
getSessionModels
public Collection<? extends AMQChannel> getSessionModels()
- Specified by:
getSessionModelsin interfaceAMQPConnection<AMQPConnection_0_8Impl>
-
getRemoteContainerName
public String getRemoteContainerName()
- Specified by:
getRemoteContainerNamein interfaceAMQPConnection<AMQPConnection_0_8Impl>
-
setDeferFlush
public void setDeferFlush(boolean deferFlush)
- Specified by:
setDeferFlushin interfaceAMQPConnection_0_8<AMQPConnection_0_8Impl>
-
hasSessionWithName
public boolean hasSessionWithName(byte[] name)
- Specified by:
hasSessionWithNamein interfaceAMQPConnection<AMQPConnection_0_8Impl>
-
getOpenTransactions
public Iterator<ServerTransaction> getOpenTransactions()
- Specified by:
getOpenTransactionsin interfaceAMQPConnection<AMQPConnection_0_8Impl>
-
receiveChannelOpen
public void receiveChannelOpen(int channelId)
- Specified by:
receiveChannelOpenin interfaceServerMethodProcessor<ServerChannelMethodProcessor>
-
receiveConnectionOpen
public void receiveConnectionOpen(AMQShortString virtualHostName, AMQShortString capabilities, boolean insist)
- Specified by:
receiveConnectionOpenin interfaceServerMethodProcessor<ServerChannelMethodProcessor>
-
receiveConnectionClose
public void receiveConnectionClose(int replyCode, AMQShortString replyText, int classId, int methodId)- Specified by:
receiveConnectionClosein interfaceMethodProcessor<ServerChannelMethodProcessor>
-
receiveConnectionCloseOk
public void receiveConnectionCloseOk()
- Specified by:
receiveConnectionCloseOkin interfaceMethodProcessor<ServerChannelMethodProcessor>
-
receiveConnectionSecureOk
public void receiveConnectionSecureOk(byte[] response)
- Specified by:
receiveConnectionSecureOkin interfaceServerMethodProcessor<ServerChannelMethodProcessor>
-
receiveConnectionStartOk
public void receiveConnectionStartOk(FieldTable clientProperties, AMQShortString mechanism, byte[] response, AMQShortString locale)
- Specified by:
receiveConnectionStartOkin interfaceServerMethodProcessor<ServerChannelMethodProcessor>
-
receiveConnectionTuneOk
public void receiveConnectionTuneOk(int channelMax, long frameMax, int heartbeat)- Specified by:
receiveConnectionTuneOkin interfaceServerMethodProcessor<ServerChannelMethodProcessor>
-
getBinaryDataLimit
public int getBinaryDataLimit()
- Specified by:
getBinaryDataLimitin interfaceAMQPConnection_0_8<AMQPConnection_0_8Impl>
-
getReference
public Object getReference()
- Specified by:
getReferencein interfaceAMQPConnection_0_8<AMQPConnection_0_8Impl>
-
isCloseWhenNoRoute
public boolean isCloseWhenNoRoute()
- Specified by:
isCloseWhenNoRoutein interfaceAMQPConnection_0_8<AMQPConnection_0_8Impl>
-
isCompressionSupported
public boolean isCompressionSupported()
-
getChannelMethodProcessor
public ServerChannelMethodProcessor getChannelMethodProcessor(int channelId)
- Specified by:
getChannelMethodProcessorin interfaceMethodProcessor<ServerChannelMethodProcessor>
-
receiveHeartbeat
public void receiveHeartbeat()
- Specified by:
receiveHeartbeatin interfaceMethodProcessor<ServerChannelMethodProcessor>
-
receiveProtocolHeader
public void receiveProtocolHeader(ProtocolInitiation protocolInitiation)
- Specified by:
receiveProtocolHeaderin interfaceMethodProcessor<ServerChannelMethodProcessor>
-
setCurrentMethod
public void setCurrentMethod(int classId, int methodId)- Specified by:
setCurrentMethodin interfaceMethodProcessor<ServerChannelMethodProcessor>
-
ignoreAllButCloseOk
public boolean ignoreAllButCloseOk()
- Specified by:
ignoreAllButCloseOkin interfaceAMQPConnection_0_8<AMQPConnection_0_8Impl>- Specified by:
ignoreAllButCloseOkin interfaceMethodProcessor<ServerChannelMethodProcessor>
-
hasWork
public boolean hasWork()
- Specified by:
hasWorkin interfaceProtocolEngine
-
notifyWork
public void notifyWork()
- Specified by:
notifyWorkin interfaceAMQPConnection<AMQPConnection_0_8Impl>- Specified by:
notifyWorkin interfaceProtocolEngine
-
notifyWork
public void notifyWork(AMQPSession<?,?> sessionModel)
- Specified by:
notifyWorkin interfaceAMQPConnection<AMQPConnection_0_8Impl>
-
clearWork
public void clearWork()
- Specified by:
clearWorkin interfaceProtocolEngine
-
setWorkListener
public void setWorkListener(Action<ProtocolEngine> listener)
- Specified by:
setWorkListenerin interfaceProtocolEngine
-
processPendingIterator
public Iterator<Runnable> processPendingIterator()
- Specified by:
processPendingIteratorin interfaceProtocolEngine
-
isOpeningInProgress
protected boolean isOpeningInProgress()
- Specified by:
isOpeningInProgressin classAbstractAMQPConnection<AMQPConnection_0_8Impl,AMQPConnection_0_8Impl>
-
-