|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.exolab.jms.server.mipc.IpcJmsSessionConnection
This is the server side receiver for JmsSession requests. All requests are unpacked and passed on to the appropriate JmsServerSession object.
IpcJmsReceiver
,
JmsServerConnection
,
JmsServerConnectionManager
,
JmsServerSession
Constructor Summary | |
IpcJmsSessionConnection(IpcJmsServer server)
Construct a new IpcJmsSessionConnection |
Method Summary | |
protected java.util.Vector |
acknowledgeMessage(JmsServerSession session,
java.lang.Long clientId,
java.lang.String id)
Acknowledge a JmsMessage |
protected java.util.Vector |
close(JmsServerSession session,
org.exolab.core.mipc.MultiplexConnectionIfc connection)
A close session request has been received. |
protected java.util.Vector |
commit(JmsServerSession session)
commit the session |
protected java.util.Vector |
createBrowser(JmsServerSession session,
JmsQueue queue,
java.lang.Long clientId,
java.lang.String selector,
org.exolab.core.mipc.MultiplexConnectionIfc connection,
java.lang.String host,
java.lang.String port,
java.lang.String url)
Create a new queue browser for the specified session and queue. |
protected java.util.Vector |
createPublisher(JmsServerSession session,
JmsTopic topic)
Create a new publisher for the given topic. |
protected java.util.Vector |
createQueue(JmsServerSession session,
JmsQueue queue)
Create a new Queue. |
protected java.util.Vector |
createReceiver(JmsServerSession session,
JmsQueue queue,
java.lang.Long consumerId,
java.lang.String selector,
org.exolab.core.mipc.MultiplexConnectionIfc connection,
java.lang.String host,
java.lang.String port,
java.lang.String url)
Create a new receiver |
protected java.util.Vector |
createSender(JmsServerSession session,
JmsQueue queue)
Create a new sender for the given queue. |
protected java.util.Vector |
createSubscriber(JmsServerSession session,
JmsTopic topic,
java.lang.String name,
java.lang.Long clientId,
java.lang.String selector,
java.lang.Boolean noLocal,
org.exolab.core.mipc.MultiplexConnectionIfc connection,
java.lang.String host,
java.lang.String port,
java.lang.String url)
Create a new subscriber, and connect back to the client through the MultiplexConnection. |
protected java.util.Vector |
createTopic(JmsServerSession session,
JmsTopic topic)
Create a new topic |
protected java.util.Vector |
deleteBrowser(JmsServerSession session,
java.lang.Long clientId)
Delete the queue browser for the specified queue. |
protected java.util.Vector |
deletePublisher(JmsServerSession session,
JmsTopic topic)
Delete a publisher for the given topic. |
protected java.util.Vector |
deleteReceiver(JmsServerSession session,
java.lang.Long clientId)
Delete the receiver for this queue. |
protected java.util.Vector |
deleteSender(JmsServerSession session,
java.lang.Long clientId)
Delete the sender for this queue. |
protected java.util.Vector |
deleteSubscriber(JmsServerSession session,
java.lang.Long clientId)
Delete a subscriber for the given topic |
void |
disconnection(java.lang.String id)
The connection has been broken. |
protected java.util.Vector |
enableAsynchronousDelivery(JmsServerSession session,
java.lang.Long clientId,
java.lang.String id,
java.lang.Boolean enable)
Enable or disable asynchronous message delivery. |
protected org.exolab.core.mipc.MultiplexConnectionIfc |
getConnection(java.lang.String id)
A convenience routine to get the MutliplexConnection. |
protected JmsServerSession |
getSession(java.lang.String id,
java.util.Vector v)
A convenience routine to get the session. |
java.io.Serializable |
notify(java.lang.Object ob,
java.lang.String id)
A new request has been received. |
protected java.util.Vector |
pack(java.lang.Boolean success,
java.lang.Object ob)
Pack all the data that is required by the server in a vector. |
protected java.util.Vector |
receiveMessage(JmsServerSession session,
java.lang.Long clientId,
java.lang.Long wait)
Receive a message from the provider |
protected java.util.Vector |
receiveMessages(JmsServerSession session,
java.lang.Long clientId,
java.lang.Integer count)
Receive upto count messages from the endpoint |
protected java.util.Vector |
recover(JmsServerSession session)
recover the session |
protected java.util.Vector |
rollback(JmsServerSession session)
rollback the session |
protected java.util.Vector |
sendMessage(JmsServerSession session,
javax.jms.Message message)
A JmsMessage has been sent. |
protected java.util.Vector |
sendMessages(JmsServerSession session,
java.util.Vector messages)
A collection of messages have been sent |
protected java.util.Vector |
startMessageDelivery(JmsServerSession session)
Start message delivery for this session. |
protected java.util.Vector |
stopMessageDelivery(JmsServerSession session)
Stop message delivery for this session. |
java.util.Vector |
unsubscribe(JmsServerSession session,
java.lang.String name)
Unsubscribe a durable subscription |
protected java.util.Vector |
XACommit(JmsServerSession session,
javax.transaction.xa.Xid xid,
java.lang.Boolean onePhase)
Commits an XA transaction that is in progress. |
protected java.util.Vector |
XAEnd(JmsServerSession session,
javax.transaction.xa.Xid xid,
java.lang.Integer flags)
Ends the work performed on behalf of a transaction branch. |
protected java.util.Vector |
XAForget(JmsServerSession session,
javax.transaction.xa.Xid xid)
Tell the resource manager to forget about a heuristically completed transaction branch. |
protected java.util.Vector |
XAGetResourceManagerId(JmsServerSession session)
Return the identity of the resource manager. |
protected java.util.Vector |
XAGetTransactionTimeout(JmsServerSession session)
Return the transaction timeout for this instance of the resource manager. |
protected java.util.Vector |
XAPrepare(JmsServerSession session,
javax.transaction.xa.Xid xid)
Ask the resource manager to prepare for a transaction commit of the transaction specified in xid |
java.util.Vector |
XARecover(JmsServerSession session,
java.lang.Integer flag)
Obtain a list of prepared transaction branches from a resource manager. |
protected java.util.Vector |
XARollback(JmsServerSession session,
javax.transaction.xa.Xid xid)
Inform the resource manager to roll back work done on behalf of a transaction branch |
protected java.util.Vector |
XASetTransactionTimeout(JmsServerSession session,
java.lang.Integer seconds)
Set the current transaction timeout value for this XAResource instance. |
protected java.util.Vector |
XAStart(JmsServerSession session,
javax.transaction.xa.Xid xid,
java.lang.Integer flags)
Start work on behalf of a transaction branch specified in xid If TMJOIN is specified, the start is for joining a transaction previously seen by the resource manager |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IpcJmsSessionConnection(IpcJmsServer server)
IpcJmsSessionConnection
server
- the server instanceMethod Detail |
public java.io.Serializable notify(java.lang.Object ob, java.lang.String id)
notify
in interface org.exolab.core.ipc.NotifierIfc
ob
- The data receivedid
- The unique IPC id of the connectionThe
- unique identifier of this connection.public void disconnection(java.lang.String id)
disconnection
in interface org.exolab.core.ipc.NotifierIfc
id
- The unique identifier of this connection.protected JmsServerSession getSession(java.lang.String id, java.util.Vector v)
id
- The unique IPC id of the connectionv
- The vector containing the packed data from the client.protected org.exolab.core.mipc.MultiplexConnectionIfc getConnection(java.lang.String id)
id
- The unique IPC id of the connectionprotected java.util.Vector close(JmsServerSession session, org.exolab.core.mipc.MultiplexConnectionIfc connection)
session
- The session to closeprotected java.util.Vector acknowledgeMessage(JmsServerSession session, java.lang.Long clientId, java.lang.String id)
session
- - the session the request is forclientId
- - the identity of the client that sent itid
- The id of the messageprotected java.util.Vector sendMessage(JmsServerSession session, javax.jms.Message message)
session
- The session the request is for.message
- The message to process.protected java.util.Vector sendMessages(JmsServerSession session, java.util.Vector messages)
session
- - the session the request is for.messages
- - the messages to process.protected java.util.Vector receiveMessage(JmsServerSession session, java.lang.Long clientId, java.lang.Long wait)
session
- The session the request is for.clientId
- The client identitywait
- How long to waitprotected java.util.Vector receiveMessages(JmsServerSession session, java.lang.Long clientId, java.lang.Integer count)
session
- - the session the request is for.clientId
- - the client identitycount
- - max number of messages to receiveprotected java.util.Vector createQueue(JmsServerSession session, JmsQueue queue)
session
- The session the request is for.queue
- The queue to createprotected java.util.Vector createTopic(JmsServerSession session, JmsTopic topic)
session
- The session the request is for.topic
- The topic to createprotected java.util.Vector createReceiver(JmsServerSession session, JmsQueue queue, java.lang.Long consumerId, java.lang.String selector, org.exolab.core.mipc.MultiplexConnectionIfc connection, java.lang.String host, java.lang.String port, java.lang.String url)
session
- The session the request is for.queue
- The queue to create the reciver forconsumerName
- The unique name of this consumer,
only valid for persitent messagesselector
- The selector to filter messages. This may be null.connection
- The MultiplexConnection to the machine the consumer is onhost
- The host the client is running on. Only used for http.port
- The port the client is listening on. Only used for httpurl
- The url for the clients web server. Only used for httpprotected java.util.Vector createSender(JmsServerSession session, JmsQueue queue)
session
- The session the request is for.queue
- The queue the sender is sending toprotected java.util.Vector createBrowser(JmsServerSession session, JmsQueue queue, java.lang.Long clientId, java.lang.String selector, org.exolab.core.mipc.MultiplexConnectionIfc connection, java.lang.String host, java.lang.String port, java.lang.String url)
session
- session that the request is forqueue
- queue to browseclientId
- the client identityselector
- message selector. May be nullconnection
- the connection to the remote machinehost
- The host the client is running on. Only used for http.port
- The port the client is listening on. Only used for httpurl
- The url for the clients web server. Only used for httpprotected java.util.Vector deleteReceiver(JmsServerSession session, java.lang.Long clientId)
session
- - the session the request is for.clientId
- - the client idprotected java.util.Vector deleteSender(JmsServerSession session, java.lang.Long clientId)
session
- The session the request is for.clientId
- The identity of the clientprotected java.util.Vector deleteBrowser(JmsServerSession session, java.lang.Long clientId)
session
- session that the request is forclientId
- the identity of the browserprotected java.util.Vector createSubscriber(JmsServerSession session, JmsTopic topic, java.lang.String name, java.lang.Long clientId, java.lang.String selector, java.lang.Boolean noLocal, org.exolab.core.mipc.MultiplexConnectionIfc connection, java.lang.String host, java.lang.String port, java.lang.String url)
session
- The session the request is for.topic
- The topic the subscriber is subscribing onname
- The unique name of this subscriber,
only valid for persitent messagesselector
- The selector to filter messages. This may be null.connection
- The MultiplexConnection to the machine the consumer is onhost
- The host the client is running on. Only used for http.port
- The port the client is listening on. Only used for httpurl
- The url for the clients web server. Only used for httpprotected java.util.Vector createPublisher(JmsServerSession session, JmsTopic topic)
session
- The session the request is for.topic
- The topic the publisher is publishing toprotected java.util.Vector deleteSubscriber(JmsServerSession session, java.lang.Long clientId)
session
- The session the request is for.clientId
- - The client identity of the subscriber to deleteprotected java.util.Vector deletePublisher(JmsServerSession session, JmsTopic topic)
session
- The session the request is for.topic
- The topic the publisher is publishing topublic java.util.Vector unsubscribe(JmsServerSession session, java.lang.String name)
session
- the session the request is forname
- the name used to identify the
subscriptionprotected java.util.Vector stopMessageDelivery(JmsServerSession session)
session
- The session the request is for.protected java.util.Vector enableAsynchronousDelivery(JmsServerSession session, java.lang.Long clientId, java.lang.String id, java.lang.Boolean enable)
session
- - the session the request is for.clientId
- - consumer identityenable
- - true to enableprotected java.util.Vector startMessageDelivery(JmsServerSession session)
session
- The session the request is for.protected java.util.Vector recover(JmsServerSession session)
session
- The session the request is for.protected java.util.Vector commit(JmsServerSession session)
session
- The session the request is for.protected java.util.Vector rollback(JmsServerSession session)
session
- The session the request is for.protected java.util.Vector XACommit(JmsServerSession session, javax.transaction.xa.Xid xid, java.lang.Boolean onePhase)
xid
- - the xa transaction identityonePhase
- - treu if it is a one phase commitprotected java.util.Vector XAEnd(JmsServerSession session, javax.transaction.xa.Xid xid, java.lang.Integer flags)
xid
- - the xa transaction identityflags
- - one of TMSUCCESS, TMFAIL, or TMSUSPENDprotected java.util.Vector XAForget(JmsServerSession session, javax.transaction.xa.Xid xid)
xid
- - the xa transaction identityprotected java.util.Vector XAGetTransactionTimeout(JmsServerSession session)
protected java.util.Vector XAPrepare(JmsServerSession session, javax.transaction.xa.Xid xid)
xid
- - the xa transaction identitypublic java.util.Vector XARecover(JmsServerSession session, java.lang.Integer flag)
flag
- - One of TMSTARTRSCAN, TMENDRSCAN, TMNOFLAGS. TMNOFLAGSXid[]
- - the set of Xids to recoverprotected java.util.Vector XARollback(JmsServerSession session, javax.transaction.xa.Xid xid)
xid
- - the xa transaction identityprotected java.util.Vector XASetTransactionTimeout(JmsServerSession session, java.lang.Integer seconds)
seconds
- - timeout in secondsprotected java.util.Vector XAStart(JmsServerSession session, javax.transaction.xa.Xid xid, java.lang.Integer flags)
xid
- - the xa transaction identityflags
- - One of TMNOFLAGS, TMJOIN, or TMRESUMEprotected java.util.Vector XAGetResourceManagerId(JmsServerSession session)
session
- - the session identityprotected java.util.Vector pack(java.lang.Boolean success, java.lang.Object ob)
success
- Boolean indicating success or failure of request.ob
- The Object being returned.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |