public class ServerConnection extends org.apache.qpid.transport.Connection implements AMQConnectionModel<ServerConnection,ServerSession>, LogSubject, AuthorizationHolder
| Constructor and Description |
|---|
ServerConnection(long connectionId,
Broker broker) |
addConnectionListener, addFrameSizeObserver, close, close, closeCode, connect, connect, connect, createSession, createSession, createSession, createSession, createSession, createSession, createSession, createSession, createSession, dispatch, exception, flush, getChannelMax, getChannels, getConnectionSettings, getIdleTimeout, getLocalAddress, getNetworkConnection, getRemoteAddress, getSaslClient, getSecurityLayer, getSender, getServerProperties, getSession, getUserID, hasSessionWithName, isConnectionResuming, isMessageCompressionSupported, mgmtClose, notifyFailoverRequired, resume, setConnectionDelegate, setIdleTimeout, setMaxFrameSize, setNetworkConnection, setSender, setServerProperties, setSessionFactory, setUserID, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetRemoteAddresspublic ServerConnection(long connectionId,
Broker broker)
public Object getReference()
protected void invoke(org.apache.qpid.transport.Method method)
invoke in class org.apache.qpid.transport.Connectionprotected void setState(org.apache.qpid.transport.Connection.State state)
setState in class org.apache.qpid.transport.Connectionprotected void logClosed()
public ServerConnectionDelegate getConnectionDelegate()
getConnectionDelegate in class org.apache.qpid.transport.Connectionpublic void setConnectionDelegate(ServerConnectionDelegate delegate)
public VirtualHostImpl<?,?,?> getVirtualHost()
getVirtualHost in interface AMQConnectionModel<ServerConnection,ServerSession>public void setVirtualHost(VirtualHostImpl<?,?,?> virtualHost)
public String getVirtualHostName()
getVirtualHostName in interface AMQConnectionModel<ServerConnection,ServerSession>public Port<?> getPort()
getPort in interface AMQConnectionModel<ServerConnection,ServerSession>public void setPort(Port<?> port)
public Transport getTransport()
getTransport in interface AMQConnectionModel<ServerConnection,ServerSession>public void stop()
stop in interface AMQConnectionModel<ServerConnection,ServerSession>public boolean isStopped()
isStopped in interface AMQConnectionModel<ServerConnection,ServerSession>public void setTransport(Transport transport)
public void onOpen(Runnable task)
public void closeSession(ServerSession session, org.apache.qpid.protocol.AMQConstant cause, String message)
closeSession in interface AMQConnectionModel<ServerConnection,ServerSession>public LogSubject getLogSubject()
getLogSubject in interface AMQConnectionModel<ServerConnection,ServerSession>public void exception(Throwable t)
exception in interface org.apache.qpid.transport.Receiver<org.apache.qpid.transport.ProtocolEvent>exception in class org.apache.qpid.transport.Connectionpublic void received(org.apache.qpid.transport.ProtocolEvent event)
received in interface org.apache.qpid.transport.Receiver<org.apache.qpid.transport.ProtocolEvent>received in class org.apache.qpid.transport.Connectionpublic String toLogString()
toLogString in interface LogSubjectpublic void close(org.apache.qpid.protocol.AMQConstant cause,
String message)
close in interface AMQConnectionModel<ServerConnection,ServerSession>protected void performDeleteTasks()
public void block()
block in interface AMQConnectionModel<ServerConnection,ServerSession>public void unblock()
unblock in interface AMQConnectionModel<ServerConnection,ServerSession>public void registerSession(org.apache.qpid.transport.Session ssn)
registerSession in class org.apache.qpid.transport.Connectionpublic void removeSession(org.apache.qpid.transport.Session ssn)
removeSession in class org.apache.qpid.transport.Connectionpublic List<ServerSession> getSessionModels()
getSessionModels in interface AMQConnectionModel<ServerConnection,ServerSession>public void registerMessageDelivered(long messageSize)
registerMessageDelivered in interface StatisticsGathererpublic void registerMessageReceived(long messageSize,
long timestamp)
registerMessageReceived in interface StatisticsGathererpublic StatisticsCounter getMessageReceiptStatistics()
getMessageReceiptStatistics in interface StatisticsGathererpublic StatisticsCounter getDataReceiptStatistics()
getDataReceiptStatistics in interface StatisticsGathererpublic StatisticsCounter getMessageDeliveryStatistics()
getMessageDeliveryStatistics in interface StatisticsGathererpublic StatisticsCounter getDataDeliveryStatistics()
getDataDeliveryStatistics in interface StatisticsGathererpublic void resetStatistics()
resetStatistics in interface StatisticsGathererpublic Subject getAuthorizedSubject()
getAuthorizedSubject in interface AuthorizationHolderpublic void setAuthorizedSubject(Subject authorizedSubject)
authorizedSubject - public Principal getAuthorizedPrincipal()
getAuthorizedPrincipal in interface AMQConnectionModel<ServerConnection,ServerSession>getAuthorizedPrincipal in interface AuthorizationHolderpublic long getConnectionId()
getConnectionId in interface AMQConnectionModel<ServerConnection,ServerSession>public boolean isSessionNameUnique(byte[] name)
isSessionNameUnique in interface AMQConnectionModel<ServerConnection,ServerSession>public String getRemoteAddressString()
getRemoteAddressString in interface AMQConnectionModel<ServerConnection,ServerSession>public String getRemoteProcessPid()
getRemoteProcessPid in interface AMQConnectionModel<ServerConnection,ServerSession>public void closed()
closed in interface org.apache.qpid.transport.Receiver<org.apache.qpid.transport.ProtocolEvent>closed in class org.apache.qpid.transport.Connectionpublic void receivedComplete()
public void send(org.apache.qpid.transport.ProtocolEvent event)
send in interface org.apache.qpid.transport.Sender<org.apache.qpid.transport.ProtocolEvent>send in class org.apache.qpid.transport.Connectionpublic long getLastIoTime()
getLastIoTime in interface AMQConnectionModel<ServerConnection,ServerSession>public String getClientId()
getClientId in interface AMQConnectionModel<ServerConnection,ServerSession>public String getRemoteContainerName()
getRemoteContainerName in interface AMQConnectionModel<ServerConnection,ServerSession>public void addSessionListener(SessionModelListener listener)
addSessionListener in interface AMQConnectionModel<ServerConnection,ServerSession>public void removeSessionListener(SessionModelListener listener)
removeSessionListener in interface AMQConnectionModel<ServerConnection,ServerSession>public String getClientVersion()
getClientVersion in interface AMQConnectionModel<ServerConnection,ServerSession>public String getClientProduct()
getClientProduct in interface AMQConnectionModel<ServerConnection,ServerSession>public long getSessionCountLimit()
getSessionCountLimit in interface AMQConnectionModel<ServerConnection,ServerSession>public Principal getPeerPrincipal()
public void setRemoteAddress(SocketAddress remoteAddress)
setRemoteAddress in class org.apache.qpid.transport.Connectionpublic void setLocalAddress(SocketAddress localAddress)
setLocalAddress in class org.apache.qpid.transport.Connectionpublic void doHeartBeat()
doHeartBeat in class org.apache.qpid.transport.Connectionpublic void addDeleteTask(Action<? super ServerConnection> task)
addDeleteTask in interface Deletable<ServerConnection>public void removeDeleteTask(Action<? super ServerConnection> task)
removeDeleteTask in interface Deletable<ServerConnection>public int getMessageCompressionThreshold()
Copyright © 2006–2014 The Apache Software Foundation. All rights reserved.