| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Defines the methods that can be called by a client on the server.
| Method Summary | |
|  void | acknowledge(ConnectionToken dc,
            AcknowledgementRequest item)#Description of the Method | 
|  void | addMessage(ConnectionToken dc,
           SpyMessage message)Adds a message to the destination specifyed in the message. | 
|  String | authenticate(String userName,
             String password)Authenticate the user. | 
|  SpyMessage[] | browse(ConnectionToken dc,
       javax.jms.Destination dest,
       String selector)#Description of the Method | 
|  void | checkID(String ID)Check if clientID is a valid ID. | 
|  String | checkUser(String userName,
          String password)Get a clientID for a given user/password. | 
|  ServerIL | cloneServerIL()#Description of the Method | 
|  void | connectionClosing(ConnectionToken dc)The client is closing the connection. | 
|  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)Unsubscribe from a durable subscription. | 
|  String | getID()Get a clientID from the server. | 
|  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)Ping the server. | 
|  SpyMessage | receive(ConnectionToken dc,
        int subscriberId,
        long wait)Get a message synchronously. | 
|  void | setConnectionToken(ConnectionToken newConnectionToken) | 
|  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)Remove a consumer. | 
| Method Detail | 
public ServerIL cloneServerIL() throws Exception
Exception - Description of Exceptionpublic void setConnectionToken(ConnectionToken newConnectionToken) throws Exception
newConnectionToken - org.jboss.mq.ConnectionToken
Exception - The exception description.public String getID() throws Exception
Exception - Description of Exceptionpublic javax.jms.TemporaryTopic getTemporaryTopic(ConnectionToken dc) throws Exception
dc - Description of Parameter
Exception - Description of Exceptionpublic javax.jms.TemporaryQueue getTemporaryQueue(ConnectionToken dc) throws Exception
dc - Description of Parameter
Exception - Description of Exceptionpublic void connectionClosing(ConnectionToken dc) throws Exception
dc - Description of Parameter
Exception - Description of Exceptionpublic void checkID(String ID) throws Exception
ID - a clientID set by the client.
Exception - if the clientID was not vallid.public void addMessage(ConnectionToken dc, SpyMessage message) throws Exception
dc - The feature to be added to the Message attributemessage - The feature to be added to the Message attribute
Exception - Description of Exceptionpublic javax.jms.Queue createQueue(ConnectionToken dc, String dest) throws Exception
dc - Description of Parameterdest - Description of Parameter
Exception - Description of Exceptionpublic javax.jms.Topic createTopic(ConnectionToken dc, String dest) throws Exception
dc - Description of Parameterdest - Description of Parameter
Exception - Description of Exceptionpublic void deleteTemporaryDestination(ConnectionToken dc, SpyDestination dest) throws Exception
dc - Description of Parameterdest - Description of Parameter
Exception - Description of Exceptionpublic void transact(ConnectionToken dc, TransactionRequest t) throws Exception
dc - Description of Parametert - Description of Parameter
Exception - Description of Exceptionpublic void acknowledge(ConnectionToken dc, AcknowledgementRequest item) throws Exception
dc - Description of Parameteritem - Description of Parameter
Exception - Description of Exceptionpublic SpyMessage[] browse(ConnectionToken dc, javax.jms.Destination dest, String selector) throws Exception
dc - Description of Parameterdest - Description of Parameterselector - Description of Parameter
Exception - Description of Exceptionpublic SpyMessage receive(ConnectionToken dc, int subscriberId, long wait) throws Exception
dc - Description of ParametersubscriberId - Description of Parameterwait - Description of Parameter
Exception - Description of Exceptionpublic void setEnabled(ConnectionToken dc, boolean enabled) throws Exception
dc - The new Enabled valueenabled - The new Enabled value
Exception - Description of Exceptionpublic void unsubscribe(ConnectionToken dc, int subscriptionId) throws Exception
dc - Description of ParametersubscriptionId - Description of Parameter
Exception - Description of Exceptionpublic void destroySubscription(ConnectionToken dc, DurableSubscriptionID id) throws Exception
id - Description of Parameter
Exception - Description of Exceptionpublic String checkUser(String userName, String password) throws Exception
userName - a valid user name that the StateManager knows about.password - a password
Exception - Description of Exceptionpublic String authenticate(String userName, String password) throws Exception
userName - a username.password - a password.
Exception - Description of Exceptionpublic void subscribe(ConnectionToken dc, Subscription s) throws Exception
dc - org.jboss.mq.ConnectionTokens - org.jboss.mq.Subscription
Exception - The exception description.public void ping(ConnectionToken dc, long clientTime) throws Exception
dc - Description of ParameterclientTime - Description of Parameter
Exception - Description of Exception| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||