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