|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.mq.server.JMSServerInterceptorSupport org.jboss.mq.server.ClientMonitorInterceptor
A pass through Interceptor, which keeps track of when a client was last active. If a client is inactive for too long, then it is disconnected from the server.
Field Summary | |
protected static org.jboss.logging.Logger |
log
|
Fields inherited from class org.jboss.mq.server.JMSServerInterceptorSupport |
nextInterceptor |
Constructor Summary | |
ClientMonitorInterceptor()
|
Method Summary | |
void |
acknowledge(ConnectionToken dc,
AcknowledgementRequest item)
#Description of the Method |
void |
addMessage(ConnectionToken dc,
SpyMessage message)
Add the message to the destination. |
SpyMessage[] |
browse(ConnectionToken dc,
javax.jms.Destination dest,
String selector)
#Description of the Method |
void |
connectionClosing(ConnectionToken dc)
#Description of the Method |
javax.jms.Queue |
createQueue(ConnectionToken dc,
String dest)
#Description of the Method |
javax.jms.Topic |
createTopic(ConnectionToken dc,
String dest)
#Description of the Method |
void |
deleteTemporaryDestination(ConnectionToken dc,
SpyDestination dest)
#Description of the Method |
void |
destroySubscription(ConnectionToken dc,
DurableSubscriptionID id)
#Description of the Method |
void |
disconnectInactiveClients(long disconnectTime)
|
org.jboss.mq.server.ClientMonitorInterceptor.ClientStats |
getClientStats(ConnectionToken dc)
|
Subscription |
getSubscription(ConnectionToken dc,
int subscriberId)
Get the subscription that match the id. |
javax.jms.TemporaryQueue |
getTemporaryQueue(ConnectionToken dc)
Gets the TemporaryQueue attribute of the ServerIL object |
javax.jms.TemporaryTopic |
getTemporaryTopic(ConnectionToken dc)
Gets the TemporaryTopic attribute of the ServerIL object |
void |
ping(ConnectionToken dc,
long clientTime)
#Description of the Method |
SpyMessage |
receive(ConnectionToken dc,
int subscriberId,
long wait)
#Description of the Method |
void |
setEnabled(ConnectionToken dc,
boolean enabled)
Sets the Enabled attribute of the ServerIL object |
void |
subscribe(ConnectionToken dc,
Subscription s)
|
void |
transact(ConnectionToken dc,
TransactionRequest t)
#Description of the Method |
void |
unsubscribe(ConnectionToken dc,
int subscriptionId)
#Description of the Method |
Methods inherited from class org.jboss.mq.server.JMSServerInterceptorSupport |
authenticate, checkID, checkUser, getDurableTopic, getID, getNext, getThreadGroup, setNext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.jboss.logging.Logger log
Constructor Detail |
public ClientMonitorInterceptor()
Method Detail |
public void disconnectInactiveClients(long disconnectTime)
public org.jboss.mq.server.ClientMonitorInterceptor.ClientStats getClientStats(ConnectionToken dc) throws javax.jms.JMSException
javax.jms.JMSException
public javax.jms.TemporaryTopic getTemporaryTopic(ConnectionToken dc) throws javax.jms.JMSException
JMSServerInterceptorSupport
getTemporaryTopic
in interface JMSServerInterceptor
getTemporaryTopic
in class JMSServerInterceptorSupport
dc
- Description of Parameter
javax.jms.JMSException
- Description of Exceptionpublic javax.jms.TemporaryQueue getTemporaryQueue(ConnectionToken dc) throws javax.jms.JMSException
getTemporaryQueue
in interface JMSServerInterceptor
getTemporaryQueue
in class JMSServerInterceptorSupport
dc
- Description of Parameter
javax.jms.JMSException
- Description of Exceptionpublic void connectionClosing(ConnectionToken dc) throws javax.jms.JMSException
connectionClosing
in interface JMSServerInterceptor
connectionClosing
in class JMSServerInterceptorSupport
dc
- Description of Parameter
javax.jms.JMSException
- Description of Exceptionpublic void addMessage(ConnectionToken dc, SpyMessage message) throws javax.jms.JMSException
addMessage
in interface JMSServerInterceptor
addMessage
in class JMSServerInterceptorSupport
dc
- The feature to be added to the Message attributemessage
- The feature to be added to the Message attribute
javax.jms.JMSException
- Description of Exceptionpublic javax.jms.Queue createQueue(ConnectionToken dc, String dest) throws javax.jms.JMSException
createQueue
in interface JMSServerInterceptor
createQueue
in class JMSServerInterceptorSupport
dc
- Description of Parameterdest
- Description of Parameter
javax.jms.JMSException
- Description of Exceptionpublic javax.jms.Topic createTopic(ConnectionToken dc, String dest) throws javax.jms.JMSException
createTopic
in interface JMSServerInterceptor
createTopic
in class JMSServerInterceptorSupport
dc
- Description of Parameterdest
- Description of Parameter
javax.jms.JMSException
- Description of Exceptionpublic void deleteTemporaryDestination(ConnectionToken dc, SpyDestination dest) throws javax.jms.JMSException
deleteTemporaryDestination
in interface JMSServerInterceptor
deleteTemporaryDestination
in class JMSServerInterceptorSupport
dc
- Description of Parameterdest
- Description of Parameter
javax.jms.JMSException
- Description of Exceptionpublic void transact(ConnectionToken dc, TransactionRequest t) throws javax.jms.JMSException
transact
in interface JMSServerInterceptor
transact
in class JMSServerInterceptorSupport
dc
- Description of Parametert
- Description of Parameter
javax.jms.JMSException
- Description of Exceptionpublic void acknowledge(ConnectionToken dc, AcknowledgementRequest item) throws javax.jms.JMSException
acknowledge
in interface JMSServerInterceptor
acknowledge
in class JMSServerInterceptorSupport
dc
- Description of Parameteritem
- Description of Parameter
javax.jms.JMSException
- Description of Exceptionpublic SpyMessage[] browse(ConnectionToken dc, javax.jms.Destination dest, String selector) throws javax.jms.JMSException
browse
in interface JMSServerInterceptor
browse
in class JMSServerInterceptorSupport
dc
- Description of Parameterdest
- Description of Parameterselector
- Description of Parameter
javax.jms.JMSException
- Description of Exceptionpublic SpyMessage receive(ConnectionToken dc, int subscriberId, long wait) throws javax.jms.JMSException
receive
in interface JMSServerInterceptor
receive
in class JMSServerInterceptorSupport
dc
- Description of ParametersubscriberId
- Description of Parameterwait
- Description of Parameter
javax.jms.JMSException
- Description of Exceptionpublic void setEnabled(ConnectionToken dc, boolean enabled) throws javax.jms.JMSException
setEnabled
in interface JMSServerInterceptor
setEnabled
in class JMSServerInterceptorSupport
dc
- The new Enabled valueenabled
- The new Enabled value
javax.jms.JMSException
- Description of Exceptionpublic void unsubscribe(ConnectionToken dc, int subscriptionId) throws javax.jms.JMSException
unsubscribe
in interface JMSServerInterceptor
unsubscribe
in class JMSServerInterceptorSupport
dc
- Description of ParametersubscriptionId
- Description of Parameter
javax.jms.JMSException
- Description of Exceptionpublic void destroySubscription(ConnectionToken dc, DurableSubscriptionID id) throws javax.jms.JMSException
destroySubscription
in interface JMSServerInterceptor
destroySubscription
in class JMSServerInterceptorSupport
id
- Description of Parameter
javax.jms.JMSException
- Description of Exceptionpublic void subscribe(ConnectionToken dc, Subscription s) throws javax.jms.JMSException
subscribe
in interface JMSServerInterceptor
subscribe
in class JMSServerInterceptorSupport
dc
- org.jboss.mq.ConnectionTokens
- org.jboss.mq.Subscription
javax.jms.JMSException
- The exception description.public void ping(ConnectionToken dc, long clientTime) throws javax.jms.JMSException
ping
in interface JMSServerInterceptor
ping
in class JMSServerInterceptorSupport
dc
- Description of ParameterclientTime
- Description of Parameter
javax.jms.JMSException
- Description of Exceptionpublic Subscription getSubscription(ConnectionToken dc, int subscriberId) throws javax.jms.JMSException
JMSServerInterceptor
getSubscription
in interface JMSServerInterceptor
getSubscription
in class JMSServerInterceptorSupport
javax.jms.JMSException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |