|
Sun Adapter for Websphere MQ API | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IQueue
This interface describes the structure of the 'Queue' portion of the WebSphere MQ eWay OTD used in Java Collaborations.
Method Summary | |
---|---|
void |
accessQueue(java.lang.String queueName)
Accesses a queue on the current queue manager, to access messages. |
void |
accessQueue(java.lang.String queueName,
java.lang.String qmgrName)
Call this to access a queue on a remote queue manager (i.e., a remote queue which does not have a local queue definition). |
void |
get()
Gets a message from the current queue. |
int |
getCurrentDepth()
Gets the number of messages available in the current queue. |
IGMO |
getGMO()
Accesses the GMO branch of this OTD. |
int |
getMaximumDepth()
Gets the maximum number of messages that can exist on the current queue. |
int |
getMaximumMessageLength()
Gets the maximum length of application data that can exist in any one message on the current queue. |
IPMO |
getPMO()
Accesses the PMO branch of this OTD. |
QueueAccessOptions |
getqueueAccessOptions()
Retrieves the access-options data structure that specifies the options that control the opening of the queue. |
QueueAccessOptions |
getQueueAccessOptions()
Retrieves the access-options data structure that specifies the options that control the opening of the queue. |
void |
getWithOptions()
Gets a message from the current queue. |
void |
put()
Puts a message into the current queue. |
void |
putWithOptions()
Put a message into the current queue. |
void |
selectQueue(java.lang.String queueName)
Selects one of the previously accessed queues and make it the current queue. |
Method Detail |
---|
IGMO getGMO()
IGMO
- Returns the GMO sub-OTD.
IPMO getPMO()
IPMO
- Returns the PMO sub-OTD.
QueueAccessOptions getqueueAccessOptions()
QueueAccessOptions
- Returns object describing the queue access options in
effect.
QueueAccessOptions getQueueAccessOptions()
QueueAccessOptions
- Returns object describing the queue access options in
effect.
void accessQueue(java.lang.String queueName) throws MQAgentConnectionException, com.stc.connector.appconn.common.ApplicationConnectionException
queueName
- Name of the queue to access on the current queue
manager.
MQAgentConnectionException
- Thrown if there is a problem accessing
the queue.
com.stc.connector.appconn.common.ApplicationConnectionException
- Thrown if the current queue manager is no
longer usable because it has been
invalidated.selectQueue(String)
,
MQOtd#selectQueueManager(String)
void accessQueue(java.lang.String queueName, java.lang.String qmgrName) throws MQAgentConnectionException, com.stc.connector.appconn.common.ApplicationConnectionException
IMqOtd.selectQueueManager(String)
selectable} queue managers.
queueName
- Name of the queue to access on the current queue
manager.qmgrName
- Name of the remote queue manager which owns the named
queue.
MQAgentConnectionException
- Thrown if there is a problem accessing
the queue.
com.stc.connector.appconn.common.ApplicationConnectionException
- Thrown if the current queue manager is no
longer usable because it has been
invalidated.selectQueue(String)
,
MQOtd#selectQueueManager(String)
void selectQueue(java.lang.String queueName) throws NoSuchQueueException, MQAgentConnectionException, com.stc.connector.appconn.common.ApplicationConnectionException
queueName
- Name of the queue to select on the current queue
manager.
NoSuchQueueException
- Thrown if the specified queue is not
found.
MQAgentConnectionException
- Thrown if there is a connection error.
com.stc.connector.appconn.common.ApplicationConnectionException
- Thrown if the current queue manager is no
longer usable because it has been
invalidated.accessQueue(String)
void get() throws MQException, com.stc.connector.appconn.common.ApplicationConnectionException
Message
part of the WebSphere
MQ OTD.
MQException
- Thrown if the get fails.
com.stc.connector.appconn.common.ApplicationConnectionException
- Thrown if the current queue manager is no
longer usable because it has been
invalidated.void getWithOptions() throws MQException, com.stc.connector.appconn.common.ApplicationConnectionException
Message
part of the WebSphere MQ OTD.
MQException
- Thrown if the get fails.
com.stc.connector.appconn.common.ApplicationConnectionException
- Thrown if the current queue manager is no
longer usable because it has been
invalidated.void put() throws MQException, com.stc.connector.appconn.common.ApplicationConnectionException
Message
part of the WebSphere MQ OTD, so it must be populated
before calling this method.
MQException
- Thrown if the put fails.
com.stc.connector.appconn.common.ApplicationConnectionException
- Thrown if the current queue manager is no
longer usable because it has been
invalidated.void putWithOptions() throws MQException, com.stc.connector.appconn.common.ApplicationConnectionException
Message
part of the WebSphere MQ OTD, so it must be populated
before calling this method.
MQException
- Thrown if the put fails.
com.stc.connector.appconn.common.ApplicationConnectionException
- Thrown if the current queue manager is no
longer usable because it has been
invalidated.int getCurrentDepth() throws MQException, com.stc.connector.appconn.common.ApplicationConnectionException
int
- Returns the number of messages.
MQException
- Thrown if the query fails.
com.stc.connector.appconn.common.ApplicationConnectionException
- Thrown if the current queue manager is no
longer usable because it has been
invalidated.int getMaximumDepth() throws MQException, com.stc.connector.appconn.common.ApplicationConnectionException
int
- Returns the number of messages
com.stc.connector.appconn.common.ApplicationConnectionException
- Thrown if the current queue manager is no
longer usable because it has been
invalidated.
MQException
- Thrown if the query fails.int getMaximumMessageLength() throws MQException, com.stc.connector.appconn.common.ApplicationConnectionException
int
- Returns the maximum application data size in a message.
com.stc.connector.appconn.common.ApplicationConnectionException
- Thrown if the current queue manager is no
longer usable because it has been
invalidated.
MQException
- Thrown if the query fails.
|
Sun Adapter for Websphere MQ API | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |