|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.mq.server.JMSServerInterceptorSupport (src)
org.jboss.mq.server.JMSDestinationManager
This class implements the JMS provider
| Field Summary | |
java.util.Map |
closingDestinations
Destinations being closed SpyDestination -> JMSDestination |
java.util.Map |
destinations
Destinations SpyDestination -> JMSDestination |
static java.lang.String |
JBOSS_VESION
Description of the Field |
java.lang.ThreadGroup |
threadGroup
Thread group |
| Fields inherited from class org.jboss.mq.server.JMSServerInterceptorSupport (src) |
nextInterceptor |
| Constructor Summary | |
JMSDestinationManager(BasicQueueParameters (src) parameters)
Constructor for the JMSServer object |
|
| Method Summary | |
void |
acknowledge(ConnectionToken (src) dc,
AcknowledgementRequest (src) item)
#Description of the Method |
void |
acknowledge(ConnectionToken (src) dc,
AcknowledgementRequest (src) item,
Tx (src) txId)
#Description of the Method |
void |
addDestination(JMSDestination (src) destination)
Adds a feature to the Destination attribute of the JMSServer object |
void |
addMessage(ConnectionToken (src) dc,
SpyMessage (src) val)
Adds a feature to the Message attribute of the JMSServer object |
void |
addMessage(ConnectionToken (src) dc,
SpyMessage (src) val,
Tx (src) txId)
Adds a feature to the Message attribute of the JMSServer object |
java.lang.String |
authenticate(java.lang.String id,
java.lang.String password)
authenticate user and return a session id. |
SpyMessage (src) [] |
browse(ConnectionToken (src) dc,
Destination (src) dest,
java.lang.String selector)
#Description of the Method |
void |
checkID(java.lang.String ID)
Check a clienID set by the client. |
java.lang.String |
checkUser(java.lang.String userName,
java.lang.String password)
#Description of the Method |
void |
closeDestination(SpyDestination (src) dest)
Closed a destination that was opened previously |
void |
connectionClosing(ConnectionToken (src) dc)
#Description of the Method |
void |
connectionFailure(ConnectionToken (src) dc)
#Description of the Method |
Queue (src) |
createQueue(ConnectionToken (src) dc,
java.lang.String name)
#Description of the Method |
Topic (src) |
createTopic(ConnectionToken (src) dc,
java.lang.String name)
#Description of the Method |
protected void |
deleteTemporaryDestination(ConnectionToken (src) dc,
JMSDestination (src) destination)
|
void |
deleteTemporaryDestination(ConnectionToken (src) dc,
SpyDestination (src) dest)
#Description of the Method |
void |
destroySubscription(ConnectionToken (src) dc,
DurableSubscriptionID (src) id)
#Description of the Method |
ClientConsumer (src) |
getClientConsumer(ConnectionToken (src) dc)
Gets the ClientConsumer attribute of the JMSServer object |
int |
getClientCount()
|
java.util.HashMap |
getClients()
Obtain a copy of the current clients |
SpyTopic (src) |
getDurableTopic(DurableSubscriptionID (src) sub)
Get the topic the durable subscription is on. |
java.lang.String |
getID()
Gets the ID attribute of the JMSServer object |
JMSDestination (src) |
getJMSDestination(SpyDestination (src) dest)
Gets the JMSDestination attribute of the JMSServer object |
MessageCache (src) |
getMessageCache()
Gets the messageCache |
MessageCounter (src) [] |
getMessageCounter()
Gets message counters of all configured destinations |
PersistenceManager (src) |
getPersistenceManager()
Gets the PersistenceManager attribute of the JMSServer object |
protected JMSDestination (src) |
getPossiblyClosingJMSDestination(SpyDestination (src) dest)
Gets the JMSDestination attribute of the JMSServer object which might be being closed |
StateManager (src) |
getStateManager()
Gets the StateManager attribute of the JMSServer object |
Subscription (src) |
getSubscription(ConnectionToken (src) dc,
int subscriberId)
Get the subscription that match the id. |
TemporaryQueue (src) |
getTemporaryQueue(ConnectionToken (src) dc)
Gets the TemporaryQueue attribute of the JMSServer object |
TemporaryTopic (src) |
getTemporaryTopic(ConnectionToken (src) dc)
Gets the TemporaryTopic attribute of the JMSServer object |
java.lang.ThreadGroup |
getThreadGroup()
Get the thread group of the server. |
boolean |
isStopped()
Returns false if the JMS server is currently running and
handling requests, true otherwise. |
void |
ping(ConnectionToken (src) dc,
long clientTime)
#Description of the Method |
SpyMessage (src) |
receive(ConnectionToken (src) dc,
int subscriberId,
long wait)
#Description of the Method |
void |
resetMessageCounter()
Resets message counters of all configured destinations |
void |
setEnabled(ConnectionToken (src) dc,
boolean enabled)
Sets the Enabled attribute of the JMSServer object |
void |
setMessageCache(MessageCache (src) messageCache)
Sets the messageCache |
void |
setPersistenceManager(PersistenceManager (src) newPersistenceManager)
Sets the PersistenceManager attribute of the JMSServer object |
void |
setStateManager(StateManager (src) newStateManager)
Sets the StateManager attribute of the JMSServer object |
void |
startServer()
#Description of the Method |
void |
stopServer()
#Description of the Method |
void |
subscribe(ConnectionToken (src) dc,
Subscription (src) sub)
#Description of the Method |
java.lang.String |
toString()
#Description of the Method |
void |
transact(ConnectionToken (src) dc,
TransactionRequest (src) t)
The following function performs a Unit Of Work. |
void |
unsubscribe(ConnectionToken (src) dc,
int subscriptionId)
#Description of the Method |
| Methods inherited from class org.jboss.mq.server.JMSServerInterceptorSupport (src) |
getNext, setNext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String JBOSS_VESION
public java.util.Map destinations
public java.util.Map closingDestinations
public java.lang.ThreadGroup threadGroup
| Constructor Detail |
public JMSDestinationManager(BasicQueueParameters (src) parameters)
| Method Detail |
public void setEnabled(ConnectionToken (src) dc,
boolean enabled)
throws JMSException (src)
setEnabled in interface JMSServerInterceptor (src) setEnabled in class JMSServerInterceptorSupport (src) dc - The new Enabled valueenabled - The new Enabled value
JMSException (src) - Description of Exceptionpublic void setStateManager(StateManager (src) newStateManager)
newStateManager - The new StateManager valuepublic void setPersistenceManager(PersistenceManager (src) newPersistenceManager)
newPersistenceManager - The new PersistenceManager valuepublic boolean isStopped()
false if the JMS server is currently running and
handling requests, true otherwise.
false if the JMS server is currently running and
handling requests, true otherwise.public int getClientCount()
public java.util.HashMap getClients()
public java.lang.ThreadGroup getThreadGroup()
JMSServerInterceptorSupport (src)
getThreadGroup in interface JMSServerInterceptor (src) getThreadGroup in class JMSServerInterceptorSupport (src) public java.lang.String getID()
getID in interface JMSServerInterceptor (src) getID in class JMSServerInterceptorSupport (src)
public TemporaryTopic (src) getTemporaryTopic(ConnectionToken (src) dc)
throws JMSException (src)
getTemporaryTopic in interface JMSServerInterceptor (src) getTemporaryTopic in class JMSServerInterceptorSupport (src) dc - Description of Parameter
JMSException (src) - Description of Exception
public TemporaryQueue (src) getTemporaryQueue(ConnectionToken (src) dc)
throws JMSException (src)
getTemporaryQueue in interface JMSServerInterceptor (src) getTemporaryQueue in class JMSServerInterceptorSupport (src) dc - Description of Parameter
JMSException (src) - Description of Exception
public ClientConsumer (src) getClientConsumer(ConnectionToken (src) dc)
throws JMSException (src)
dc - Description of Parameter
JMSException (src) - Description of Exceptionpublic JMSDestination (src) getJMSDestination(SpyDestination (src) dest)
dest - Description of Parameter
protected JMSDestination (src) getPossiblyClosingJMSDestination(SpyDestination (src) dest)
dest - Description of Parameter
public StateManager (src) getStateManager()
public PersistenceManager (src) getPersistenceManager()
public void startServer()
public void stopServer()
public void checkID(java.lang.String ID)
throws JMSException (src)
checkID in interface JMSServerInterceptor (src) checkID in class JMSServerInterceptorSupport (src) ID - Description of Parameter
JMSException (src) - Description of Exception
public void addMessage(ConnectionToken (src) dc,
SpyMessage (src) val)
throws JMSException (src)
addMessage in interface JMSServerInterceptor (src) addMessage in class JMSServerInterceptorSupport (src) dc - The feature to be added to the Message attributeval - The feature to be added to the Message attribute
JMSException (src) - Description of Exception
public void addMessage(ConnectionToken (src) dc,
SpyMessage (src) val,
Tx (src) txId)
throws JMSException (src)
dc - The feature to be added to the Message attributeval - The feature to be added to the Message attributetxId - The feature to be added to the Message attribute
JMSException (src) - Description of Exception
public void transact(ConnectionToken (src) dc,
TransactionRequest (src) t)
throws JMSException (src)
transact in interface JMSServerInterceptor (src) transact in class JMSServerInterceptorSupport (src) dc - Description of Parametert - Description of Parameter
JMSException (src) - Description of Exception
public void acknowledge(ConnectionToken (src) dc,
AcknowledgementRequest (src) item)
throws JMSException (src)
acknowledge in interface JMSServerInterceptor (src) acknowledge in class JMSServerInterceptorSupport (src) dc - Description of Parameteritem - Description of Parameter
JMSException (src) - Description of Exception
public void acknowledge(ConnectionToken (src) dc,
AcknowledgementRequest (src) item,
Tx (src) txId)
throws JMSException (src)
dc - Description of Parameteritem - Description of ParametertxId - Description of Parameter
JMSException (src) - Description of Exception
public void connectionClosing(ConnectionToken (src) dc)
throws JMSException (src)
connectionClosing in interface JMSServerInterceptor (src) connectionClosing in class JMSServerInterceptorSupport (src) dc - Description of Parameter
JMSException (src) - Description of Exception
public void connectionFailure(ConnectionToken (src) dc)
throws JMSException (src)
dc - Description of Parameter
JMSException (src) - Description of Exception
public void subscribe(ConnectionToken (src) dc,
Subscription (src) sub)
throws JMSException (src)
subscribe in interface JMSServerInterceptor (src) subscribe in class JMSServerInterceptorSupport (src) dc - Description of Parametersub - Description of Parameter
JMSException (src) - Description of Exception
public void unsubscribe(ConnectionToken (src) dc,
int subscriptionId)
throws JMSException (src)
unsubscribe in interface JMSServerInterceptor (src) unsubscribe in class JMSServerInterceptorSupport (src) dc - Description of ParametersubscriptionId - Description of Parameter
JMSException (src) - Description of Exception
public void destroySubscription(ConnectionToken (src) dc,
DurableSubscriptionID (src) id)
throws JMSException (src)
destroySubscription in interface JMSServerInterceptor (src) destroySubscription in class JMSServerInterceptorSupport (src) id - Description of Parameter
JMSException (src) - Description of Exception
public SpyMessage (src) [] browse(ConnectionToken (src) dc,
Destination (src) dest,
java.lang.String selector)
throws JMSException (src)
browse in interface JMSServerInterceptor (src) browse in class JMSServerInterceptorSupport (src) dc - Description of Parameterdest - Description of Parameterselector - Description of Parameter
JMSException (src) - Description of Exception
public SpyMessage (src) receive(ConnectionToken (src) dc,
int subscriberId,
long wait)
throws JMSException (src)
receive in interface JMSServerInterceptor (src) receive in class JMSServerInterceptorSupport (src) dc - Description of ParametersubscriberId - Description of Parameterwait - Description of Parameter
JMSException (src) - Description of Exception
public Queue (src) createQueue(ConnectionToken (src) dc,
java.lang.String name)
throws JMSException (src)
createQueue in interface JMSServerInterceptor (src) createQueue in class JMSServerInterceptorSupport (src) dc - Description of Parametername - Description of Parameter
JMSException (src) - Description of Exception
public Topic (src) createTopic(ConnectionToken (src) dc,
java.lang.String name)
throws JMSException (src)
createTopic in interface JMSServerInterceptor (src) createTopic in class JMSServerInterceptorSupport (src) dc - Description of Parametername - Description of Parameter
JMSException (src) - Description of Exception
public void deleteTemporaryDestination(ConnectionToken (src) dc,
SpyDestination (src) dest)
throws JMSException (src)
deleteTemporaryDestination in interface JMSServerInterceptor (src) deleteTemporaryDestination in class JMSServerInterceptorSupport (src) dc - Description of Parameterdest - Description of Parameter
JMSException (src) - Description of Exception
protected void deleteTemporaryDestination(ConnectionToken (src) dc,
JMSDestination (src) destination)
throws JMSException (src)
JMSException (src)
public java.lang.String checkUser(java.lang.String userName,
java.lang.String password)
throws JMSException (src)
checkUser in interface JMSServerInterceptor (src) checkUser in class JMSServerInterceptorSupport (src) userName - Description of Parameterpassword - Description of Parameter
JMSException (src) - Description of Exception
public java.lang.String authenticate(java.lang.String id,
java.lang.String password)
throws JMSException (src)
authenticate in interface JMSServerInterceptor (src) authenticate in class JMSServerInterceptorSupport (src) id - Description of Parameterpassword - Description of Parameter
JMSException (src) - Description of Exception
public void addDestination(JMSDestination (src) destination)
throws JMSException (src)
JMSException (src) - Description of Exception
public void closeDestination(SpyDestination (src) dest)
throws JMSException (src)
dest - the destionation to close
JMSException (src) - Description of Exceptionpublic java.lang.String toString()
public void ping(ConnectionToken (src) dc,
long clientTime)
throws JMSException (src)
ping in interface JMSServerInterceptor (src) ping in class JMSServerInterceptorSupport (src) dc - Description of ParameterclientTime - Description of Parameter
JMSException (src) - Description of Exceptionpublic MessageCache (src) getMessageCache()
public void setMessageCache(MessageCache (src) messageCache)
messageCache - The messageCache to set
public SpyTopic (src) getDurableTopic(DurableSubscriptionID (src) sub)
throws JMSException (src)
JMSServerInterceptor (src)
getDurableTopic in interface JMSServerInterceptor (src) getDurableTopic in class JMSServerInterceptorSupport (src) JMSException (src)
public Subscription (src) getSubscription(ConnectionToken (src) dc,
int subscriberId)
throws JMSException (src)
JMSServerInterceptor (src)
getSubscription in interface JMSServerInterceptor (src) getSubscription in class JMSServerInterceptorSupport (src) JMSException (src) public MessageCounter (src) [] getMessageCounter()
public void resetMessageCounter()
|
||||||||||
| PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||