|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mq.il.jvm.JVMServerIL
public class JVMServerIL
The JVM implementation of the ServerIL object
Constructor Summary | |
---|---|
JVMServerIL(Invoker s)
Constructor for the JVMServerIL object |
Method Summary | |
---|---|
void |
acknowledge(ConnectionToken dc,
AcknowledgementRequest item)
#Description of the Method |
void |
addMessage(ConnectionToken dc,
SpyMessage val)
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. |
Xid[] |
recover(ConnectionToken dc,
int flags)
Recover |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JVMServerIL(Invoker s)
s
- Description of ParameterMethod Detail |
---|
public void setConnectionToken(ConnectionToken newConnectionToken)
setConnectionToken
in interface ServerIL
newConnectionToken
- org.jboss.mq.ConnectionTokenpublic void setEnabled(ConnectionToken dc, boolean enabled) throws Exception
ServerIL
setEnabled
in interface ServerIL
dc
- The new Enabled valueenabled
- The new Enabled value
Exception
- Description of Exceptionpublic String getID() throws javax.jms.JMSException
ServerIL
getID
in interface ServerIL
javax.jms.JMSException
public javax.jms.TemporaryQueue getTemporaryQueue(ConnectionToken dc) throws javax.jms.JMSException
ServerIL
getTemporaryQueue
in interface ServerIL
dc
- Description of Parameter
javax.jms.JMSException
public javax.jms.TemporaryTopic getTemporaryTopic(ConnectionToken dc) throws javax.jms.JMSException
ServerIL
getTemporaryTopic
in interface ServerIL
dc
- Description of Parameter
javax.jms.JMSException
public ServerIL cloneServerIL()
ServerIL
cloneServerIL
in interface ServerIL
public void addMessage(ConnectionToken dc, SpyMessage val) throws javax.jms.JMSException
ServerIL
addMessage
in interface ServerIL
dc
- The feature to be added to the Message attributeval
- The feature to be added to the Message attribute
javax.jms.JMSException
public javax.jms.Topic createTopic(ConnectionToken dc, String dest) throws javax.jms.JMSException
ServerIL
createTopic
in interface ServerIL
dc
- Description of Parameterdest
- Description of Parameter
javax.jms.JMSException
public javax.jms.Queue createQueue(ConnectionToken dc, String dest) throws javax.jms.JMSException
ServerIL
createQueue
in interface ServerIL
dc
- Description of Parameterdest
- Description of Parameter
javax.jms.JMSException
public void deleteTemporaryDestination(ConnectionToken dc, SpyDestination dest) throws javax.jms.JMSException
ServerIL
deleteTemporaryDestination
in interface ServerIL
dc
- Description of Parameterdest
- Description of Parameter
javax.jms.JMSException
public void checkID(String ID) throws javax.jms.JMSException
ServerIL
checkID
in interface ServerIL
ID
- a clientID set by the client.
javax.jms.JMSException
public void connectionClosing(ConnectionToken dc) throws javax.jms.JMSException
ServerIL
connectionClosing
in interface ServerIL
dc
- Description of Parameter
javax.jms.JMSException
public void acknowledge(ConnectionToken dc, AcknowledgementRequest item) throws Exception
ServerIL
acknowledge
in interface ServerIL
dc
- Description of Parameteritem
- Description of Parameter
Exception
- Description of Exceptionpublic SpyMessage[] browse(ConnectionToken dc, javax.jms.Destination dest, String selector) throws Exception
ServerIL
browse
in interface ServerIL
dc
- Description of Parameterdest
- Description of Parameterselector
- Description of Parameter
Exception
- Description of Exceptionpublic SpyMessage receive(ConnectionToken dc, int subscriberId, long wait) throws Exception
ServerIL
receive
in interface ServerIL
dc
- Description of ParametersubscriberId
- Description of Parameterwait
- Description of Parameter
Exception
- Description of Exceptionpublic void unsubscribe(ConnectionToken dc, int subscriptionId) throws Exception
ServerIL
unsubscribe
in interface ServerIL
dc
- Description of ParametersubscriptionId
- Description of Parameter
Exception
- Description of Exceptionpublic void destroySubscription(ConnectionToken dc, DurableSubscriptionID id) throws Exception
ServerIL
destroySubscription
in interface ServerIL
id
- Description of Parameter
Exception
- Description of Exceptionpublic String checkUser(String userName, String password) throws javax.jms.JMSException
ServerIL
checkUser
in interface ServerIL
userName
- a valid user name that the StateManager knows about.password
- a password
javax.jms.JMSException
public String authenticate(String userName, String password) throws javax.jms.JMSException
ServerIL
authenticate
in interface ServerIL
userName
- a username.password
- a password.
javax.jms.JMSException
public void subscribe(ConnectionToken dc, Subscription s) throws Exception
subscribe
in interface ServerIL
dc
- org.jboss.mq.ConnectionTokens
- org.jboss.mq.Subscription
Exception
- The exception description.public void transact(ConnectionToken dc, TransactionRequest t) throws javax.jms.JMSException
ServerIL
transact
in interface ServerIL
dc
- Description of Parametert
- Description of Parameter
javax.jms.JMSException
public void ping(ConnectionToken dc, long clientTime) throws javax.jms.JMSException
ServerIL
ping
in interface ServerIL
dc
- Description of ParameterclientTime
- Description of Parameter
javax.jms.JMSException
public Xid[] recover(ConnectionToken dc, int flags) throws Exception
Recoverable
recover
in interface Recoverable
dc
- the connnection tokenflags
- the recovery flags
Exception
- for any error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |