Package com.documentum.fc.client.mq
Interface IDfMessageQueueManager
public interface IDfMessageQueueManager
Created by IntelliJ IDEA. User: fanz Date: Mar 20, 2011 Time: 11:21:27 AM To change this template use File | Settings
| File Templates.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttributes(String queueName, Collection<IDfAttr> attrs) Drop attributes from an existing message queue.createAttribute(String name, boolean repeating, int type) Create a message queue attribute that implement IDfAttr.createAttribute(String name, boolean repeating, int type, int length) Create a message queue attribute that implement IDfAttr.createAttribute(String name, boolean repeating, int type, int length, boolean notQualifiable) Create a message queue attribute that implement IDfAttr.voiddestroyMessageQueue(String queueName) Expunge the message queue with the given namequeueName.voiddropAttributes(String queueName, Collection<String> attrNames) Add attributes to the existing message queue.Return the names of all message queues in the repository as a collection of String.getMessageQueue(String queueName) Fetch a message queue with the givenqueueName.booleanhasAttribute(String queueName, String attrName) Checks if the given message queue already has the specified attribute
-
Method Details
-
createAttribute
Create a message queue attribute that implement IDfAttr.- Parameters:
name- The attribute namerepeating- Indicate if the attribute is a repeating atrtibutetype- The attribute data type- Returns:
- An attribute that implements IDfAttr.
- Throws:
DfException- if the specified message queue already exists, or unable to create the message queue due to other server errors.
-
createAttribute
Create a message queue attribute that implement IDfAttr.- Parameters:
name- The attribute namerepeating- Indicate if the attribute is a repeating atrtibutetype- The attribute data typelength- In case of String type, tells the length of the string.- Returns:
- An attribute that implements IDfAttr.
- Throws:
DfException- if the specified message queue already exists, or unable to create the message queue due to other server errors.
-
createAttribute
IDfAttr createAttribute(String name, boolean repeating, int type, int length, boolean notQualifiable) throws DfException Create a message queue attribute that implement IDfAttr.- Parameters:
name- The attribute namerepeating- Indicates if the attribute is a repeating atrtibutetype- The attribute data typelength- In case of String type, tells the length of the string.notQualifiable- Indicates if the attribute is qualifiable or not. The default is qualifiable.- Returns:
- An attribute that implements IDfAttr.
- Throws:
DfException- if the specified message queue already exists, or unable to create the message queue due to other server errors.
-
getMessageQueue
Fetch a message queue with the givenqueueName.- Parameters:
queueName- The name of the message queue to fetch.- Returns:
- A message queue object that implements IDfMessageQueue.
- Throws:
DfException- if the specified message queue does not exist or some other server errors
-
destroyMessageQueue
Expunge the message queue with the given namequeueName.- Parameters:
queueName- The name of the message queue to destroy.- Throws:
DfException- if the specified message queue does not exist, or other server errors
-
dropAttributes
Add attributes to the existing message queue.- Parameters:
queueName- The name of the message queue to which to add attributesattrNames- A collectoin of attribute names to drop.- Throws:
DfException- if the specified message queue does not exist, or other server errors
-
addAttributes
Drop attributes from an existing message queue.- Parameters:
queueName- The name of the message queue to which to add attributesattrs- A collectoin of attribute objects to be added.- Throws:
DfException- if the specified message queue does not exist, or other server errors
-
hasAttribute
Checks if the given message queue already has the specified attribute- Parameters:
queueName- The name of a message queueattrName- An attribute name- Returns:
trueif the queue already has the atribute,falseotherwise.- Throws:
DfException- if the specified message queue does not exist, or other server errors
-
getAllMessageQueueNames
Return the names of all message queues in the repository as a collection of String.- Throws:
DfException- if server errors.
-