|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mq.il.uil2.UILServerIL
public class UILServerIL
The UILServerIL is created on the server and copied to the client during connection factory lookups. It represents the transport interface to the JMS server.
Field Summary | |
---|---|
protected Socket |
socket
Description of the Field |
protected SocketManager |
socketMgr
Description of the Field |
Fields inherited from interface org.jboss.mq.il.uil2.msgs.MsgTypes |
---|
m_acknowledge, m_addMessage, m_authenticate, m_browse, m_checkID, m_checkUser, m_close, m_connectionClosing, m_createQueue, m_createTopic, m_deleteTemporaryDestination, m_destroySubscription, m_getID, m_getTemporaryQueue, m_getTemporaryTopic, m_ping, m_pong, m_receive, m_receiveRequest, m_recover, m_setEnabled, m_setSpyDistributedConnection, m_subscribe, m_transact, m_unsubscribe |
Constructor Summary | |
---|---|
UILServerIL(InetAddress addr,
int port,
String socketFactoryName,
boolean enableTcpNoDelay,
int bufferSize,
int chunkSize,
int soTimeout,
String connectAddress,
int connectPort)
|
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 |
protected void |
checkConnection()
|
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. |
Object |
clone()
|
ServerIL |
cloneServerIL()
#Description of the Method |
void |
connectionClosing(ConnectionToken dc)
The client is closing the connection. |
protected void |
createConnection()
Used to establish a new connection to the server |
javax.jms.Queue |
createQueue(ConnectionToken dc,
String destName)
#Description of the Method |
javax.jms.Topic |
createTopic(ConnectionToken dc,
String destName)
#Description of the Method |
void |
deleteTemporaryDestination(ConnectionToken dc,
SpyDestination dest)
#Description of the Method |
protected void |
destroyConnection()
Used to close the current connection with the server |
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 dest)
|
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 |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected transient Socket socket
protected transient SocketManager socketMgr
Constructor Detail |
---|
public UILServerIL(InetAddress addr, int port, String socketFactoryName, boolean enableTcpNoDelay, int bufferSize, int chunkSize, int soTimeout, String connectAddress, int connectPort) throws Exception
Exception
Method Detail |
---|
public void setConnectionToken(ConnectionToken dest) throws Exception
setConnectionToken
in interface ServerIL
dest
- org.jboss.mq.ConnectionToken
Exception
- The exception description.public void setEnabled(ConnectionToken dc, boolean enabled) throws javax.jms.JMSException, Exception
ServerIL
setEnabled
in interface ServerIL
dc
- The new Enabled valueenabled
- The new Enabled value
Exception
- Description of Exception
javax.jms.JMSException
public String getID() throws Exception
ServerIL
getID
in interface ServerIL
Exception
- Description of Exceptionpublic javax.jms.TemporaryQueue getTemporaryQueue(ConnectionToken dc) throws javax.jms.JMSException, Exception
ServerIL
getTemporaryQueue
in interface ServerIL
dc
- Description of Parameter
Exception
- Description of Exception
javax.jms.JMSException
public javax.jms.TemporaryTopic getTemporaryTopic(ConnectionToken dc) throws javax.jms.JMSException, Exception
ServerIL
getTemporaryTopic
in interface ServerIL
dc
- Description of Parameter
Exception
- Description of Exception
javax.jms.JMSException
public void acknowledge(ConnectionToken dc, AcknowledgementRequest item) throws javax.jms.JMSException, Exception
ServerIL
acknowledge
in interface ServerIL
dc
- Description of Parameteritem
- Description of Parameter
Exception
- Description of Exception
javax.jms.JMSException
public void addMessage(ConnectionToken dc, SpyMessage val) throws Exception
ServerIL
addMessage
in interface ServerIL
dc
- The feature to be added to the Message attributeval
- The feature to be added to the Message attribute
Exception
- Description of Exceptionpublic SpyMessage[] browse(ConnectionToken dc, javax.jms.Destination dest, String selector) throws javax.jms.JMSException, Exception
ServerIL
browse
in interface ServerIL
dc
- Description of Parameterdest
- Description of Parameterselector
- Description of Parameter
Exception
- Description of Exception
javax.jms.JMSException
public void checkID(String id) throws javax.jms.JMSException, Exception
ServerIL
checkID
in interface ServerIL
id
- a clientID set by the client.
Exception
- if the clientID was not vallid.
javax.jms.JMSException
public String checkUser(String username, String password) throws javax.jms.JMSException, Exception
ServerIL
checkUser
in interface ServerIL
username
- a valid user name that the StateManager knows about.password
- a password
Exception
- Description of Exception
javax.jms.JMSException
public String authenticate(String username, String password) throws javax.jms.JMSException, Exception
ServerIL
authenticate
in interface ServerIL
username
- a username.password
- a password.
Exception
- Description of Exception
javax.jms.JMSException
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public ServerIL cloneServerIL() throws Exception
ServerIL
cloneServerIL
in interface ServerIL
Exception
- Description of Exceptionpublic void connectionClosing(ConnectionToken dc) throws javax.jms.JMSException, Exception
ServerIL
connectionClosing
in interface ServerIL
dc
- Description of Parameter
Exception
- Description of Exception
javax.jms.JMSException
public javax.jms.Queue createQueue(ConnectionToken dc, String destName) throws javax.jms.JMSException, Exception
ServerIL
createQueue
in interface ServerIL
dc
- Description of ParameterdestName
- Description of Parameter
Exception
- Description of Exception
javax.jms.JMSException
public javax.jms.Topic createTopic(ConnectionToken dc, String destName) throws javax.jms.JMSException, Exception
ServerIL
createTopic
in interface ServerIL
dc
- Description of ParameterdestName
- Description of Parameter
Exception
- Description of Exception
javax.jms.JMSException
public void deleteTemporaryDestination(ConnectionToken dc, SpyDestination dest) throws javax.jms.JMSException, Exception
ServerIL
deleteTemporaryDestination
in interface ServerIL
dc
- Description of Parameterdest
- Description of Parameter
Exception
- Description of Exception
javax.jms.JMSException
public void destroySubscription(ConnectionToken dc, DurableSubscriptionID id) throws javax.jms.JMSException, Exception
ServerIL
destroySubscription
in interface ServerIL
id
- Description of Parameter
Exception
- Description of Exception
javax.jms.JMSException
public void ping(ConnectionToken dc, long clientTime) throws Exception
ServerIL
ping
in interface ServerIL
dc
- Description of ParameterclientTime
- Description of Parameter
Exception
- Description of Exceptionpublic SpyMessage receive(ConnectionToken dc, int subscriberId, long wait) throws Exception, Exception
ServerIL
receive
in interface ServerIL
dc
- Description of ParametersubscriberId
- Description of Parameterwait
- Description of Parameter
Exception
- Description of Exceptionpublic void subscribe(ConnectionToken dc, Subscription s) throws javax.jms.JMSException, Exception
subscribe
in interface ServerIL
dc
- org.jboss.mq.ConnectionTokens
- org.jboss.mq.Subscription
Exception
- The exception description.
javax.jms.JMSException
public void transact(ConnectionToken dc, TransactionRequest t) throws javax.jms.JMSException, Exception
ServerIL
transact
in interface ServerIL
dc
- Description of Parametert
- Description of Parameter
Exception
- Description of Exception
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 errorpublic void unsubscribe(ConnectionToken dc, int subscriptionID) throws javax.jms.JMSException, Exception
ServerIL
unsubscribe
in interface ServerIL
dc
- Description of ParametersubscriptionID
- Description of Parameter
Exception
- Description of Exception
javax.jms.JMSException
protected void checkConnection() throws Exception
Exception
protected void createConnection() throws Exception
Exception
- Description of Exceptionprotected void destroyConnection()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |