|
webMethods Broker API for JMS Version 9.5.1.0.171 091713 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WmJMSAdmin
The administration interface to the Broker.
Field Summary | |
---|---|
static int |
LIFECYCLE_DESTROY_ON_DISCONNECT
Destroy on disconnect lifecycle |
static int |
LIFECYCLE_EXPLICIT_DESTROY
Explicit destroy lifecycle |
static int |
RECOVER_GLOBAL
Global recover mode. |
static int |
RECOVER_RESTRICTED
Restricted recover mode. |
static int |
STORAGE_GUARANTEED
Guaranteed storage |
static int |
STORAGE_VOLATILE
Volatile storage |
static int |
TRANSACTION_COMMIT
Commit a transaction. |
static int |
TRANSACTION_ROLLBACK
Abort a transaction. |
static int |
VALIDATION_FULL
Full event type validation |
static int |
VALIDATION_NONE
No event type validation |
static int |
VALIDATION_OPEN
Open event type validation |
Method Summary | |
---|---|
void |
addReceivePermission(javax.jms.ConnectionFactory factory,
javax.jms.Destination destination)
Add a JMS destination to a connection factory's receive permissions. |
void |
addReceivePermission(java.lang.String clientGroup,
java.lang.String eventType)
Add an event type to a client group's receive permissions. |
void |
addSendPermission(javax.jms.ConnectionFactory factory,
javax.jms.Destination destination)
Add a JMS destination to a connection factory's send permissions. |
void |
addSendPermission(java.lang.String clientGroup,
java.lang.String eventType)
Add an event type to a client group's send permissions. |
void |
clearClientQueue(java.lang.String client)
Clear a client's queue on the Broker. |
void |
clearDurableSubscriber(java.lang.String clientID,
java.lang.String name)
Clear all messages for a JMS durable subscriber on the Broker. |
void |
clearQueue(javax.jms.Queue queue)
Clear all messages for a JMS queue on the Broker. |
void |
clearQueue(java.lang.String name)
Clear all messages for a JMS queue on the Broker. |
boolean |
clientExists(java.lang.String client)
Determine if a client exists on the Broker. |
boolean |
clientGroupExists(java.lang.String clientGroup)
Determine if the specified client group exists on the Broker. |
void |
close()
Closes the administration connection to the Broker. |
void |
closeClient(java.lang.String client)
Close a client on the Broker. |
boolean |
connectionFactoryExists(javax.jms.ConnectionFactory factory)
Determines if the JMS connection factory exists on the Broker. |
void |
createBroker(java.lang.String broker,
java.lang.String description,
boolean makeDefault)
Create a Broker on the current Broker Server. |
void |
createClientGroup(java.lang.String clientGroup,
int storage)
Create a client group on the Broker. |
void |
createConnectionFactory(javax.jms.ConnectionFactory factory)
Create the JMS connection factory on the Broker. |
void |
createDestination(javax.jms.Destination destination)
Create a JMS destination on the Broker. |
void |
createDurableSubscriber(javax.jms.ConnectionFactory factory,
javax.jms.Topic topic,
java.lang.String name)
Create a JMS durable subscriber on the Broker. |
void |
createDurableSubscriber(javax.jms.ConnectionFactory factory,
javax.jms.Topic topic,
java.lang.String name,
java.lang.String selector,
boolean noLocal)
Create a JMS durable subscriber on the Broker. |
void |
createDurableSubscriber(javax.jms.ConnectionFactory factory,
javax.jms.Topic topic,
java.lang.String name,
java.lang.String selector,
boolean noLocal,
java.lang.String userDN,
java.lang.String issuerDN)
Create a JMS durable subscriber on the Broker. |
void |
createDurableSubscriber(java.lang.String clientID,
java.lang.String clientGroup,
java.lang.String application,
javax.jms.Topic topic,
java.lang.String name,
java.lang.String selector,
boolean noLocal,
boolean priorityOrdering)
Create a JMS durable subscriber on the Broker. |
void |
createDurableSubscriber(java.lang.String clientID,
java.lang.String clientGroup,
java.lang.String application,
javax.jms.Topic topic,
java.lang.String name,
java.lang.String selector,
boolean noLocal,
boolean priorityOrdering,
java.lang.String userDN,
java.lang.String issuerDN)
Create a JMS durable subscriber on the Broker. |
void |
createDurableSubscriber(java.lang.String clientID,
java.lang.String clientGroup,
javax.jms.Topic topic,
java.lang.String name,
boolean priorityOrdering)
Create a JMS durable subscriber on the Broker. |
void |
createDurableSubscriber(java.lang.String clientID,
java.lang.String clientGroup,
javax.jms.Topic topic,
java.lang.String name,
java.lang.String selector,
boolean noLocal,
boolean priorityOrdering)
Create a JMS durable subscriber on the Broker. |
void |
createDurableSubscriber(java.lang.String clientID,
java.lang.String clientGroup,
javax.jms.Topic topic,
java.lang.String name,
java.lang.String selector,
boolean noLocal,
boolean priorityOrdering,
java.lang.String userDN,
java.lang.String issuerDN)
Create a JMS durable subscriber on the Broker. |
void |
createEventType(java.lang.String eventType,
java.lang.String description,
int storage,
int ttl,
int validation)
Create an event type on the Broker. |
void |
createQueue(javax.jms.ConnectionFactory factory,
javax.jms.Queue queue)
Create the physical JMS queue on the Broker. |
void |
createQueue(javax.jms.ConnectionFactory factory,
javax.jms.Queue queue,
java.lang.String userDN,
java.lang.String issuerDN)
Create the physical JMS queue on the Broker. |
void |
createQueue(java.lang.String name,
java.lang.String clientGroup,
java.lang.String application,
boolean sharedState,
int sharedStateOrdering,
boolean priorityOrdering)
Create the physical JMS queue on the Broker. |
void |
createQueue(java.lang.String name,
java.lang.String clientGroup,
java.lang.String application,
boolean sharedState,
int sharedStateOrdering,
boolean priorityOrdering,
java.lang.String userDN,
java.lang.String issuerDN)
Create the physical JMS queue on the Broker. |
void |
createTerritory(java.lang.String territory)
Create a territory and add the Broker. |
void |
createTopic(java.lang.String topic)
Create a JMS topic on the Broker. |
boolean |
destinationExists(javax.jms.Destination destination)
Determine if the JMS destination exists on the Broker. |
void |
destroyBroker()
Destroy the current Broker. |
void |
destroyClient(java.lang.String client)
Destory a client on the Broker. |
void |
destroyClientGroup(java.lang.String clientGroup)
Destroy a client group from the Broker. |
void |
destroyDestination(javax.jms.Destination destination)
Destroy a JMS destination on the Broker. |
void |
destroyDurableSubscriber(java.lang.String clientID,
java.lang.String name)
Destroy a JMS durable subscriber from the Broker. |
void |
destroyEventType(java.lang.String eventType)
Destroy an event type on the Broker. |
void |
destroyQueue(javax.jms.Queue queue)
Remove the physical JMS queue from the Broker. |
void |
destroyQueue(java.lang.String name)
Remove the physical JMS queue from the Broker. |
void |
destroyTopic(java.lang.String topic)
Destroy a JMS topic on the Broker. |
boolean |
durableSubscriberExists(java.lang.String clientID,
java.lang.String name)
Determine if a JMS durable subscriber exists on the Broker. |
boolean |
eventTypeExists(java.lang.String eventType)
Determine if the event type exists on the Broker. |
java.lang.String |
getBroker()
Get the fully qualified Broker address to which the administration connection is connected. |
java.lang.String |
getBrokerHost()
Get the Broker Server host to which the administration connection is connected. |
java.lang.String |
getBrokerName()
Get the Broker name to which the administration connection is connected. |
int |
getBrokerPort()
Get the Broker Server port to which the administration connection is connected. |
java.lang.String[] |
getBrokers()
Get a list of Brokers on the current Broker Server. |
java.lang.String[] |
getClientGroups()
Get the list of client groups on the Broker. |
java.lang.String[] |
getClientGroups(java.lang.String sendPermission,
java.lang.String receivePermission)
Get the list of client groups on the Broker. |
java.lang.String[] |
getClients()
Return the list of Broker clients. |
java.lang.String[] |
getClients(java.lang.String clientGroup,
java.lang.String eventType)
Return the list of Broker clients. |
java.lang.String[] |
getClientSubscriptions(java.lang.String client)
Get the list of event types to which the client is subscribed. |
java.lang.String |
getDefaultBroker()
Get the default Broker on the current Broker Server. |
java.lang.String[] |
getEventTypes()
Get the list of event types on the Broker. |
java.lang.String[] |
getEventTypes(java.lang.String scope)
Get the list of event types on the Broker. |
int |
getPrepareTimeout()
Get the default prepare timeout. |
int |
getPrepareTimeoutAction()
Get the prepare timeout action. |
java.lang.String[] |
getReceivePermissions(java.lang.String clientGroup)
Get a client group's receive permissions. |
int |
getRecoverMode()
Gets the global recover mode of the Broker. |
java.lang.String[] |
getSendPermissions(java.lang.String clientGroup)
Get a client group's send permissions. |
java.lang.String |
getTerritory()
Get the Broker's territory. |
java.lang.String[] |
getTerritoryBrokerFullNames()
Get a list of Brokers in the current Broker's territory. |
java.lang.String[] |
getTerritoryBrokers()
Get a list of Brokers in the current Broker's territory. |
int |
getTransactionTimeout()
Get the default transaction timeout. |
java.lang.String |
getVersion()
Get the Broker Server version. |
void |
joinTerritory(java.lang.String brokerHost,
java.lang.String brokerName)
Join the Broker to the specified Broker's territory. |
void |
leaveTerritory()
Cause the Broker to leave its current territory. |
boolean |
queueExists(javax.jms.Queue queue)
Determine if the JMS queue exists on the Broker. |
boolean |
queueExists(java.lang.String name)
Determine if the JMS queue exists on the Broker. |
void |
removeReceivePermission(javax.jms.ConnectionFactory factory,
javax.jms.Destination destination)
Remove a JMS destination from a connection factory's receive permissions. |
void |
removeReceivePermission(java.lang.String clientGroup,
java.lang.String eventType)
Remove an event type from a client group's receive permissions. |
void |
removeSendPermission(javax.jms.ConnectionFactory factory,
javax.jms.Destination destination)
Remove a JMS destination from a connection factory's send permissions. |
void |
removeSendPermission(java.lang.String clientGroup,
java.lang.String eventType)
Remove an event type from a client group's send permissions. |
void |
setDefaultBroker(java.lang.String broker)
Set the default Broker on the current Broker Server. |
void |
setPrepareTimeout(int seconds)
Set the default prepare timeout. |
void |
setPrepareTimeoutAction(int action)
Set the prepare timeout action. |
void |
setReceivePermissions(java.lang.String clientGroup,
java.lang.String[] permissions)
Set a client group's receive permissions. |
void |
setRecoverMode(int mode)
Sets the global recover mode of the Broker to either restricted (the default) or global. |
void |
setSendPermissions(java.lang.String clientGroup,
java.lang.String[] permissions)
Set a client group's send permissions. |
void |
setTransactionTimeout(int seconds)
Set the default transaction timeout. |
boolean |
topicExists(java.lang.String topic)
Determine if the JMS topic exists on the Broker. |
Field Detail |
---|
static final int RECOVER_GLOBAL
static final int RECOVER_RESTRICTED
static final int TRANSACTION_COMMIT
static final int TRANSACTION_ROLLBACK
static final int LIFECYCLE_DESTROY_ON_DISCONNECT
static final int LIFECYCLE_EXPLICIT_DESTROY
static final int STORAGE_VOLATILE
static final int STORAGE_GUARANTEED
static final int VALIDATION_FULL
static final int VALIDATION_OPEN
static final int VALIDATION_NONE
Method Detail |
---|
void close() throws WmJMSAdminException
WmJMSAdminException
- if an error occurs closing the connection to the Brokerjava.lang.String getBrokerName() throws WmJMSAdminException
WmJMSAdminException
- if there are communication problems with the Brokerjava.lang.String getBrokerHost() throws WmJMSAdminException
WmJMSAdminException
- if there are communication problems with the Brokerint getBrokerPort() throws WmJMSAdminException
WmJMSAdminException
- if there are communication problems with the Brokerjava.lang.String getBroker() throws WmJMSAdminException
WmJMSAdminException
java.lang.String getVersion() throws WmJMSAdminException
WmJMSAdminSecurityException
- if there are not sufficient permissions
WmJMSAdminException
java.lang.String[] getBrokers() throws WmJMSAdminException
WmJMSAdminSecurityException
- if there are not sufficient permissions
WmJMSAdminException
void createBroker(java.lang.String broker, java.lang.String description, boolean makeDefault) throws WmJMSAdminException
broker
- the Broker namedescription
- the Broker descriptionmakeDefault
- true
to make the Broker the default Broker
WmJMSAdminAlreadyExistsException
- if the Broker already exists
WmJMSAdminInvalidNameException
- if the Broker name is invalid
WmJMSAdminSecurityException
- if there are not sufficient permissions
WmJMSAdminException
void destroyBroker() throws WmJMSAdminException
WmJMSAdminSecurityException
- if there are not sufficient permissions to destroy the Broker.
WmJMSAdminException
java.lang.String getDefaultBroker() throws WmJMSAdminException
WmJMSAdminDoesNotExistException
- if there is no default Broker
WmJMSAdminSecurityException
- if there are not sufficient permissions
WmJMSAdminException
setDefaultBroker(java.lang.String)
void setDefaultBroker(java.lang.String broker) throws WmJMSAdminException
broker
- the Broker to make default, or null to make no Broker default
WmJMSAdminDoesNotExistException
- if the Broker does not exist
WmJMSAdminInvalidNameException
- if the Broker name is invalid
WmJMSAdminSecurityException
- if there are not sufficient permissions
WmJMSAdminException
getDefaultBroker()
java.lang.String[] getClientGroups() throws WmJMSAdminException
WmJMSAdminSecurityException
- if there are not sufficient permissions
WmJMSAdminException
java.lang.String[] getClientGroups(java.lang.String sendPermission, java.lang.String receivePermission) throws WmJMSAdminException
sendPermission
- an event type to search onreceivePermission
- an event type to search on
WmJMSAdminSecurityException
- if there are not sufficient permissions
WmJMSAdminException
boolean clientGroupExists(java.lang.String clientGroup) throws WmJMSAdminException
clientGroup
- the client group name
true
if the client group exists
WmJMSAdminInvalidNameException
- if the client group name is invalid
WmJMSAdminSecurityException
- if there are not sufficient permissions to get the client group
WmJMSAdminException
void createClientGroup(java.lang.String clientGroup, int storage) throws WmJMSAdminException
clientGroup
- the client group name to createstorage
- either STORAGE_VOLATILE
or STORAGE_GUARANTEED
WmJMSAdminAlreadyExistsException
- if the client group already exists
WmJMSAdminInvalidNameException
- if the client group name is invalid
WmJMSAdminSecurityException
- if there are not sufficient permissions to create the client group
WmJMSAdminException
void destroyClientGroup(java.lang.String clientGroup) throws WmJMSAdminException
clientGroup
- the client group name
WmJMSAdminInvalidNameException
- if the client group name is invalid
WmJMSAdminDoesNotExistException
- if the client group does not exist
WmJMSAdminDependsException
- if there are client's that depend on this client group
WmJMSAdminSecurityException
- if there are not sufficient permissions to destroy the client group
WmJMSAdminException
java.lang.String[] getSendPermissions(java.lang.String clientGroup) throws WmJMSAdminException
clientGroup
- the client group name
WmJMSAdminInvalidNameException
- if the client group name is invalid
WmJMSAdminDoesNotExistException
- if the client group does not exist
WmJMSAdminSecurityException
- if there are not sufficient permissions to get the client group's send permissions
WmJMSAdminException
void setSendPermissions(java.lang.String clientGroup, java.lang.String[] permissions) throws WmJMSAdminException
Note: you cannot use multiple threads to simultaneously update permissions for document types on the same client group.
clientGroup
- the client group namepermissions
- the client group's send permissions
WmJMSAdminInvalidNameException
- if the client group name or permission name is invalid
WmJMSAdminDoesNotExistException
- if the client group or event type does not exist
WmJMSAdminSecurityException
- if there are not sufficient permissions to set the client group's send permissions
WmJMSAdminException
java.lang.String[] getReceivePermissions(java.lang.String clientGroup) throws WmJMSAdminException
clientGroup
- the client group name
WmJMSAdminInvalidNameException
- if the client group name is invalid
WmJMSAdminDoesNotExistException
- if the client group does not exist
WmJMSAdminSecurityException
- if there are not sufficient permissions to get the client group's receive permissions
WmJMSAdminException
void setReceivePermissions(java.lang.String clientGroup, java.lang.String[] permissions) throws WmJMSAdminException
Note: you cannot use multiple threads to simultaneously update permissions for document types on the same client group.
clientGroup
- the client group namepermissions
- the client group's receive permissions
WmJMSAdminInvalidNameException
- if the client group name or permission name is invalid
WmJMSAdminDoesNotExistException
- if the client group or event type does not exist
WmJMSAdminSecurityException
- if there are not sufficient permissions to set the client group's receive permissions
WmJMSAdminException
void addSendPermission(java.lang.String clientGroup, java.lang.String eventType) throws WmJMSAdminException
Note: you cannot use multiple threads to simultaneously update permissions for document types on the same client group.
clientGroup
- the client group nameeventType
- the event type name to add
WmJMSAdminInvalidNameException
- if the client group name or event type is invalid
WmJMSAdminDoesNotExistException
- if the client group or event type does not exist
WmJMSAdminSecurityException
- if there are not sufficient permissions to add to the client group's send permissions
WmJMSAdminException
void removeSendPermission(java.lang.String clientGroup, java.lang.String eventType) throws WmJMSAdminException
Note: you cannot use multiple threads to simultaneously update permissions for document types on the same client group.
clientGroup
- the client group nameeventType
- the event type name to remove
WmJMSAdminInvalidNameException
- if the client group name is invalid
WmJMSAdminDoesNotExistException
- if the client group does not exist
WmJMSAdminSecurityException
- if there are not sufficient permissions to remove to the client group's send permissions
WmJMSAdminException
void addReceivePermission(java.lang.String clientGroup, java.lang.String eventType) throws WmJMSAdminException
Note: you cannot use multiple threads to simultaneously update permissions for document types on the same client group.
clientGroup
- the client group nameeventType
- the event type name to add
WmJMSAdminInvalidNameException
- if the client group name or event type is invalid
WmJMSAdminDoesNotExistException
- if the client group or event type does not exist
WmJMSAdminSecurityException
- if there are not sufficient permissions to add to the client group's receive permissions
WmJMSAdminException
void removeReceivePermission(java.lang.String clientGroup, java.lang.String eventType) throws WmJMSAdminException
Note: you cannot use multiple threads to simultaneously update permissions for document types on the same client group.
clientGroup
- the client group nameeventType
- the event type name to remove
WmJMSAdminInvalidNameException
- if the client group name is invalid
WmJMSAdminDoesNotExistException
- if the client group does not exist
WmJMSAdminSecurityException
- if there are not sufficient permissions to remove to the client group's receive permissions
WmJMSAdminException
java.lang.String[] getEventTypes() throws WmJMSAdminException
WmJMSAdminSecurityException
- if there are not sufficient permissions to get the list of event types on the Broker
WmJMSAdminException
java.lang.String[] getEventTypes(java.lang.String scope) throws WmJMSAdminException
scope
- the optional event type scope, or null for all event types
WmJMSAdminSecurityException
- if there are not sufficient permissions to get the list of event types on the Broker
WmJMSAdminException
boolean eventTypeExists(java.lang.String eventType) throws WmJMSAdminException
eventType
- the event type name
true
if the event type exists
WmJMSAdminInvalidNameException
- if the event type name is invalid
WmJMSAdminSecurityException
- if there are not sufficient permissions to get the event type on the Broker
WmJMSAdminException
void createEventType(java.lang.String eventType, java.lang.String description, int storage, int ttl, int validation) throws WmJMSAdminException
eventType
- the event type namedescription
- the event type descriptionstorage
- either STORAGE_VOLATILE
or STORAGE_GUARANTEED
ttl
- time-to-live of the event, or 0 to disable event expirationvalidation
- one of VALIDATION_FULL
, VALIDATION_OPEN
or VALIDATION_NONE
WmJMSAdminAlreadyExistsException
- if the event type already exists
WmJMSAdminInvalidNameException
- if the event type name is invalid
WmJMSAdminSecurityException
- if there are not sufficient permissions to create the event type on the Broker
WmJMSAdminException
void destroyEventType(java.lang.String eventType) throws WmJMSAdminException
eventType
- the event type name
WmJMSAdminInvalidNameException
- if the event type name is invalid
WmJMSAdminDoesNotExistException
- if the event type does not exist
WmJMSAdminDependsException
- if there are permissions that depend on this event type
WmJMSAdminSecurityException
- if there are not sufficient permissions to destroy the event type on the Broker
WmJMSAdminException
java.lang.String[] getClients() throws WmJMSAdminException
WmJMSAdminSecurityException
- if there are not sufficient permissions to get the list of Broker clients
WmJMSAdminException
java.lang.String[] getClients(java.lang.String clientGroup, java.lang.String eventType) throws WmJMSAdminException
clientGroup
- the optional client group to search on, or null to search on all client groupseventType
- the optional subscription to search on, or null to search on all subscriptions
WmJMSAdminSecurityException
- if there are not sufficient permissions to get the list of Broker clients
WmJMSAdminException
java.lang.String[] getClientSubscriptions(java.lang.String client) throws WmJMSAdminException
client
- the name of the client
WmJMSAdminInvalidNameException
- if the client name is invalid
WmJMSAdminDoesNotExistException
- if the client does not exist
WmJMSAdminSecurityException
- if there are not sufficient permissions
WmJMSAdminException
boolean clientExists(java.lang.String client) throws WmJMSAdminException
client
- the name of the client
true
if the client exists
WmJMSAdminInvalidNameException
- if the client name is invalid
WmJMSAdminSecurityException
- if there are not sufficient permissions to get the client
WmJMSAdminException
void clearClientQueue(java.lang.String client) throws WmJMSAdminException
client
- the name of the client to clear
WmJMSAdminInvalidNameException
- if the client name is invalid
WmJMSAdminDoesNotExistException
- if the client does not exist
WmJMSAdminSecurityException
- if there are not sufficient permissions to clear the client's queue
WmJMSAdminException
void closeClient(java.lang.String client) throws WmJMSAdminException
client
- the name of the client to close on the Broker
WmJMSAdminInvalidNameException
- if the client name is invalid
WmJMSAdminDoesNotExistException
- if the client does not exist
WmJMSAdminSecurityException
- if there are not sufficient permissions to close the client
WmJMSAdminException
void destroyClient(java.lang.String client) throws WmJMSAdminException
client
- the name of the client to destroy on the Broker
WmJMSAdminInvalidNameException
- if the client name is invalid
WmJMSAdminDoesNotExistException
- if the client does not exist
WmJMSAdminSecurityException
- if there are not sufficient permissions to destroy the client
WmJMSAdminException
java.lang.String getTerritory() throws WmJMSAdminException
WmJMSAdminDoesNotExistException
- if the Broker is not in a territory
WmJMSAdminSecurityException
- if there are not sufficient permissions
WmJMSAdminException
void createTerritory(java.lang.String territory) throws WmJMSAdminException
territory
- the territory to create
WmJMSAdminInvalidNameException
- if the territory name is invalid
WmJMSAdminAlreadyExistsException
- if the Broker is already in a territory
WmJMSAdminSecurityException
- if there are not sufficient permissions
WmJMSAdminException
void joinTerritory(java.lang.String brokerHost, java.lang.String brokerName) throws WmJMSAdminException
brokerHost
- the host of the Broker whose territory is to be joinedbrokerName
- the name of the Broker whose territory is to be joined
WmJMSAdminInvalidNameException
- if the Broker name is invalid
WmJMSAdminAlreadyExistsException
- if the Broker is already in a territory
WmJMSAdminException
- if the territory cannot be joined
WmJMSAdminSecurityException
- if there are not sufficient permissionsvoid leaveTerritory() throws WmJMSAdminException
WmJMSAdminDoesNotExistException
- if the Broker is not currently in a territory
WmJMSAdminSecurityException
- if there are not sufficient permissions
WmJMSAdminException
java.lang.String[] getTerritoryBrokers() throws WmJMSAdminException
WmJMSAdminDoesNotExistException
- if the Broker is not currently in a territory
WmJMSAdminSecurityException
- if there are not sufficient permissions
WmJMSAdminException
void setRecoverMode(int mode) throws WmJMSAdminException
mode
- The recover mode to set; either RECOVER_GLOBAL
or RECOVER_RESTRICTED
.
WmJMSAdminException
- if the recover mode could not be set
WmJMSAdminSecurityException
- if there are not sufficient permissionsgetRecoverMode()
int getRecoverMode() throws WmJMSAdminException
RECOVER_GLOBAL
or RECOVER_RESTRICTED
.
WmJMSAdminException
- if the recover mode could not be retrieved
WmJMSAdminSecurityException
- if there are not sufficient permissionssetRecoverMode(int)
void setPrepareTimeoutAction(int action) throws WmJMSAdminException
action
- The action to set; either TRANSACTION_ROLLBACK
or TRANSACTION_COMMIT
.
WmJMSAdminException
- if the timeout action could not be set
WmJMSAdminSecurityException
- if there are not sufficient permissionsgetPrepareTimeoutAction()
int getPrepareTimeoutAction() throws WmJMSAdminException
TRANSACTION_ROLLBACK
or TRANSACTION_COMMIT
.
WmJMSAdminException
- if the timeout action could not be retrieved
WmJMSAdminSecurityException
- if there are not sufficient permissionssetPrepareTimeoutAction(int)
void setPrepareTimeout(int seconds) throws WmJMSAdminException
seconds
- The prepare timeout in seconds, or -1 for infinite timeout.
WmJMSAdminException
- if the timeout could not be set
WmJMSAdminSecurityException
- if there are not sufficient permissionsgetPrepareTimeout()
int getPrepareTimeout() throws WmJMSAdminException
WmJMSAdminException
- if the timeout could not be retrieved
WmJMSAdminSecurityException
- if there are not sufficient permissionssetPrepareTimeout(int)
void setTransactionTimeout(int seconds) throws WmJMSAdminException
seconds
- The default transaction timeout to set.
WmJMSAdminException
- if the timeout could not be set
WmJMSAdminSecurityException
- if there are not sufficient permissionsgetTransactionTimeout()
int getTransactionTimeout() throws WmJMSAdminException
WmJMSAdminException
- if the timeout could not be retrieved
WmJMSAdminSecurityException
- if there are not sufficient permissionssetTransactionTimeout(int)
void createConnectionFactory(javax.jms.ConnectionFactory factory) throws WmJMSAdminException
factory
- the factory to create on the Broker
WmJMSAdminInvalidNameException
- if the connection factory's client group name is invalid
WmJMSAdminSecurityException
- if there are not sufficient permissions to create the client group
WmJMSAdminException
boolean connectionFactoryExists(javax.jms.ConnectionFactory factory) throws WmJMSAdminException
factory
- the connection factory
true
if the connection factory exists
WmJMSAdminInvalidNameException
- if the connection factory's client group name is invalid
WmJMSAdminSecurityException
- if there are not sufficient permissions to get the connection factory on the Broker.
WmJMSAdminException
boolean destinationExists(javax.jms.Destination destination) throws WmJMSAdminException
destination
- the destination
true
if the destination exists
WmJMSAdminInvalidNameException
- if the destination name is invalid
WmJMSAdminSecurityException
- if there are not sufficient permissions to get the destination on the Broker.
WmJMSAdminException
void createDestination(javax.jms.Destination destination) throws WmJMSAdminException
createQueue(javax.jms.ConnectionFactory, javax.jms.Queue, java.lang.String, java.lang.String)
to create the physical queue.
destination
- the destination to create on the Broker
WmJMSAdminAlreadyExistsException
- if the destination already exists
WmJMSAdminInvalidNameException
- if the destination name is invalid
WmJMSAdminSecurityException
- if there are not sufficient permissions to create the destination on the Broker.
WmJMSAdminException
createQueue(javax.jms.ConnectionFactory, javax.jms.Queue, java.lang.String, java.lang.String)
void destroyDestination(javax.jms.Destination destination) throws WmJMSAdminException
destination
- the destination to destroy on the Broker
WmJMSAdminInvalidNameException
- if the destination name is invalid
WmJMSAdminDoesNotExistException
- if the destination does not exist
WmJMSAdminDependsException
- if there are permissions that depend on this destination
WmJMSAdminSecurityException
- if there are not sufficient permissions to destroy the destination on the Broker.
WmJMSAdminException
boolean topicExists(java.lang.String topic) throws WmJMSAdminException
topic
- the topic
true
if the topic exists
WmJMSAdminInvalidNameException
- if the topic name is invalid
WmJMSAdminSecurityException
- if there are not sufficient permissions to get the topic on the Broker.
WmJMSAdminException
void createTopic(java.lang.String topic) throws WmJMSAdminException
createQueue(javax.jms.ConnectionFactory, javax.jms.Queue, java.lang.String, java.lang.String)
to create the physical queue.
topic
- the topic to create on the Broker
WmJMSAdminAlreadyExistsException
- if the topic already exists
WmJMSAdminInvalidNameException
- if the topic name is invalid
WmJMSAdminSecurityException
- if there are not sufficient permissions to create the topic on the Broker.
WmJMSAdminException
createQueue(javax.jms.ConnectionFactory, javax.jms.Queue, java.lang.String, java.lang.String)
void destroyTopic(java.lang.String topic) throws WmJMSAdminException
topic
- the topic to destroy on the Broker
WmJMSAdminInvalidNameException
- if the topic name is invalid
WmJMSAdminDoesNotExistException
- if the topic does not exist
WmJMSAdminDependsException
- if there are permissions that depend on this topic
WmJMSAdminSecurityException
- if there are not sufficient permissions to destroy the topic on the Broker.
WmJMSAdminException
void addSendPermission(javax.jms.ConnectionFactory factory, javax.jms.Destination destination) throws WmJMSAdminException
factory
- the connection factorydestination
- the destination to add to the permissions
WmJMSAdminInvalidNameException
- if the client group name or destination is invalid
WmJMSAdminDoesNotExistException
- if the client group or destination does not exist
WmJMSAdminSecurityException
- if there are not sufficient permissions to modify to the client group's send permissions
WmJMSAdminException
void removeSendPermission(javax.jms.ConnectionFactory factory, javax.jms.Destination destination) throws WmJMSAdminException
factory
- the connection factorydestination
- the destination to remove from the permissions
WmJMSAdminInvalidNameException
- if the client group name is invalid
WmJMSAdminDoesNotExistException
- if the client group does not exist
WmJMSAdminSecurityException
- if there are not sufficient permissions to modify to the client group's send permissions
WmJMSAdminException
void addReceivePermission(javax.jms.ConnectionFactory factory, javax.jms.Destination destination) throws WmJMSAdminException
factory
- the connection factorydestination
- the destination to add to the permissions
WmJMSAdminInvalidNameException
- if the client group name or destination is invalid
WmJMSAdminDoesNotExistException
- if the client group or destination does not exist
WmJMSAdminSecurityException
- if there are not sufficient permissions to modify to the client group's send permissions
WmJMSAdminException
void removeReceivePermission(javax.jms.ConnectionFactory factory, javax.jms.Destination destination) throws WmJMSAdminException
factory
- the connection factorydestination
- the destination to remove from the permissions
WmJMSAdminInvalidNameException
- if the client group name is invalid
WmJMSAdminDoesNotExistException
- if the client group does not exist
WmJMSAdminSecurityException
- if there are not sufficient permissions to modify to the client group's send permissions
WmJMSAdminException
boolean durableSubscriberExists(java.lang.String clientID, java.lang.String name) throws WmJMSAdminException
clientID
- the client ID of the connectionname
- the subscription name
true
if the durable subscription exists
WmJMSAdminInvalidNameException
- if the client ID or subscription name is invalid
WmJMSAdminSecurityException
- if there are not sufficient permissions to get the durable subscriber on the Broker.
WmJMSAdminException
void createDurableSubscriber(javax.jms.ConnectionFactory factory, javax.jms.Topic topic, java.lang.String name, java.lang.String selector, boolean noLocal) throws WmJMSAdminException
factory
- the connection factory to use to create the durable subscribertopic
- the topic on which to subscribename
- the subscription nameselector
- an optional selector, or nullnoLocal
- the no local flag
WmJMSAdminAlreadyExistsException
- if the durable subscription already exists
WmJMSAdminInvalidNameException
- if the client ID, destination name or subscription name is invalid
WmJMSAdminSecurityException
- if there are not sufficient permissions to create the durable subscriber on the Broker.
WmJMSAdminException
void createDurableSubscriber(javax.jms.ConnectionFactory factory, javax.jms.Topic topic, java.lang.String name) throws WmJMSAdminException
factory
- the connection factory to use to create the durable subscribertopic
- the topic on which to subscribename
- the subscription name
WmJMSAdminAlreadyExistsException
- if the durable subscription already exists
WmJMSAdminInvalidNameException
- if the client ID, destination name or subscription name is invalid
WmJMSAdminSecurityException
- if there are not sufficient permissions to create the durable subscriber on the Broker.
WmJMSAdminException
void createDurableSubscriber(javax.jms.ConnectionFactory factory, javax.jms.Topic topic, java.lang.String name, java.lang.String selector, boolean noLocal, java.lang.String userDN, java.lang.String issuerDN) throws WmJMSAdminException
factory
- the connection factory to use to create the durable subscribertopic
- the topic on which to subscribename
- the subscription nameselector
- an optional selector, or nullnoLocal
- the no local flaguserDN
- the distinguished name of the intended userissuerDN
- the distinguished name of the intended user's issuer
WmJMSAdminAlreadyExistsException
- if the durable subscription already exists
WmJMSAdminInvalidNameException
- if the client ID, destination name or subscription name is invalid
WmJMSAdminSecurityException
- if there are not sufficient permissions to create the durable subscriber on the Broker.
WmJMSAdminException
void createDurableSubscriber(java.lang.String clientID, java.lang.String clientGroup, javax.jms.Topic topic, java.lang.String name, java.lang.String selector, boolean noLocal, boolean priorityOrdering, java.lang.String userDN, java.lang.String issuerDN) throws WmJMSAdminException
clientID
- the client ID to use to create the durable subscriberclientGroup
- the client group to use to create the durable subscribertopic
- the topic on which to subscribename
- the subscription nameselector
- an optional selector, or nullnoLocal
- the no local flagpriorityOrdering
- true
to create a durable subscriber with priority orderinguserDN
- the distinguished name of the intended userissuerDN
- the distinguished name of the intended user's issuer
WmJMSAdminAlreadyExistsException
- if the durable subscription already exists
WmJMSAdminInvalidNameException
- if the client ID, destination name or subscription name is invalid
WmJMSAdminSecurityException
- if there are not sufficient permissions to create the durable subscriber on the Broker.
WmJMSAdminException
void createDurableSubscriber(java.lang.String clientID, java.lang.String clientGroup, java.lang.String application, javax.jms.Topic topic, java.lang.String name, java.lang.String selector, boolean noLocal, boolean priorityOrdering, java.lang.String userDN, java.lang.String issuerDN) throws WmJMSAdminException
clientID
- the client ID to use to create the durable subscriberclientGroup
- the client group to use to create the durable subscriberapplication
- an optional application name for display purposestopic
- the topic on which to subscribename
- the subscription nameselector
- an optional selector, or nullnoLocal
- the no local flagpriorityOrdering
- true
to create a durable subscriber with priority orderinguserDN
- the distinguished name of the intended userissuerDN
- the distinguished name of the intended user's issuer
WmJMSAdminAlreadyExistsException
- if the durable subscription already exists
WmJMSAdminInvalidNameException
- if the client ID, destination name or subscription name is invalid
WmJMSAdminSecurityException
- if there are not sufficient permissions to create the durable subscriber on the Broker.
WmJMSAdminException
void createDurableSubscriber(java.lang.String clientID, java.lang.String clientGroup, javax.jms.Topic topic, java.lang.String name, java.lang.String selector, boolean noLocal, boolean priorityOrdering) throws WmJMSAdminException
clientID
- the client ID to use to create the durable subscriberclientGroup
- the client group to use to create the durable subscribertopic
- the topic on which to subscribename
- the subscription nameselector
- an optional selector, or nullnoLocal
- the no local flagpriorityOrdering
- true
to create a durable subscriber with priority ordering
WmJMSAdminAlreadyExistsException
- if the durable subscription already exists
WmJMSAdminInvalidNameException
- if the client ID, destination name or subscription name is invalid
WmJMSAdminSecurityException
- if there are not sufficient permissions to create the durable subscriber on the Broker.
WmJMSAdminException
void createDurableSubscriber(java.lang.String clientID, java.lang.String clientGroup, java.lang.String application, javax.jms.Topic topic, java.lang.String name, java.lang.String selector, boolean noLocal, boolean priorityOrdering) throws WmJMSAdminException
clientID
- the client ID to use to create the durable subscriberclientGroup
- the client group to use to create the durable subscriberapplication
- an optional application name for display purposestopic
- the topic on which to subscribename
- the subscription nameselector
- an optional selector, or nullnoLocal
- the no local flagpriorityOrdering
- true
to create a durable subscriber with priority ordering
WmJMSAdminAlreadyExistsException
- if the durable subscription already exists
WmJMSAdminInvalidNameException
- if the client ID, destination name or subscription name is invalid
WmJMSAdminSecurityException
- if there are not sufficient permissions to create the durable subscriber on the Broker.
WmJMSAdminException
void createDurableSubscriber(java.lang.String clientID, java.lang.String clientGroup, javax.jms.Topic topic, java.lang.String name, boolean priorityOrdering) throws WmJMSAdminException
clientID
- the client ID to use to create the durable subscriberclientGroup
- the client group to use to create the durable subscribertopic
- the topic on which to subscribename
- the subscription namepriorityOrdering
- true
to create a durable subscriber with priority ordering
WmJMSAdminAlreadyExistsException
- if the durable subscription already exists
WmJMSAdminInvalidNameException
- if the client ID, destination name or subscription name is invalid
WmJMSAdminSecurityException
- if there are not sufficient permissions to create the durable subscriber on the Broker.
WmJMSAdminException
void destroyDurableSubscriber(java.lang.String clientID, java.lang.String name) throws WmJMSAdminException
clientID
- the client ID of the connectionname
- the subscription name
WmJMSAdminInvalidNameException
- if the client ID or subscription name is invalid
WmJMSAdminDoesNotExistException
- if the durable subscription does not exist
WmJMSAdminSecurityException
- if there are not sufficient permissions to destroy the durable subscriber on the Broker.
WmJMSAdminException
void clearDurableSubscriber(java.lang.String clientID, java.lang.String name) throws WmJMSAdminException
clientID
- the client ID of the connectionname
- the subscription name
WmJMSAdminInvalidNameException
- if the client ID or subscription name is invalid
WmJMSAdminDoesNotExistException
- if the durable subscription does not exist
WmJMSAdminSecurityException
- if there are not sufficient permissions to clear the durable subscriber on the Broker.
WmJMSAdminException
boolean queueExists(java.lang.String name) throws WmJMSAdminException
name
- the queue name
true
if the queue exists
WmJMSAdminInvalidNameException
- if the queue name is invalid
WmJMSAdminSecurityException
- if there are not sufficient permissions to get the queue on the Broker.
WmJMSAdminException
boolean queueExists(javax.jms.Queue queue) throws WmJMSAdminException
queue
- the queue
true
if the queue exists
WmJMSAdminInvalidNameException
- if the queue name is invalid
WmJMSAdminSecurityException
- if there are not sufficient permissions to get the queue on the Broker.
WmJMSAdminException
void createQueue(javax.jms.ConnectionFactory factory, javax.jms.Queue queue, java.lang.String userDN, java.lang.String issuerDN) throws WmJMSAdminException
factory
- the connection factory to use to create the queuequeue
- the queueuserDN
- the distinguished name of the intended userissuerDN
- the distinguished name of the intended user's issuer
WmJMSAdminInvalidNameException
- if the queue name is invalid
WmJMSAdminAlreadyExistsException
- if the queue already exists
WmJMSAdminSecurityException
- if there are not sufficient permissions to create the queue on the Broker.
WmJMSAdminException
void createQueue(javax.jms.ConnectionFactory factory, javax.jms.Queue queue) throws WmJMSAdminException
factory
- the connection factory to use to create the queuequeue
- the queue
WmJMSAdminInvalidNameException
- if the queue name is invalid
WmJMSAdminAlreadyExistsException
- if the queue already exists
WmJMSAdminSecurityException
- if there are not sufficient permissions to create the queue on the Broker.
WmJMSAdminException
void createQueue(java.lang.String name, java.lang.String clientGroup, java.lang.String application, boolean sharedState, int sharedStateOrdering, boolean priorityOrdering, java.lang.String userDN, java.lang.String issuerDN) throws WmJMSAdminException
name
- the queue to createclientGroup
- the client group to use to create the queueapplication
- an optional application name for display purposessharedState
- true
to create a shared state queuesharedStateOrdering
- either WmDestination.SHARED_STATE_ORDERING_NONE
or
WmDestination.SHARED_STATE_ORDERING_PUBLISHER
priorityOrdering
- true
to create a queue with priority orderinguserDN
- the distinguished name of the intended userissuerDN
- the distinguished name of the intended user's issuer
WmJMSAdminInvalidNameException
- if the queue name is invalid
WmJMSAdminAlreadyExistsException
- if the queue already exists
WmJMSAdminSecurityException
- if there are not sufficient permissions to create the queue on the Broker.
WmJMSAdminException
void createQueue(java.lang.String name, java.lang.String clientGroup, java.lang.String application, boolean sharedState, int sharedStateOrdering, boolean priorityOrdering) throws WmJMSAdminException
name
- the queue to createclientGroup
- the client group to use to create the queueapplication
- an optional application name for display purposessharedState
- true
to create a shared state queuesharedStateOrdering
- either WmDestination.SHARED_STATE_ORDERING_NONE
or
WmDestination.SHARED_STATE_ORDERING_PUBLISHER
priorityOrdering
- true
to create a queue with priority ordering
WmJMSAdminInvalidNameException
- if the queue name is invalid
WmJMSAdminAlreadyExistsException
- if the queue already exists
WmJMSAdminSecurityException
- if there are not sufficient permissions to create the queue on the Broker.
WmJMSAdminException
void destroyQueue(javax.jms.Queue queue) throws WmJMSAdminException
queue
- the queue to remove
WmJMSAdminInvalidNameException
- if the queue name is invalid
WmJMSAdminDoesNotExistException
- if the queue does not exist
WmJMSAdminSecurityException
- if there are not sufficient permissions to remove the queue from the Broker.
WmJMSAdminException
void destroyQueue(java.lang.String name) throws WmJMSAdminException
name
- the queue name to remove
WmJMSAdminInvalidNameException
- if the queue name is invalid
WmJMSAdminDoesNotExistException
- if the queue does not exist
WmJMSAdminSecurityException
- if there are not sufficient permissions to remove the queue from the Broker.
WmJMSAdminException
void clearQueue(java.lang.String name) throws WmJMSAdminException
name
- the queue name
WmJMSAdminInvalidNameException
- if the queue name is invalid
WmJMSAdminDoesNotExistException
- if the queue does not exist
WmJMSAdminSecurityException
- if there are not sufficient permissions to clear the queue on the Broker.
WmJMSAdminException
void clearQueue(javax.jms.Queue queue) throws WmJMSAdminException
queue
- the queue to clear
WmJMSAdminInvalidNameException
- if the queue name is invalid
WmJMSAdminDoesNotExistException
- if the queue does not exist
WmJMSAdminSecurityException
- if there are not sufficient permissions to clear the queue on the Broker.
WmJMSAdminException
java.lang.String[] getTerritoryBrokerFullNames() throws WmJMSAdminException
WmJMSAdminDoesNotExistException
- if the Broker is not currently in a territory
WmJMSAdminSecurityException
- if there are not sufficient permissions
WmJMSAdminException
|
webMethods Broker API for JMS Version 9.5.1.0.171 091713 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |