|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JMSServerInterceptor
Interceptor interface for clients IL accessing the JMSServer. Using an iterface for this layer makes it possible to put in logic without having to modify the server objet. And also makes this pluggable.
Method Summary | |
---|---|
void |
acknowledge(ConnectionToken dc,
AcknowledgementRequest item)
#Description of the Method |
void |
addMessage(ConnectionToken dc,
SpyMessage message)
Add the message to the destination. |
String |
authenticate(String userName,
String password)
Check user for autentication. |
SpyMessage[] |
browse(ConnectionToken dc,
javax.jms.Destination dest,
String selector)
#Description of the Method |
void |
checkID(String ID)
Check id, must not be taken. |
String |
checkUser(String userName,
String password)
Check user for autentication. |
void |
connectionClosing(ConnectionToken dc)
Close connection. |
javax.jms.Queue |
createQueue(ConnectionToken dc,
String dest)
Create a queue. |
javax.jms.Topic |
createTopic(ConnectionToken dc,
String dest)
Create a topic. |
void |
deleteTemporaryDestination(ConnectionToken dc,
SpyDestination dest)
#Description of the Method |
void |
destroySubscription(ConnectionToken dc,
DurableSubscriptionID id)
Unsubscribe from the durable subscription. |
SpyTopic |
getDurableTopic(DurableSubscriptionID sub)
Get the topic the durable subscription is on. |
String |
getID()
Gets a clientID from server. |
JMSServerInterceptor |
getNext()
Get next invoker in chain to be called. |
Subscription |
getSubscription(ConnectionToken dc,
int subscriberId)
Get the subscription that match the id. |
javax.jms.TemporaryQueue |
getTemporaryQueue(ConnectionToken dc)
Get a temporary queue |
javax.jms.TemporaryTopic |
getTemporaryTopic(ConnectionToken dc)
Get a temporary topic. |
ThreadGroup |
getThreadGroup()
Get the thread group of the server. |
void |
ping(ConnectionToken dc,
long clientTime)
Ping the server. |
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 |
setNext(JMSServerInterceptor server)
Set next Interceptor in chain to be called. |
void |
subscribe(ConnectionToken dc,
Subscription s)
|
void |
transact(ConnectionToken dc,
TransactionRequest t)
#Description of the Method |
void |
unsubscribe(ConnectionToken dc,
int subscriptionId)
Close the server side message consumer. |
Method Detail |
---|
void setNext(JMSServerInterceptor server)
JMSServerInterceptor getNext()
ThreadGroup getThreadGroup()
String getID() throws javax.jms.JMSException
javax.jms.JMSException
- Description of Exceptionjavax.jms.TemporaryTopic getTemporaryTopic(ConnectionToken dc) throws javax.jms.JMSException
dc
- Description of Parameter
javax.jms.JMSException
- Description of Exceptionjavax.jms.TemporaryQueue getTemporaryQueue(ConnectionToken dc) throws javax.jms.JMSException
dc
- Description of Parameter
javax.jms.JMSException
- Description of Exceptionvoid connectionClosing(ConnectionToken dc) throws javax.jms.JMSException
dc
- Description of Parameter
javax.jms.JMSException
- Description of Exceptionvoid checkID(String ID) throws javax.jms.JMSException
ID
- Description of Parameter
javax.jms.JMSException
- Description of Exceptionvoid addMessage(ConnectionToken dc, SpyMessage message) throws javax.jms.JMSException
dc
- The feature to be added to the Message attributemessage
- The feature to be added to the Message attribute
javax.jms.JMSException
- Description of Exceptionjavax.jms.Queue createQueue(ConnectionToken dc, String dest) throws javax.jms.JMSException
dc
- Description of Parameterdest
- Description of Parameter
javax.jms.JMSException
- Description of Exceptionjavax.jms.Topic createTopic(ConnectionToken dc, String dest) throws javax.jms.JMSException
dc
- Description of Parameterdest
- Description of Parameter
javax.jms.JMSException
- Description of Exceptionvoid deleteTemporaryDestination(ConnectionToken dc, SpyDestination dest) throws javax.jms.JMSException
dc
- Description of Parameterdest
- Description of Parameter
javax.jms.JMSException
- Description of Exceptionvoid transact(ConnectionToken dc, TransactionRequest t) throws javax.jms.JMSException
dc
- Description of Parametert
- Description of Parameter
javax.jms.JMSException
- Description of Exceptionvoid acknowledge(ConnectionToken dc, AcknowledgementRequest item) throws javax.jms.JMSException
dc
- Description of Parameteritem
- Description of Parameter
javax.jms.JMSException
- Description of ExceptionSpyMessage[] browse(ConnectionToken dc, javax.jms.Destination dest, String selector) throws javax.jms.JMSException
dc
- Description of Parameterdest
- Description of Parameterselector
- Description of Parameter
javax.jms.JMSException
- Description of ExceptionSpyMessage receive(ConnectionToken dc, int subscriberId, long wait) throws javax.jms.JMSException
dc
- Description of ParametersubscriberId
- Description of Parameterwait
- Description of Parameter
javax.jms.JMSException
- Description of Exceptionvoid setEnabled(ConnectionToken dc, boolean enabled) throws javax.jms.JMSException
dc
- The new Enabled valueenabled
- The new Enabled value
javax.jms.JMSException
- Description of Exceptionvoid unsubscribe(ConnectionToken dc, int subscriptionId) throws javax.jms.JMSException
dc
- Description of ParametersubscriptionId
- Description of Parameter
javax.jms.JMSException
- Description of Exceptionvoid destroySubscription(ConnectionToken dc, DurableSubscriptionID id) throws javax.jms.JMSException
id
- Description of Parameter
javax.jms.JMSException
- Description of ExceptionString checkUser(String userName, String password) throws javax.jms.JMSException
userName
- Description of Parameterpassword
- Description of Parameter
javax.jms.JMSException
- if user was not allowed to loginString authenticate(String userName, String password) throws javax.jms.JMSException
userName
- Description of Parameterpassword
- Description of Parameter
javax.jms.JMSException
- if user was not allowed to loginvoid subscribe(ConnectionToken dc, Subscription s) throws javax.jms.JMSException
dc
- org.jboss.mq.ConnectionTokens
- org.jboss.mq.Subscription
javax.jms.JMSException
- The exception description.void ping(ConnectionToken dc, long clientTime) throws javax.jms.JMSException
dc
- Description of ParameterclientTime
- Description of Parameter
javax.jms.JMSException
- Description of ExceptionSpyTopic getDurableTopic(DurableSubscriptionID sub) throws javax.jms.JMSException
javax.jms.JMSException
Subscription getSubscription(ConnectionToken dc, int subscriberId) throws javax.jms.JMSException
javax.jms.JMSException
- if it can not find the subscription.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |