public class BrokerAdminClient extends BrokerClient
Many calls say they can throw a "communications exception". These exceptions are:
Modifier and Type | Field and Description |
---|---|
static int |
AUTH_TYPE_NONE |
static int |
AUTH_TYPE_SSL |
static int |
DEFAULT_STAT_PACKET_LENGTH |
static int |
LIFECYCLE_DESTROY_ON_DISCONNECT |
static int |
LIFECYCLE_EXPLICIT_DESTROY |
static int |
RECOVER_GLOBAL |
static int |
RECOVER_RESTRICTED |
static int |
TRANSACTION_COMMIT |
static int |
TRANSACTION_END_SUCCESS |
static int |
TRANSACTION_FAILING |
static int |
TRANSACTION_FINISHING |
static int |
TRANSACTION_HEURISTIC_COMMIT |
static int |
TRANSACTION_HEURISTIC_ROLLBACK |
static int |
TRANSACTION_OPEN |
static int |
TRANSACTION_PREPARED |
static int |
TRANSACTION_PREPARING |
static int |
TRANSACTION_ROLLBACK |
static int |
TRANSACTION_ROLLBACK_ONLY |
static int |
TRANSACTION_UNKNOWN |
ACK_AUTOMATIC, ACK_NONE, ACK_SELECTIVE, ACK_THROUGH, browser_open, CONNECT_STATE_CONNECTED, CONNECT_STATE_DISCONNECTED, CONNECT_STATE_RECONNECTED, CURRENT_API_VERSION, DEFAULT_TIMEOUT, DO_NOT_ACK, event_req_id, NO_SHARE_LIMIT, RECEIVE_SYNCHRONOUS, REPLY_FLAG_CONTINUE, REPLY_FLAG_END, REPLY_FLAG_START, REPLY_FLAG_START_AND_END, SYNCHRONOUS, TIME_INFINITE, TRANSACTION_LEVEL_ANY, TRANSACTION_LEVEL_BASIC, TRANSACTION_LEVEL_CONVERSATIONAL, TRANSACTION_LEVEL_PSEUDO, TRANSACTION_MODE_COMMIT, TRANSACTION_MODE_ROLLBACK, TRANSACTION_MODE_SAVEPOINT, VERSION_105, VERSION_31, VERSION_40, VERSION_50, VERSION_60, VERSION_61, VERSION_62, VERSION_63, VERSION_64, VERSION_65, VERSION_66, VERSION_71, VERSION_80, VERSION_82, VERSION_90
Modifier | Constructor and Description |
---|---|
protected |
BrokerAdminClient(java.lang.String broker_host,
java.lang.String broker_name,
java.lang.String client_id,
BrokerConnectionDescriptor desc)
Protected reconnect constructor.
|
|
BrokerAdminClient(java.lang.String broker_host,
java.lang.String broker_name,
java.lang.String client_id,
java.lang.String client_group,
java.lang.String app_name,
BrokerConnectionDescriptor desc)
Creates an administrative client.
|
Modifier and Type | Method and Description |
---|---|
void |
abortForced(long tx_id)
Forcibly abort a transaction.
|
void |
abortForced(long[] tx_ids)
Forcibly abort a list of transactions.
|
BrokerChangeLockInfo |
acquireChangeLock()
Acquire the per-Broker change lock.
|
BrokerJoinFailureInfo |
addBrokerToCluster(java.lang.String broker_host,
java.lang.String broker_name)
Have this broker join the cluster of the specified other broker.
|
int |
checkAndRestartForwarding()
Check for inactivity and restart forwarding documemnts on all territory and gateway brokers on this broker.
|
int |
checkAndRestartForwarding(java.lang.String remote_broker_name)
Check for inactivity and restart forwarding documemnts across the specfied territory or gateway broker.
|
void |
clearClientQueueById(java.lang.String client_id)
Clear all events from the client's queue.
|
void |
commitForced(long tx_id)
Forcibly commit a transaction.
|
void |
commitForced(long[] tx_ids)
Forcibly commit a list of transactions.
|
void |
createClient(java.lang.String client_id,
java.lang.String client_group,
java.lang.String app_name,
java.lang.String user_name,
java.lang.String authenticator_name,
BrokerConnectionDescriptor desc)
Create a new client on the broker.
|
void |
createClientGroup(java.lang.String client_group_name,
int life_cycle,
int storage_type)
Create a client group on the broker.
|
BrokerClientQueueBrowser |
createClientQueueBrowser(java.lang.String client_id)
Creates a queue browser on the specified client.
|
void |
createClientSubscriptionById(java.lang.String client_id,
BrokerSubscription sub)
Create a subscription for the client to all events of a given event type which match the specified filter.
|
void |
createClientSubscriptionsById(java.lang.String client_id,
BrokerSubscription[] subs)
Open multiple subscriptions for a client at one time.
|
void |
createCluster(java.lang.String clusterName)
Create a new cluster with this broker as the first member.
|
void |
createClusterGateway(java.lang.String cluster_name,
java.lang.String broker_host,
java.lang.String broker_name,
boolean isPrimary)
Create a gateway to the specified cluster by having the current broker communicate with the broker specified by broker_host and broker_name.
|
BrokerQueueBrowser |
createForwardQueueBrowser(java.lang.String remoteBroker)
Creates a queue browser on the forwarding queue of the specified remote broker.
|
BrokerLockedClientQueueBrowser |
createLockedClientQueueBrowser(java.lang.String client_id)
Creates a locked queue browser on the specified client.
|
BrokerLockedQueueBrowser |
createLockedForwardQueueBrowser(java.lang.String remoteBroker)
Creates a locked queue browser on the forwarding queue of the specified remote broker.
|
void |
createTerritory(java.lang.String territory_name)
Create a new territory with this broker as the first member.
|
void |
createTerritoryGateway(java.lang.String territory_name,
java.lang.String broker_host,
java.lang.String broker_name)
Create a gateway to the specified territory by having the current broker communicate with the broker specified by broker_host and broker_name.
|
int |
deleteLogEvents(int from_index,
int num_events)
Deletes one or more events from the broker's log.
|
void |
destroyBroker()
Destroy this Broker.
|
void |
destroyClientById(java.lang.String client_id)
Destroy the specified client.
|
void |
destroyClientGroup(java.lang.String client_group_name,
boolean force_destroy)
Destroy the named client group.
|
void |
destroyClientSubscriptionById(java.lang.String client_id,
BrokerSubscription sub)
Cancel a subscription for a client with matching event type and filter.
|
void |
destroyClientSubscriptionsById(java.lang.String client_id,
BrokerSubscription[] subs)
Cancel multiple subscriptions for a client with matching event types and filters.
|
void |
destroyClusterGateway(java.lang.String cluster_name,
java.lang.String broker_name)
Destroy a gateway to the specified cluster.
|
void |
destroyEventType(java.lang.String event_type_name,
boolean force_destroy)
Destroy the named event type.
|
void |
destroyEventTypeInfoset(java.lang.String event_type_name,
java.lang.String infoset_name)
Destroy the specified infoset for the specified event type.
|
void |
destroyEventTypeInfosets(java.lang.String event_type_name,
java.lang.String[] infoset_names)
Destroy the specified infosets for the specified event type.
|
void |
destroyEventTypes(java.lang.String[] event_type_names,
boolean force_destroy)
Destroy the named event types.
|
void |
destroyTerritoryGateway(java.lang.String territory_name)
Destroy a gateway to the specified territory.
|
void |
disconnectClientById(java.lang.String client_id)
Disconnect all sessions for the specified client.
|
void |
disconnectClientSessionById(java.lang.String client_id,
int session_id)
Disconnect the specified session for the specified client.
|
boolean |
doesClientSubscriptionExistById(java.lang.String client_id,
java.lang.String event_type_name,
java.lang.String filter)
Test if a subscription exists on the client with the given event type name and filter.
|
void |
forgetForced()
Forcibly purge all heuristic transactions.
|
void |
forgetForced(long tx_id)
Forcibly purge a heuristic transaction.
|
void |
forgetForced(long[] tx_ids)
Forcibly purge a list of heuristic transactions.
|
BrokerTraceEvent[] |
getActivityTraces(int seqn,
int msecs)
Get an array of broker activity traces.
|
BrokerClusterGatewayInfo[] |
getAllClusterGateways()
Get the list of clusters accessible from this broker either through local gateways or gateways from other brokers.
|
BrokerAllQueueStat[] |
getAllQueueStats()
Deprecated.
Deprecated in webMethods Broker 10.5, instead use
getClientStatsById(java.lang.String) , getClientStatsByIds(java.lang.String[])
Get All client's statistics. The statistics are set into a BrokerEvent as fields. The available values are:
|
BrokerTerritoryGatewayInfo[] |
getAllTerritoryGateways()
Get the list of territories accessible from this broker either through local gateways or gateways from other brokers.
|
java.lang.String |
getBrokerDescription()
Get the broker description
|
BrokerInfo[] |
getBrokersInCluster()
Get the list of brokers in the cluster, including this broker.
|
BrokerInfo[] |
getBrokersInTerritory()
Get the list of brokers in the territory, including this broker.
|
BrokerEvent |
getBrokerStats()
Get the Broker statistics.
|
BrokerAccessControlList |
getClientGroupACL(java.lang.String client_group_name)
Get the specified client group's access control list (ACL).
|
java.lang.String[] |
getClientGroupCanPublishList(java.lang.String client_group_name)
Get the list of event types the client group can publish or deliver.
|
java.lang.String[] |
getClientGroupCanSubscribeList(java.lang.String client_group_name)
Get the list of event types the client group can subscribe to or have delivered to it.
|
BrokerClientGroupInfo |
getClientGroupInfo(java.lang.String client_group_name)
Get the specified client group's information.
|
BrokerClientGroupInfo[] |
getClientGroupInfos(java.lang.String[] client_group_names)
Get the client group information for the requested client groups.
|
java.lang.String[] |
getClientGroupLogAcknowledgeList(java.lang.String client_group_name)
Get the list of event types that are logged when they are acknowledged by a client in the the specified client group.
|
java.lang.String[] |
getClientGroupLogPublishList(java.lang.String client_group_name)
Get the list of event types that are logged when published or delivered by a client in the the specified client group.
|
java.lang.String[] |
getClientGroupNames()
Get the list of client group names from the broker.
|
BrokerEvent |
getClientGroupStats(java.lang.String client_group_name)
Get the specified client group's statistics.
|
java.lang.String[] |
getClientGroupsWhichCanLogAcknowledge(java.lang.String event_type_name)
Get the list of client groups which can log acknowledgement of the specified event type.
|
java.lang.String[] |
getClientGroupsWhichCanLogPublish(java.lang.String event_type_name)
Get the list of client groups which can log publish of the specified event type.
|
java.lang.String[] |
getClientGroupsWhichCanPublish(java.lang.String event_type_name)
Get the list of client groups which can publish the specified event type.
|
java.lang.String[] |
getClientGroupsWhichCanSubscribe(java.lang.String event_type_name)
Get the list of client groups which can subscribe the specified event type.
|
java.lang.String[] |
getClientIds()
Get the IDs of all the clients in the Broker.
|
java.lang.String[] |
getClientIdsByClientGroup(java.lang.String client_group_name)
Get the IDs of all the clients in the Broker which are members of the specified client group.
|
java.lang.String[] |
getClientIdsWhichAreSubscribed(java.lang.String event_type_name)
Get the IDs of all the clients in the Broker which are subscribed to the specified event type.
|
BrokerClientInfo |
getClientInfoById(java.lang.String client_id)
Get the specified client's information.
|
BrokerClientInfo[] |
getClientInfosById(java.lang.String[] client_ids)
Get the client information for the requested clients.
|
BrokerEvent |
getClientInfosetById(java.lang.String client_id)
Get the infoset for this client.
|
BrokerClientQueueBrowserInfo[] |
getClientQueueBrowsers(java.lang.String client_id)
Gets the list of QueueBrowsers opened by the specified client.
|
BrokerEvent |
getClientStatsById(java.lang.String client_id)
Get a client's statistics.
|
BrokerEvent[] |
getClientStatsByIds(java.lang.String[] client_ids)
Get statistics for the list of client IDs.
|
BrokerSubscription[] |
getClientSubscriptionsById(java.lang.String client_id)
Get the list of open subscriptions for a client.
|
BrokerAccessControlList |
getClusterACL()
Get the access control list (ACL) which brokers in the cluster are using to accept connections from other brokers in their cluster.
|
BrokerAccessControlList |
getClusterGatewayACL(java.lang.String cluster_name)
Get the access control list (ACL) which this broker is using to accept connections from the other broker across the gateway.
|
int |
getClusterGatewayKeepAlive(java.lang.String cluster_name)
Returns KeepAlive interval on the gateway.
|
boolean |
getClusterGatewayRefuseAllUpdates(java.lang.String cluster_name)
Returns whether a cluster gateway refuses all updates.
|
BrokerSharedEventTypeInfo[] |
getClusterGatewaySharedEventTypes(java.lang.String cluster_name,
java.lang.String broker_name)
Get the information on event types shared across a cluster gateway.
|
BrokerEvent |
getClusterGatewayStats(java.lang.String cluster_name,
java.lang.String broker_name)
Get the cluster gateway statistics.
|
BrokerClusterInfo |
getClusterInfo()
Get the cluster's settings.
|
boolean |
getClusterStaticGatewayForwarding(java.lang.String cluster_name)
Get current static gateway forwarding status.
|
BrokerEvent |
getClusterStats()
Get the cluster statistics.
|
BrokerAdminTypeDef |
getEventAdminTypeDef(java.lang.String event_type_name)
Get the specified event type's definition.
|
BrokerAdminTypeDef[] |
getEventAdminTypeDefs(java.lang.String[] event_type_names)
Get the definitions for the requested event types.
|
BrokerAdminTypeDef[] |
getEventAdminTypeDefsByScope(java.lang.String scope_name)
Get the definitions for the event types within the named scope.
|
boolean |
getEventLogging() |
BrokerEvent |
getEventTypeStats(java.lang.String event_type_name)
Get statistics for an event type.
|
BrokerEvent |
getHeuristicTransactions()
Get the list of heuristic transactions in the Broker transaction manager.
|
BrokerClusterGatewayInfo[] |
getLocalClusterGateways()
Get the list of clusters this broker is a gateway for.
|
BrokerTerritoryGatewayInfo[] |
getLocalTerritoryGateways()
Get the list of territories this broker is a gateway for.
|
BrokerEvent[] |
getLogEvents(int from_index,
int max_events,
int msecs)
Gets one or more events from the brokers event log at the given zero-based index.
|
int |
getLogLength()
Returns the number of events in the broker's log.
|
int |
getPostPrepareTimeout()
Get the default post-prepare timeout.
|
int |
getPostPrepareTimeoutAction()
Get the post-prepare timeout action.
|
int |
getPrePrepareTimeout()
Get the default pre-prepare timeout.
|
int |
getRecoverMode()
Gets the global recover mode.
|
int |
getRemoteBrokerKeepAlive(java.lang.String broker_name)
Returns KeepAlive interval for a remote broker.
|
boolean |
getStaticGatewayForwarding(java.lang.String territory_name)
Get current static gateway forwarding status.
|
BrokerAccessControlList |
getTerritoryACL()
Get the access control list (ACL) which brokers in the territory are using to accept connections from other brokers in their territory.
|
BrokerAccessControlList |
getTerritoryGatewayACL(java.lang.String territory_name)
Get the access control list (ACL) which this broker is using to accept connections from the other broker across the gateway.
|
int |
getTerritoryGatewayKeepAlive(java.lang.String territory_name)
Returns KeepAlive interval on the gateway.
|
boolean |
getTerritoryGatewayRefuseAllUpdates(java.lang.String territory_name)
Returns whether a territory gateway refuses all updates.
|
BrokerSharedEventTypeRefuseUpdateInfo[] |
getTerritoryGatewayRefuseEventTypeUpdates(java.lang.String territory_name)
Returns which event types a territory gateway refuses updates for.
|
BrokerSharedEventTypeInfo[] |
getTerritoryGatewaySharedEventTypes(java.lang.String territory_name)
Get the information on event types shared across a territory gateway.
|
BrokerEvent |
getTerritoryGatewayStats(java.lang.String territory_name)
Get the territory gateway statistics.
|
BrokerTerritoryInfo |
getTerritoryInfo()
Get the territory's settings.
|
BrokerEvent |
getTerritoryStats()
Get the territory statistics.
|
BrokerEvent |
getTransactions()
Get the list of current transactions in the Broker transaction manager.
|
BrokerEvent |
getTransactionsByClient(java.lang.String client_id)
Get the list of a client's transactions in the Broker transaction manager.
|
BrokerJoinFailureInfo |
joinTerritory(java.lang.String broker_host,
java.lang.String broker_name)
Have this broker join the territory of the specified other broker.
|
void |
leaveCluster(int msecs,
boolean forced)
Make this broker leave its current cluster.
|
void |
leaveTerritory(int msecs,
boolean forced)
Make this broker leave its current territory.
|
static BrokerAdminClient |
newOrReconnectAdmin(java.lang.String broker_host,
java.lang.String broker_name,
java.lang.String client_id,
java.lang.String client_group,
java.lang.String app_name,
BrokerConnectionDescriptor desc)
Attempts to create the administrative client.
|
static BrokerAdminClient |
reconnectAdmin(java.lang.String broker_host,
java.lang.String broker_name,
java.lang.String client_id,
BrokerConnectionDescriptor desc)
Reconnects an administrative client.
|
void |
releaseChangeLock()
Release the per-Broker change lock.
|
void |
removeBrokerFromCluster(java.lang.String broker_host,
java.lang.String broker_name)
Force the removal of a given broker from the cluster.
|
void |
removeBrokerFromTerritory(java.lang.String broker_host,
java.lang.String broker_name)
Force the removal of a given broker from the territory.
|
void |
setBrokerDescription(java.lang.String description)
Set the broker description
|
void |
setClientGroupAccessLabelRequired(java.lang.String client_group_name,
boolean required)
Set whether or not an access label is required for connecting to a client group.
|
void |
setClientGroupACL(java.lang.String client_group_name,
BrokerAccessControlList acl)
Set the specified client group's access control list (ACL).
|
void |
setClientGroupCanPublishList(java.lang.String client_group_name,
java.lang.String[] event_type_names)
Set the list of event types the client group can publish to deliver.
|
void |
setClientGroupCanSubscribeList(java.lang.String client_group_name,
java.lang.String[] event_type_names)
Set the list of event types the client group can subscribe to or have delivered to it.
|
void |
setClientGroupDescription(java.lang.String client_group_name,
java.lang.String description)
Set the description string for a client group.
|
void |
setClientGroupLogAcknowledgeList(java.lang.String client_group_name,
java.lang.String[] event_type_names)
Set the list of event types that are logged when acknowledged by a client in the the specified client group.
|
void |
setClientGroupLogPublishList(java.lang.String client_group_name,
java.lang.String[] event_type_names)
Set the list of event types that are logged when published or delivered by a client in the the specified client group.
|
void |
setClientGroupRequiredEncryption(java.lang.String client_group_name,
int level)
Set the required encryption for a client group.
|
void |
setClientInfosetById(java.lang.String client_id,
BrokerEvent infoset)
Set the infoset for a client.
|
void |
setClientLastPublishSequenceNumberById(java.lang.String client_id,
long seqn)
Set a client's high publisher sequence number.
|
void |
setClientStateShareLimitById(java.lang.String client_id,
int limit)
Set a client's state share limit.
|
void |
setClusterACL(BrokerAccessControlList acl)
Set the access control list (ACL) which brokers in this cluster will use to accept connections from other brokers in the cluster.
|
void |
setClusterGatewayACL(java.lang.String cluster_name,
java.lang.String broker_name,
BrokerAccessControlList acl)
Set the access control list (ACL) which this broker will use to accept connections from the other broker across the gateway.
|
void |
setClusterGatewayKeepAlive(java.lang.String cluster_name,
java.lang.String broker_name,
int KeepAlive)
Sets or disables KeepAlive interval on the gateway.
|
void |
setClusterGatewayPause(java.lang.String cluster_name,
java.lang.String broker_name,
boolean pause)
Pauses or resumes a cluster gateway
|
void |
setClusterGatewayRefuseAllUpdates(java.lang.String cluster_name,
java.lang.String broker_name,
boolean refuse_updates)
Sets whether a cluster gateway refuses all updates.
|
void |
setClusterGatewaySecurity(java.lang.String cluster_name,
java.lang.String broker_name,
int auth_type,
int encrypt_level)
Set the type of security used for the Cluster gateway.
|
void |
setClusterGatewaySharedEventTypes(java.lang.String cluster_name,
java.lang.String broker_name,
BrokerSharedEventTypeInfo[] infos)
Set the complete list of shared event types on a cluster gateway.
|
void |
setClusterPrimaryGateway(java.lang.String cluster_name,
java.lang.String broker_name)
Set the gateway connection to the input cluster and broker as the Primary Cluster gateway from this Broker to the remote cluster.
|
void |
setClusterSecurity(int auth_type,
int encrypt_level)
Set the type of security used in the cluster.
|
void |
setClusterStaticGatewayForwarding(java.lang.String cluster_name,
java.lang.String broker_name,
boolean enable)
Enable or disable static gateway forwarding,
|
void |
setEventAdminTypeDef(BrokerAdminTypeDef type_def)
Set the specified event type's definition.
|
void |
setEventAdminTypeDefs(BrokerAdminTypeDef[] type_defs)
Set the specified event type definitions.
|
void |
setEventLogging(boolean enabled) |
void |
setEventTypeInfoset(java.lang.String event_type_name,
java.lang.String infoset_name,
BrokerEvent infoset)
Set the specified infoset for an event type.
|
void |
setEventTypeInfosets(java.lang.String event_type_name,
BrokerEvent[] infosets)
Set the specified infosets for the specified event type.
|
BrokerSetFailureInfo |
setEventTypesAndClientGroups(java.lang.String[] event_type_names_to_destroy,
java.lang.String[] client_group_names_to_destroy,
BrokerCompleteEventType[] event_types,
BrokerCompleteClientGroup[] client_groups,
boolean forced)
Creates, modifies, and destroys event types and client groups as an atomic operation.
|
protected void |
setLogFilter(java.lang.String event_name,
java.lang.String filter_expr)
Allows filtering of log content.
|
protected void |
setLogFilters(BrokerFilter[] filters)
Allows filtering of log content.
|
void |
setPostPrepareTimeout(int timeout_secs)
Set the default post-prepare timeout.
|
void |
setPostPrepareTimeoutAction(int action)
Set the post-prepare timeout action.
|
void |
setPrePrepareTimeout(int timeout_secs)
Set the default pre-prepare timeout.
|
void |
setRecoverMode(int mode)
Sets the global recover mode to either restricted (the default) or global.
|
void |
setRemoteBrokerKeepAlive(java.lang.String broker_name,
int KeepAlive)
Sets or disables KeepAlive interval for the remote broker.
|
void |
setStaticGatewayForwarding(java.lang.String territory_name,
boolean enable)
Enable or disable static gateway forwarding,
|
void |
setTerritoryACL(BrokerAccessControlList acl)
Set the access control list (ACL) which brokers in this territory will use to accept connections from other brokers in the territory.
|
void |
setTerritoryGatewayACL(java.lang.String territory_name,
BrokerAccessControlList acl)
Set the access control list (ACL) which this broker will use to accept connections from the other broker across the gateway.
|
void |
setTerritoryGatewayKeepAlive(java.lang.String territory_name,
int KeepAlive)
Sets or disables KeepAlive interval on the gateway.
|
void |
setTerritoryGatewayPause(java.lang.String territory_name,
boolean pause)
Pauses or resumes gateway
|
void |
setTerritoryGatewayRefuseAllUpdates(java.lang.String territory_name,
boolean refuse_updates)
Sets whether a territory gateway refuses all updates.
|
void |
setTerritoryGatewayRefuseEventTypeUpdates(java.lang.String territory_name,
BrokerSharedEventTypeRefuseUpdateInfo[] infos)
Sets which event types a territory gateway refuses updates for.
|
void |
setTerritoryGatewaySecurity(java.lang.String territory_name,
int auth_type,
int encrypt_level)
Set the type of security used for the territory gateway.
|
void |
setTerritoryGatewaySharedEventTypes(java.lang.String territory_name,
BrokerSharedEventTypeInfo[] infos)
Set the complete list of shared event types on a territory gateway.
|
void |
setTerritorySecurity(int auth_type,
int encrypt_level)
Set the type of security used in the territory.
|
static java.lang.String |
transactionStateToString(int state)
Returns a String object representing the specified Broker Transaction Manager's transaction state.
|
acknowledge, acknowledge, acknowledge, acknowledge, acknowledgeThrough, acknowledgeThrough, beginAdapterTransaction, browseEvents, cancelCallbackForSubId, cancelCallbackForTag, cancelCallbacks, cancelCheckForEvents, cancelGetEvents, cancelSubscription, cancelSubscription, cancelSubscriptions, canPublish, canSubscribe, checkForEvents, clearQueue, createClientQueueBrowser, deliver, deliver, deliver, deliver, deliverAckReplyEvent, deliverAckReplyEvent, deliverErrorReplyEvent, deliverErrorReplyEvent, deliverNullReplyEvent, deliverNullReplyEvent, deliverPartialReplyEvents, deliverPartialReplyEvents, deliverReplyEvent, deliverReplyEvent, deliverReplyEvents, deliverReplyEvents, deliverRequestAndWait, deliverWithAck, deliverWithAck, destroy, disconnect, dispatch, doesSubscriptionExist, endAdapterTransaction, endExt, endTr, endTx, finalize, forgetExt, forgetTx, getAccessLabel, getApiVersionNumber, getApplicationName, getAsyncExceptionListener, getBrokerHost, getBrokerName, getBrokerPort, getBrokerSSLCertificate, getBrokerVersionNumber, getBrokerVersionString, getCanPublishNames, getCanPublishTypeDefs, getCanSubscribeNames, getCanSubscribeTypeDefs, getClientGroup, getClientId, getClientInfo, getClientInfoset, getClientSSLEncryptionLevel, getConnectionDescriptor, getDefaultBrokerPort, getDefaultTimeout, getEvent, getEvent, getEvents, getEvents, getEvents, getEvents, getEventTypeDef, getEventTypeDefs, getEventTypeInfoset, getEventTypeInfosetNames, getEventTypeInfosets, getEventTypeNames, getEventTypeNames, getJMSClientInfoset, getJMSEvents, getJMSEvents, getLastPublishSequenceNumber, getLogAcknowledgeNames, getLogPublishNames, getPlatformInfo, getPlatformInfoKeys, getQueueLength, getScopeNames, getServerFilterCollationLocale, getSess, getSessionFilters, getStateShareLimit, getSubscriptions, getTerritoryName, getTxTimeout, incrementRedeliveryCount, interruptCheckForEvents, interruptDispatch, interruptGetEvents, isClientPending, isConnected, isPending, jmsClientPublish, jmsClientPublish, mainLoop, makeSubId, makeTag, makeTransactionId, makeUniqueSubId, negativeAcknowledge, negativeAcknowledge, negativeAcknowledgeInternal, newOrReconnect, newSubscription, newSubscription, newSubscription, newSubscriptions, newTx, ping, ping, poll, prepareExt, prepareTx, prime, prime, prime, primeAllClients, primeAllClients, primeWithAck, primeWithAck, publish, publish, publish, publish, publishRequestAndWait, publishWithAck, publishWithAck, reconnect, recoverTx, registerCallback, registerCallbackForSubId, registerCallbackForTag, registerConnectionCallback, resendUnacknowledgedEvents, resetSessionFilters, setAsyncExceptionListener, setAutomaticControlLabel, setClientInfoset, setDefaultClientTimeout, setPlatformInfo, setSessionFilter, setSessionFilters, setStateShareLimit, setTxId, setTxTimeout, stopMainLoop, threadedCallbacks, toString
public static final int LIFECYCLE_DESTROY_ON_DISCONNECT
public static final int LIFECYCLE_EXPLICIT_DESTROY
public static final int AUTH_TYPE_NONE
public static final int AUTH_TYPE_SSL
public static final int TRANSACTION_OPEN
public static final int TRANSACTION_COMMIT
public static final int TRANSACTION_ROLLBACK
public static final int TRANSACTION_END_SUCCESS
public static final int TRANSACTION_ROLLBACK_ONLY
public static final int TRANSACTION_PREPARED
public static final int TRANSACTION_HEURISTIC_COMMIT
public static final int TRANSACTION_HEURISTIC_ROLLBACK
public static final int TRANSACTION_FAILING
public static final int TRANSACTION_PREPARING
public static final int TRANSACTION_FINISHING
public static final int TRANSACTION_UNKNOWN
public static final int DEFAULT_STAT_PACKET_LENGTH
public static final int RECOVER_RESTRICTED
public static final int RECOVER_GLOBAL
public BrokerAdminClient(java.lang.String broker_host, java.lang.String broker_name, java.lang.String client_id, java.lang.String client_group, java.lang.String app_name, BrokerConnectionDescriptor desc) throws BrokerException
BrokerClientExistsException
- If a client using the specified client ID already exists.BrokerCommFailureException
- If problems occur establishing the connection.BrokerHostNotFoundException
- If the specified host does not exist.BrokerInvalidClientIdException
- If the ID contains illegal characters.BrokerNoPermissionException
- If permission to join the specified client group is denied.BrokerNotRunningException
- If the host exists but no broker is running on that host.BrokerNullParameterException
- If broker_host, client_group, or app_name are null.BrokerSecurityException
- If a secure connection is attempted but is rejected by the broker.BrokerUnknownBrokerNameException
- If the specified broker does not exist. If broker_name is null, this indicates that there is no default broker.BrokerUnknownClientGroupException
- If the specified client group does not exist on the broker.BrokerException
protected BrokerAdminClient(java.lang.String broker_host, java.lang.String broker_name, java.lang.String client_id, BrokerConnectionDescriptor desc) throws BrokerException
BrokerException
public static BrokerAdminClient reconnectAdmin(java.lang.String broker_host, java.lang.String broker_name, java.lang.String client_id, BrokerConnectionDescriptor desc) throws BrokerException
BrokerClientContentionException
- If the client ID is already in use by another client. For shared state clients, this means the maximum number of reconnects has been
exceeded.BrokerCommFailureException
- If problems occur establishing the connection.BrokerHostNotFoundException
- If the specified host does not exist.BrokerInvalidClientIdException
- If the ID contains illegal characters.BrokerNoPermissionException
- If permission to join the specified client group is denied.BrokerNotRunningException
- If the host exists but no broker is running on that host.BrokerNullParameterException
- If broker_host or client_id are null.BrokerSecurityException
- If a secure connection is attempted but is rejected by the broker.BrokerUnknownBrokerNameException
- If the specified broker does not exist. If broker_name is null, this indicates that there is no default broker.BrokerUnknownClientIdException
- If the specified client ID does not exist on the broker.BrokerException
public static BrokerAdminClient newOrReconnectAdmin(java.lang.String broker_host, java.lang.String broker_name, java.lang.String client_id, java.lang.String client_group, java.lang.String app_name, BrokerConnectionDescriptor desc) throws BrokerException
BrokerClientContentionException
- If the client ID is already in use by another client. For shared state clients, this means the maximum number of reconnects has been
exceeded.BrokerCommFailureException
- If problems occur establishing the connection.BrokerHostNotFoundException
- If the specified host does not exist.BrokerInvalidClientIdException
- If the ID contains illegal characters.BrokerNoPermissionException
- If permission to join the specified client group is denied.BrokerNotRunningException
- If the host exists but no broker is running on that host.BrokerNullParameterException
- If broker_host, client_id, client_group, or app_name are null.BrokerSecurityException
- If a secure connection is attempted but is rejected by the broker.BrokerUnknownBrokerNameException
- If the specified broker does not exist. If broker_name is null, this indicates that there is no default broker.BrokerUnknownClientGroupException
- If the specified client group does not exist on the broker.BrokerUnknownClientIdException
- If the specified client ID does not exist on the broker.BrokerException
public void createClientGroup(java.lang.String client_group_name, int life_cycle, int storage_type) throws BrokerException
BrokerClientGroupExistsException
- If a client group with the specified name already exists.BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerInvalidClientGroupNameException
- If the client group name is not valid.BrokerNoPermissionException
- If the client does not have permission create a client group. This requires client group modify permissionBrokerNullParameterException
- If client_group_name is null.BrokerOutOfRangeException
- If the life cycle or storage type are not a valid values.BrokerException
public void destroyClientGroup(java.lang.String client_group_name, boolean force_destroy) throws BrokerException
BrokerDependencyException
- If force_destroy is false and there are clients which are members of the client group.BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the client group.BrokerNullParameterException
- If client_group_name is null.BrokerUnknownClientGroupException
- If the client group does not exist on the broker.BrokerException
public java.lang.String[] getClientGroupNames() throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerException
public java.lang.String[] getClientGroupsWhichCanPublish(java.lang.String event_type_name) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNullParameterException
- If event_type_name is null.BrokerUnknownEventTypeException
- If the event type does not exist on the broker.BrokerException
public java.lang.String[] getClientGroupsWhichCanSubscribe(java.lang.String event_type_name) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNullParameterException
- If event_type_name is null.BrokerUnknownEventTypeException
- If the event type does not exist on the broker.BrokerException
public java.lang.String[] getClientGroupsWhichCanLogPublish(java.lang.String event_type_name) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNullParameterException
- If event_type_name is null.BrokerUnknownEventTypeException
- If the event type does not exist on the broker.BrokerException
public java.lang.String[] getClientGroupsWhichCanLogAcknowledge(java.lang.String event_type_name) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNullParameterException
- If event_type_name is null.BrokerUnknownEventTypeException
- If the event type does not exist on the broker.BrokerException
public BrokerClientGroupInfo getClientGroupInfo(java.lang.String client_group_name) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to browse the specified client group.BrokerNullParameterException
- If client_group_name is null.BrokerUnknownClientGroupException
- If the client group does not exist on the broker.BrokerException
public BrokerClientGroupInfo[] getClientGroupInfos(java.lang.String[] client_group_names) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNullParameterException
- If an entry in client_group_names is null.BrokerException
public void setClientGroupRequiredEncryption(java.lang.String client_group_name, int level) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the client group.BrokerNullParameterException
- If client_group_name is null.BrokerOutOfRangeException
- If level is not a valid value.BrokerUnknownClientGroupException
- If the client group does not exist on the broker.BrokerException
public void setClientGroupAccessLabelRequired(java.lang.String client_group_name, boolean required) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the client group.BrokerNullParameterException
- If client_group_name is null.BrokerUnknownClientGroupException
- If the client group does not exist on the broker.BrokerException
public void setClientGroupDescription(java.lang.String client_group_name, java.lang.String description) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the client group.BrokerNullParameterException
- If client_group_name or description are null.BrokerUnknownClientGroupException
- If the client group does not exist on the broker.BrokerException
public java.lang.String[] getClientGroupCanPublishList(java.lang.String client_group_name) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to browse the client group.BrokerNullParameterException
- If client_group_name is null.BrokerUnknownClientGroupException
- If the client group does not exist on the broker.BrokerException
public void setClientGroupCanPublishList(java.lang.String client_group_name, java.lang.String[] event_type_names) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the client group.BrokerNullParameterException
- If client_group_name or event_type_names is null, or if any entry in the array is null.BrokerUnknownClientGroupException
- If the client group does not exist on the broker.BrokerUnknownEventTypeException
- If an event type is listed that does not exist in the broker. In this case, the can publish list is not altered.BrokerException
public java.lang.String[] getClientGroupCanSubscribeList(java.lang.String client_group_name) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to browse the client group.BrokerNullParameterException
- If client_group_name is null.BrokerUnknownClientGroupException
- If the client group does not exist on the broker.BrokerException
public void setClientGroupCanSubscribeList(java.lang.String client_group_name, java.lang.String[] event_type_names) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the client group.BrokerNullParameterException
- If client_group_name or event_type_names is null, or if any entry in the array is null.BrokerUnknownClientGroupException
- If the client group does not exist on the broker.BrokerUnknownEventTypeException
- If an event type is listed that does not exist in the broker. In this case, the can subscribe list is not altered.BrokerException
public BrokerEvent getClientGroupStats(java.lang.String client_group_name) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to browse the client group.BrokerNullParameterException
- If client_group_name is null.BrokerUnknownClientGroupException
- If the client group does not exist on the broker.BrokerException
public BrokerAccessControlList getClientGroupACL(java.lang.String client_group_name) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to access security on the client group.BrokerNullParameterException
- If client_group_name is null.BrokerUnknownClientGroupException
- If the client group does not exist on the broker.BrokerException
public void setClientGroupACL(java.lang.String client_group_name, BrokerAccessControlList acl) throws BrokerException
BrokerInvalidAccessListException
- If the access list is not valid.BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to access security on the client group.BrokerNullParameterException
- If client_group_name or acl are null.BrokerUnknownClientGroupException
- If the client group does not exist on the broker.BrokerException
public java.lang.String[] getClientIds() throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerException
public java.lang.String[] getClientIdsByClientGroup(java.lang.String client_group_name) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to browse clients in the specified client group.BrokerNullParameterException
- If client_group_name is null.BrokerUnknownClientGroupException
- If the client group does not exist on the broker.BrokerException
public java.lang.String[] getClientIdsWhichAreSubscribed(java.lang.String event_type_name) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNullParameterException
- If event_type_name is null.BrokerUnknownEventTypeException
- If the event type does not exist on the broker.BrokerException
public void createClient(java.lang.String client_id, java.lang.String client_group, java.lang.String app_name, java.lang.String user_name, java.lang.String authenticator_name, BrokerConnectionDescriptor desc) throws BrokerException
BrokerClientExistsException
- If a client using the specified client ID already exists.BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerInvalidClientIdException
- If the ID contains illegal characters.BrokerInvalidNameException
- If the app_name contains illegal characters.BrokerNoPermissionException
- If the client does not have permission to modify clients in the specified client group.BrokerNullParameterException
- If client_id, client_group or app_name are null.BrokerUnknownClientGroupException
- If the specified client group does not exist on the broker.BrokerException
public void destroyClientById(java.lang.String client_id) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the specified client.BrokerNullParameterException
- If client_id is null.BrokerUnknownClientIdException
- If the client does not exist on the broker.BrokerException
public void disconnectClientById(java.lang.String client_id) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the specified client.BrokerNullParameterException
- If client_id is null.BrokerUnknownClientIdException
- If the client does not exist on the broker.BrokerException
public void disconnectClientSessionById(java.lang.String client_id, int session_id) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the specified client.BrokerNullParameterException
- If client_id is null.BrokerUnknownClientIdException
- If the client does not exist on the broker.BrokerUnknownSessionIdException
- If the specified client session does not exist on the broker.BrokerException
public BrokerClientInfo getClientInfoById(java.lang.String client_id) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to browse the specified client.BrokerNullParameterException
- If client_id is null.BrokerUnknownClientIdException
- If the client does not exist on the broker.BrokerException
public BrokerClientInfo[] getClientInfosById(java.lang.String[] client_ids) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNullParameterException
- If an entry in client_ids is null.BrokerException
public BrokerEvent getClientInfosetById(java.lang.String client_id) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to browse the specified client.BrokerNullParameterException
- If client_id is null.BrokerUnknownClientIdException
- If the client does not exist on the broker.BrokerException
public void setClientInfosetById(java.lang.String client_id, BrokerEvent infoset) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerInvalidEventTypeNameException
- If the event type name contains colons, which makes it an invalid infoset name.BrokerNoPermissionException
- If the client does not have permission to modify the specified client.BrokerNullParameterException
- If client_id or infoset are null.BrokerUnknownClientIdException
- If the client does not exist on the broker.BrokerException
public BrokerSubscription[] getClientSubscriptionsById(java.lang.String client_id) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to browse the specified client.BrokerNullParameterException
- If client_id is null.BrokerUnknownClientIdException
- If the client does not exist on the broker.BrokerException
public boolean doesClientSubscriptionExistById(java.lang.String client_id, java.lang.String event_type_name, java.lang.String filter) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to browse the specified client.BrokerNullParameterException
- If client_id or event_type_name are null.BrokerUnknownClientIdException
- If the client does not exist on the broker.BrokerException
public void createClientSubscriptionById(java.lang.String client_id, BrokerSubscription sub) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerInvalidSubscriptionException
- If the filter string contains a parse error.BrokerNoPermissionException
- If the client does not have permission to modify the the specified client, or if the client does not have permission to subscribe to the
event type.BrokerNullParameterException
- If client_id, sub, or sub.event_type_name are null.BrokerOutOfRangeException
- If sub.sub_id is less than zero.BrokerUnknownClientIdException
- If the client does not exist on the broker.BrokerUnknownEventTypeException
- If the event type does not exist on the broker.BrokerException
public void createClientSubscriptionsById(java.lang.String client_id, BrokerSubscription[] subs) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerInvalidSubscriptionException
- If the filter string contains a parse error. All other subscriptions are created if this error occurs.BrokerNoPermissionException
- If the client does not have permission to modify the specified client , or if the client does not have permission to subscribe to all the
event types.BrokerNullParameterException
- If client_id or subs are null, or if any element in the array is null, or if any element's event_type_name is null.BrokerOutOfRangeException
- If any element's sub_id is less than zero.BrokerUnknownClientIdException
- If the client does not exist on the broker.BrokerUnknownEventTypeException
- If the event type does not exist on the broker. All other subscriptions are created if this error occurs.BrokerException
public void destroyClientSubscriptionById(java.lang.String client_id, BrokerSubscription sub) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerInvalidSubscriptionException
- If there is no existing subscription that matches.BrokerNoPermissionException
- If the client does not have permission to modify the specified client.BrokerNullParameterException
- If client_id, sub, or sub.event_type_name are null.BrokerUnknownClientIdException
- If the client does not exist on the broker.BrokerException
public void destroyClientSubscriptionsById(java.lang.String client_id, BrokerSubscription[] subs) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerInvalidSubscriptionException
- If there is no existing subscription that matches one or more of the subscriptions. If this error occurs, the other subscriptions are
still destroyed.BrokerNoPermissionException
- If the client does not have permission to modify the specified client.BrokerNullParameterException
- If client_id or subs are null, or if any element in the array is null, or if any element's event_type_name is null.BrokerUnknownClientIdException
- If the client does not exist on the broker.BrokerException
public void setClientStateShareLimitById(java.lang.String client_id, int limit) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the specified client, or if the client is not a shared state client.BrokerNullParameterException
- If client_id is null.BrokerOutOfRangeException
- If limit is zero or less than -1.BrokerUnknownClientIdException
- If the client does not exist on the broker.BrokerException
public void setClientLastPublishSequenceNumberById(java.lang.String client_id, long seqn) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the specified client, or if the client is not a shared state client.BrokerNullParameterException
- If client_id is null.BrokerOutOfRangeException
- If seqn is less than 0.BrokerUnknownClientIdException
- If the client does not exist on the broker.BrokerException
public void clearClientQueueById(java.lang.String client_id) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to access events for the specified client.BrokerNullParameterException
- If client_id is null.BrokerUnknownClientIdException
- If the client does not exist on the broker.BrokerException
public BrokerEvent getClientStatsById(java.lang.String client_id) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to browse the specified client.BrokerNullParameterException
- If client_id is null.BrokerUnknownClientIdException
- If the client does not exist on the broker.BrokerException
public BrokerEvent[] getClientStatsByIds(java.lang.String[] client_ids) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to browse the specified client.BrokerException
@Deprecated public BrokerAllQueueStat[] getAllQueueStats() throws BrokerException
getClientStatsById(java.lang.String)
, getClientStatsByIds(java.lang.String[])
Get All client's statistics. The statistics are set into a BrokerEvent as fields. The available values are:
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to browse the specified client.BrokerIncompatibleVersionException
- Broker Server does not support this operation.BrokerException
public void destroyEventType(java.lang.String event_type_name, boolean force_destroy) throws BrokerException
BrokerDependencyException
- If force_destroy is false and there are clients which have subscriptions to the event type, or client groups which have can publish or can
subscribe permission to the event type.BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the event type.BrokerNullParameterException
- If event_type_name is null.BrokerUnknownEventTypeException
- If the event type does not exist on the broker.BrokerException
public void destroyEventTypes(java.lang.String[] event_type_names, boolean force_destroy) throws BrokerException
BrokerDependencyException
- If force_destroy is false and there are clients which have subscriptions to the one or more of the event types, or client groups which
have can publish or can subscribe permission to the event type. No events will be destroyed if this occurs.BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify one or more of the event types. All the other event types are still destroyed.BrokerNullParameterException
- If event_type_names is null, or any entry in the array is null.BrokerException
public BrokerAdminTypeDef getEventAdminTypeDef(java.lang.String event_type_name) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to browse the event type. Note that all clients can browse event types which they can publish or
subscribe to.BrokerNullParameterException
- If event_type_name is null.BrokerUnknownEventTypeException
- If the event type does not exist on the broker.BrokerException
public BrokerAdminTypeDef[] getEventAdminTypeDefs(java.lang.String[] event_type_names) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNullParameterException
- If event_type_names is not null, but at least one entry in the array is null.BrokerException
public BrokerAdminTypeDef[] getEventAdminTypeDefsByScope(java.lang.String scope_name) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNullParameterException
- If scope_name is null.BrokerUnknownEventTypeException
- If no events exist in the specified scope on the broker.BrokerException
public void setEventAdminTypeDef(BrokerAdminTypeDef type_def) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the event type, or when creating an event type the permission to modify any event type.BrokerNullParameterException
- If type_def is null.BrokerException
public void setEventAdminTypeDefs(BrokerAdminTypeDef[] type_defs) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the event types, or when creating an event type the permission to modify any event type.BrokerNullParameterException
- If type_defs is null, or if any entry in the array is null.BrokerException
public BrokerEvent getEventTypeStats(java.lang.String event_type_name) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to browse the event type.BrokerNullParameterException
- If event_type_name is null.BrokerUnknownEventTypeException
- If the event type does not exist on the broker.BrokerException
public void setEventTypeInfoset(java.lang.String event_type_name, java.lang.String infoset_name, BrokerEvent infoset) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerInvalidEventTypeNameException
- If the infoset name is not valid.BrokerNoPermissionException
- If the client does not have permission to modify the event type.BrokerNullParameterException
- If event_type_name or infoset are null.BrokerUnknownEventTypeException
- If the event type does not exist on the broker.BrokerException
public void setEventTypeInfosets(java.lang.String event_type_name, BrokerEvent[] infosets) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerInvalidEventTypeNameException
- If any of the infoset names are not valid.BrokerNoPermissionException
- If the client does not have permission to modify the event type.BrokerNullParameterException
- If event_type_name or infoset are null, or if any entry in the array is null.BrokerUnknownEventTypeException
- If the event type does not exist on the broker.BrokerException
public void destroyEventTypeInfoset(java.lang.String event_type_name, java.lang.String infoset_name) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the event type.BrokerNullParameterException
- If event_type_name or infoset_name are null.BrokerUnknownEventTypeException
- If the event type does not exist on the broker.BrokerUnknownInfosetException
- If the infoset does not exist on the broker.BrokerException
public void destroyEventTypeInfosets(java.lang.String event_type_name, java.lang.String[] infoset_names) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the event type.BrokerNullParameterException
- If event_type_name is null, or if any entry in the array is null.BrokerUnknownEventTypeException
- If the event type does not exist on the broker.BrokerException
public BrokerSetFailureInfo setEventTypesAndClientGroups(java.lang.String[] event_type_names_to_destroy, java.lang.String[] client_group_names_to_destroy, BrokerCompleteEventType[] event_types, BrokerCompleteClientGroup[] client_groups, boolean forced) throws BrokerException
BrokerInvalidAccessListException
- If the access list is not valid.BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerInvalidClientGroupNameException
- If an invalid client group name is specified to be created.BrokerInvalidEventTypeNameException
- If an invalid event type name is specified to be created.BrokerNullParameterException
- If any array is non-null but one or more elements in it is null, or if any BrokerCompleteEventType's type_def field is null, or if any
BrokerCompleteClientGroup's client_group_info field is null, of if any client_group_info's name is null.BrokerOutOfRangeException
- If any BrokerCompleteClientGroup's client_group_info field has an invalid life_cycle or storage_type value.BrokerUnknownEventTypeException
- If an unknown event type is specified in a can publish or can subscribe list.BrokerException
public void destroyBroker() throws BrokerException
BrokerInTerritoryException
- If the broker is in a territory with at least one other broker. It must leave the territory before being destroyed.BrokerInvalidClientException
- If the client has been destroyed.BrokerNoPermissionException
- If the client does not have permission to destroy the broker.BrokerException
public BrokerEvent getBrokerStats() throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to browse the Broker.BrokerException
public java.lang.String getBrokerDescription() throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerException
public void setBrokerDescription(java.lang.String description) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the broker.BrokerNullParameterException
- If description is null.BrokerException
public BrokerChangeLockInfo acquireChangeLock() throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerIncompatibleVersionException
- If the broker does not support changelocks.BrokerException
public void releaseChangeLock() throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerIncompatibleVersionException
- If the broker does not support changelocks.BrokerBadStateException
- If the change lock is not currently held or held by another client.BrokerException
public BrokerInfo[] getBrokersInTerritory() throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to browse the broker.BrokerNotInTerritoryException
- If the broker is not part of a territory.BrokerException
public BrokerEvent getTerritoryStats() throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to browse the broker.BrokerNotInTerritoryException
- If the broker is not part of a territory.BrokerException
public void createTerritory(java.lang.String territory_name) throws BrokerException
BrokerInTerritoryException
- If the broker is already a member of a territory.BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerInvalidTerritoryNameException
- If the territory name is not valid.BrokerNoPermissionException
- If the client does not have permission to modify the broker, or if the broker is not licensed for broker interconnection.BrokerNullParameterException
- If territory_name is null.BrokerException
public BrokerJoinFailureInfo joinTerritory(java.lang.String broker_host, java.lang.String broker_name) throws BrokerException
BrokerHostNotFoundException
- If the specified host does not exist.BrokerInTerritoryException
- If the broker is already a member of a territory.BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the broker, or if the broker is not licensed for broker interconnection.BrokerNotInTerritoryException
- If the other broker is not a member of a territory.BrokerNullParameterException
- If broker_host or broker_name are null.BrokerOutOfRangeException
- If there is another broker in the specified territory with the same name as this broker.BrokerSecurityException
- If the territory requires SSL and the joining broker does not support SSL.BrokerUnknownBrokerNameException
- If the specified broker does not exist.BrokerSSLTerritoryException
- If an error occurs during the SSL connection between the broker servers.BrokerException
public void leaveTerritory(int msecs, boolean forced) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the broker.BrokerNotInTerritoryException
- If the broker is not a member of a territory.BrokerException
public void removeBrokerFromTerritory(java.lang.String broker_host, java.lang.String broker_name) throws BrokerException
BrokerHostNotFoundException
- If the specified host does not exist.BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the broker.BrokerNotInTerritoryException
- If the broker is not a member of a territory.BrokerNullParameterException
- If broker_host or broker_name are null.BrokerOutOfRangeException
- If attempt to remove the current broker.BrokerUnknownBrokerNameException
- If the specified broker on the specified host is not a member of the territory.BrokerException
public BrokerTerritoryInfo getTerritoryInfo() throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to browse the broker.BrokerNotInTerritoryException
- If the broker is not a member of a territory.BrokerException
public void setTerritorySecurity(int auth_type, int encrypt_level) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the broker.BrokerNotInTerritoryException
- If the broker is not a member of a territory.BrokerOutOfRangeException
- If auth_type or encrypt_level are not valid values.BrokerException
public BrokerAccessControlList getTerritoryACL() throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to browse the broker.BrokerNotInTerritoryException
- If the broker is not a member of a territory.BrokerException
public void setTerritoryACL(BrokerAccessControlList acl) throws BrokerException
BrokerInvalidAccessListException
- If the access list is not valid.BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the broker.BrokerNotInTerritoryException
- If the broker is not a member of a territory.BrokerNullParameterException
- If acl is null.BrokerException
public void createTerritoryGateway(java.lang.String territory_name, java.lang.String broker_host, java.lang.String broker_name) throws BrokerException
BrokerHostNotFoundException
- If the specified host does not exist.BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the broker.BrokerNotInTerritoryException
- If the broker is not a member of a territory.BrokerNotRunningException
- If the host is found, but no server is running on that host.BrokerNullParameterException
- If territory_name, broker_host, or broker_name are null.BrokerOutOfRangeException
- If this territory is already connected to the named territory through some other gateway.BrokerUnknownBrokerNameException
- If the specified broker does not exist.BrokerUnknownTerritoryException
- If the specified broker is not a member of the specified territory.BrokerException
public void destroyTerritoryGateway(java.lang.String territory_name) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the broker.BrokerNotInTerritoryException
- If the broker is not a member of a territory.BrokerNullParameterException
- If territory_name is null.BrokerUnknownTerritoryException
- If there is no gateway to the specified territory from this broker.BrokerException
public BrokerTerritoryGatewayInfo[] getLocalTerritoryGateways() throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to browse the broker.BrokerNotInTerritoryException
- If the broker is not a member of a territory.BrokerException
public BrokerTerritoryGatewayInfo[] getAllTerritoryGateways() throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to browse the broker.BrokerNotInTerritoryException
- If the broker is not a member of a territory.BrokerException
public void setTerritoryGatewaySecurity(java.lang.String territory_name, int auth_type, int encrypt_level) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the broker.BrokerNotInTerritoryException
- If the broker is not a member of a territory.BrokerNullParameterException
- If territory_name is null.BrokerOutOfRangeException
- If auth_type or encrypt_level are not valid values.BrokerUnknownTerritoryException
- If there is no gateway to the specified territory from this broker.BrokerException
public BrokerAccessControlList getTerritoryGatewayACL(java.lang.String territory_name) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to browse the broker.BrokerNotInTerritoryException
- If the broker is not a member of a territory.BrokerNullParameterException
- If territory_name is null.BrokerUnknownTerritoryException
- If there is no gateway to the specified territory from this broker.BrokerException
public void setTerritoryGatewayACL(java.lang.String territory_name, BrokerAccessControlList acl) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the broker.BrokerNotInTerritoryException
- If the broker is not a member of a territory.BrokerNullParameterException
- If territory_name or acl are null.BrokerOutOfRangeException
- If the acl has more than one user entry or more than one auth entry in it.BrokerUnknownTerritoryException
- If there is no gateway to the specified territory from this broker.BrokerInvalidAccessListException
- The DN access list contained invalid values.BrokerException
public boolean getTerritoryGatewayRefuseAllUpdates(java.lang.String territory_name) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the broker.BrokerNotInTerritoryException
- If the broker is not a member of a territory.BrokerNullParameterException
- If territory_name is null.BrokerUnknownTerritoryException
- If there is no gateway to the specified territory from this broker.BrokerException
public void setTerritoryGatewayRefuseAllUpdates(java.lang.String territory_name, boolean refuse_updates) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the broker.BrokerNotInTerritoryException
- If the broker is not a member of a territory.BrokerNullParameterException
- If territory_name is null.BrokerUnknownTerritoryException
- If there is no gateway to the specified territory from this broker.BrokerException
public BrokerSharedEventTypeRefuseUpdateInfo[] getTerritoryGatewayRefuseEventTypeUpdates(java.lang.String territory_name) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the broker.BrokerNotInTerritoryException
- If the broker is not a member of a territory.BrokerNullParameterException
- If territory_name is null.BrokerUnknownTerritoryException
- If there is no gateway to the specified territory from this broker.BrokerException
public void setTerritoryGatewayRefuseEventTypeUpdates(java.lang.String territory_name, BrokerSharedEventTypeRefuseUpdateInfo[] infos) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the broker.BrokerNotInTerritoryException
- If the broker is not a member of a territory.BrokerNullParameterException
- If territory_name is null.BrokerUnknownTerritoryException
- If there is no gateway to the specified territory from this broker.BrokerException
public BrokerSharedEventTypeInfo[] getTerritoryGatewaySharedEventTypes(java.lang.String territory_name) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the broker.BrokerNotInTerritoryException
- If the broker is not a member of a territory.BrokerNullParameterException
- If territory_name is null.BrokerUnknownTerritoryException
- If there is no gateway to the specified territory from this broker.BrokerException
public void setClusterGatewaySharedEventTypes(java.lang.String cluster_name, java.lang.String broker_name, BrokerSharedEventTypeInfo[] infos) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerInvalidTypeDefException
- If one or more of the event types is not compatible with the type definition on the remote broker.BrokerOutOfRangeException
- If an event type does not have accept_subscribe permission, but has a non-empty subscription_filter.BrokerNoPermissionException
- If the client does not have permission to modify the broker.BrokerInvalidSubscriptionException
- If a filter string contains a parse error.BrokerNotInClusterException
- If the broker is not a member of a cluster.BrokerNotRunningException
- If the gateway connection is not open at this time, so changes cannot be accepted.BrokerNullParameterException
- If cluster_name, broker_name or infos are null, or if any element in the infos array is null, or if any element of the infos array has an
event_type_name set to null.BrokerUnknownEventTypeException
- If one or more event types are specified that do not exist on either of the two brokers. The type must already exist on both brokers to be
shared. If this error occurs, no changes are applied.BrokerUnknownClusterException
- If there is no gateway to the specified cluster from this broker.BrokerIncompatibleVersionException
- The Broker does not support setting subscription filters for cluster gateways.BrokerException
public void setTerritoryGatewaySharedEventTypes(java.lang.String territory_name, BrokerSharedEventTypeInfo[] infos) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerInvalidTypeDefException
- If one or more of the event types is not compatible with the type definition on the remote broker.BrokerOutOfRangeException
- If an event type does not have accept_subscribe permission, but has a non-empty subscription_filter.BrokerNoPermissionException
- If the client does not have permission to modify the broker.BrokerInvalidSubscriptionException
- If a filter string contains a parse error.BrokerNotInTerritoryException
- If the broker is not a member of a territory.BrokerNotRunningException
- If the gateway connection is not open at this time, so changes cannot be accepted.BrokerNullParameterException
- If territory_name or infos are null, or if any element in the infos array is null, or if any element of the infos array has an
event_type_name set to null.BrokerUnknownEventTypeException
- If one or more event types are specified that do not exist on either of the two brokers. The type must already exist on both brokers to be
shared. If this error occurs, no changes are applied.BrokerUnknownTerritoryException
- If there is no gateway to the specified territory from this broker.BrokerException
public BrokerEvent getTerritoryGatewayStats(java.lang.String territory_name) throws BrokerException
territory_name
- The name of the remote territory that identifies the gateway to which the Broker connects to.BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to browse the broker.BrokerNotInTerritoryException
- If the broker is not a member of a territory.BrokerNullParameterException
- If territory_name is null.BrokerUnknownTerritoryException
- If there is no gateway to the specified territory from this broker.BrokerException
public BrokerTraceEvent[] getActivityTraces(int seqn, int msecs) throws BrokerException
BrokerInterruptedException
- If this operation is interrupted.BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to access diagnostics on the broker.BrokerTimeoutException
- If no traces arrive before the specified number of milliseconds pass.BrokerException
public java.lang.String[] getClientGroupLogPublishList(java.lang.String client_group_name) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to browse the client group.BrokerNullParameterException
- If client_group_name is null.BrokerUnknownClientGroupException
- If the client group does not exist on the broker.BrokerException
public void setClientGroupLogPublishList(java.lang.String client_group_name, java.lang.String[] event_type_names) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the client group.BrokerNullParameterException
- If client_group_name or event_type_names is null, or if any entry in the array is null.BrokerUnknownClientGroupException
- If the client group does not exist on the broker.BrokerUnknownEventTypeException
- If an event type is listed that does not exist in the broker. In this case, the can publish list is not altered.BrokerException
public java.lang.String[] getClientGroupLogAcknowledgeList(java.lang.String client_group_name) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to browse the client group.BrokerNullParameterException
- If client_group_name is null.BrokerUnknownClientGroupException
- If the client group does not exist on the broker.BrokerException
public void setClientGroupLogAcknowledgeList(java.lang.String client_group_name, java.lang.String[] event_type_names) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the client group.BrokerNullParameterException
- If client_group_name or event_type_names is null, or if any entry in the array is null.BrokerUnknownClientGroupException
- If the client group does not exist on the broker.BrokerUnknownEventTypeException
- If an event type is listed that does not exist in the broker. In this case, the can publish list is not altered.BrokerException
public BrokerEvent[] getLogEvents(int from_index, int max_events, int msecs) throws BrokerException
from_index
- - return events starting from this zero-based indexmax_events
- - maximum number of events from the given indexmsecs
- - maximum amount of time that the events are peeked for in the queue.BrokerInvalidClientException
- - the admin client not connectedBrokerOutOfRangeException
- - from_index < 0BrokerNullParameterException
- - max_events, msecs = 0BrokerNullParameterException
- - if there are no logged eventsBrokerTimeoutException
- - reply from Broker is nullBrokerException
public int deleteLogEvents(int from_index, int num_events) throws BrokerException
from_index
- - events to be deleted starting from this indexnum_events
- - number of events to be deletedBrokerInvalidClientException
- if the client is not valid.BrokerNullParameterException
- if num_events are NULL.BrokerOutOfRangeException
- if index is < 0 In addition, any of the communications errors can occur.BrokerException
public int getLogLength() throws BrokerException
BrokerInvalidClientException
- if the client is not valid. In addition, any of the communications errors can occur.BrokerException
protected void setLogFilter(java.lang.String event_name, java.lang.String filter_expr) throws BrokerException
event_name
- - event name on which the filter should be setfilter_expr
- - filter string to be setBrokerFailureException
BrokerInvalidEventTypeNameException
BrokerInvalidClientException
- if the client is not valid.BrokerNullParameterException
- if events are NULL.BrokerOutOfRageException
- if index or lock_id is < 0 (or) if lock is invalid (or) if lock is held by otherBrokerException
protected void setLogFilters(BrokerFilter[] filters) throws BrokerException
filters
- - array of BrokerFilters that need to be set on events in the queue that has been locked.BrokerFailureException
BrokerInvalidEventTypeNameException
BrokerInvalidClientException
- if the client is not valid.BrokerNullParameterException
- if events are NULL.BrokerOutOfRageException
- if index is < 0BrokerException
public void setEventLogging(boolean enabled) throws BrokerException
BrokerException
public boolean getEventLogging() throws BrokerException
getEventLogging
in class BrokerClient
BrokerException
public void setTerritoryGatewayKeepAlive(java.lang.String territory_name, int KeepAlive) throws BrokerException
territory_name
- - name of the territoryKeepAlive
- - interval in seconds to send keep alive messages. If zero, sending Keep Alive messages will be disabledBrokerInvalidClientException
- if the client is not valid.BrokerNullParameterException
- if territory name is nullBrokerOutOfRangeException
- if KeepALive is < 0BrokerException
public int getTerritoryGatewayKeepAlive(java.lang.String territory_name) throws BrokerException
territory_name
- - name of the territoryBrokerInvalidClientException
- if the client is not valid.BrokerNullParameterException
- if territory name is nullBrokerException
public boolean getStaticGatewayForwarding(java.lang.String territory_name) throws BrokerException
territory_name
- name of the remote territoryBrokerInvalidClientException
- If the client is not valid.BrokerNotInTerritoryException
- If the broker is not part of a territory.BrokerUnknownTerritoryException
- If there is no gateway to the specified territory.BrokerNullParameterException
- if territory name is nullBrokerException
public void setStaticGatewayForwarding(java.lang.String territory_name, boolean enable) throws BrokerException
territory_name
- - name of the remote territoryenable
- - state of the static gateway subscription to set (true - enable, false - disable)BrokerNotInTerritoryException
- If the broker is not part of a territory.BrokerUnknownTerritoryException
- If there is no gateway to the specified territory.BrokerInvalidClientException
- if the client is not valid.BrokerNullParameterException
- if territory name is nullBrokerException
public int checkAndRestartForwarding(java.lang.String remote_broker_name) throws BrokerException
remote_broker_name
- - name of the remote brokerBrokerInvalidClientException
- if the client is not valid.BrokerNullParameterException
- if remote broker name is nullBrokerException
public int checkAndRestartForwarding() throws BrokerException
BrokerInvalidClientException
- if the client is not valid.BrokerNullParameterException
- if remote broker name is nullBrokerException
public void setTerritoryGatewayPause(java.lang.String territory_name, boolean pause) throws BrokerException
territory_name
- - name of the territorypause
- - state of the gateway to set (true - paused, false - resumed)BrokerInvalidClientException
- If the client has been destroyed or disconnected..BrokerNullParameterException
- If territory_name is nullBrokerBadStateException
- If territory gateway is already paused or resumedBrokerNoPermissionException
- If the client does not have permission to modify the broker.BrokerNotInTerritoryException
- If the broker is not a member of a territory.BrokerUnknownTerritoryException
- If there is no gateway to the specified territory from this broker.BrokerIncompatibleVersionException
- If the Broker version does not support this feature.BrokerQueueBrowserException
- The gateway forwarding queue is locked by a queue browser.BrokerException
public int getPrePrepareTimeout() throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have sufficient permissions.BrokerIncompatibleVersionException
- If the broker does not support transaction administration.BrokerException
setPrePrepareTimeout(int)
public void setPrePrepareTimeout(int timeout_secs) throws BrokerException
timeout_secs
- The default pre-prepare timeout in seconds to set.BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerOutOfRangeException
- If the timeout value is invalid.BrokerNoPermissionException
- If the client does not have sufficient permissions.BrokerIncompatibleVersionException
- If the broker does not support transaction administration.BrokerException
getPrePrepareTimeout()
public int getPostPrepareTimeout() throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have sufficient permissions.BrokerIncompatibleVersionException
- If the broker does not support transaction administration.BrokerException
setPostPrepareTimeout(int)
,
getPostPrepareTimeoutAction()
public void setPostPrepareTimeout(int timeout_secs) throws BrokerException
timeout_secs
- The post-prepare timeout in seconds to set.BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerOutOfRangeException
- If the timeout value is invalid.BrokerNoPermissionException
- If the client does not have sufficient permissions.BrokerIncompatibleVersionException
- If the broker does not support transaction administration.BrokerException
getPostPrepareTimeout()
,
setPostPrepareTimeoutAction(int)
public void setPostPrepareTimeoutAction(int action) throws BrokerException
action
- Either BrokerAdminClient.TRANSACTION_ROLLBACK or BrokerAdminClient.TRANSACTION_COMMIT.BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerOutOfRangeException
- If the action is invalid.BrokerNoPermissionException
- If the client does not have sufficient permissions.BrokerIncompatibleVersionException
- If the broker does not support transaction administration.BrokerException
getPostPrepareTimeoutAction()
,
setPostPrepareTimeout(int)
public int getPostPrepareTimeoutAction() throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have sufficient permissions.BrokerIncompatibleVersionException
- If the broker does not support transaction administration.BrokerException
setPostPrepareTimeoutAction(int)
,
getPostPrepareTimeout()
public BrokerEvent getTransactions() throws BrokerException
transaction context info { date now; struct { long transactionId; UnicodeString externalId; UnicodeString clientId; int sessionId; int state; date createdTime; date endedTime; date preparedTime; date closedTime; int closedReason; date unpreparedTimeout; int preparedTimeoutInterval; date preparedTimeout; int numEventsReceived; int numEventsAcknowledged; int numEventsPublished; } transactions[]; }
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have sufficient permissions.BrokerIncompatibleVersionException
- If the broker does not support transaction administration.BrokerException
public BrokerEvent getTransactionsByClient(java.lang.String client_id) throws BrokerException
transaction context info { date now; struct { long transactionId; UnicodeString externalId; UnicodeString clientId; int sessionId; int state; date createdTime; date endedTime; date preparedTime; date closedTime; int closedReason; date unpreparedTimeout; int preparedTimeoutInterval; date preparedTimeout; int numEventsReceived; int numEventsAcknowledged; int numEventsPublished; } transactions[]; }
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerInvalidClientIdException
- If the client_id contains illegal characters.BrokerNullParameterException
- If the client_id is null.BrokerNoPermissionException
- If the client does not have sufficient permissions.BrokerIncompatibleVersionException
- If the broker does not support transaction administration.BrokerException
public BrokerEvent getHeuristicTransactions() throws BrokerException
transaction context info { date now; struct { long transactionId; UnicodeString externalId; UnicodeString clientId; int sessionId; int state; date createdTime; date endedTime; date preparedTime; date closedTime; int closedReason; date unpreparedTimeout; int preparedTimeoutInterval; date preparedTimeout; int numEventsReceived; int numEventsAcknowledged; int numEventsPublished; } transactions[]; }
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have sufficient permissions.BrokerIncompatibleVersionException
- If the broker does not support transaction administration.BrokerException
public void commitForced(long tx_id) throws BrokerException
tx_id
- The Broker transaction context to commit.BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerInvalidTxException
- If the transaction does not exist or the transaction state does not allow it to be committed.BrokerNoPermissionException
- If the client does not have sufficient permissions.BrokerIncompatibleVersionException
- If the broker does not support transaction administration.BrokerException
public void commitForced(long[] tx_ids) throws BrokerException
tx_ids
- A list of Broker transaction contexts to commit.BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerInvalidTxException
- If one or more transactions do not exist or the transaction state does not allow it to be committed.BrokerNoPermissionException
- If the client does not have sufficient permissions.BrokerIncompatibleVersionException
- If the broker does not support transaction administration.BrokerException
public void abortForced(long tx_id) throws BrokerException
tx_id
- The Broker transaction context to abort.BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerInvalidTxException
- If the transaction does not exist or the transaction state does not allow it to be aborted.BrokerNoPermissionException
- If the client does not have sufficient permissions.BrokerIncompatibleVersionException
- If the broker does not support transaction administration.BrokerException
public void abortForced(long[] tx_ids) throws BrokerException
tx_ids
- A list of Broker transaction contexts to abort.BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNullParameterException
- If tx_ids is null.BrokerInvalidTxException
- If one or more transactions do not exist or the transaction state does not allow it to be aborted.BrokerNoPermissionException
- If the client does not have sufficient permissions.BrokerIncompatibleVersionException
- If the broker does not support transaction administration.BrokerException
public void forgetForced(long tx_id) throws BrokerException
tx_id
- The Broker transaction context to purge.BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerInvalidTxException
- If the transaction does not exist.BrokerNoPermissionException
- If the client does not have sufficient permissions.BrokerIncompatibleVersionException
- If the broker does not support transaction administration.BrokerException
public void forgetForced(long[] tx_ids) throws BrokerException
tx_ids
- A list of Broker transaction contexts to purge.BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNullParameterException
- If tx_ids is null.BrokerInvalidTxException
- If one or more transactions do not exist.BrokerNoPermissionException
- If the client does not have sufficient permissions.BrokerIncompatibleVersionException
- If the broker does not support transaction administration.BrokerException
public void forgetForced() throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have sufficient permissions.BrokerIncompatibleVersionException
- If the broker does not support transaction administration.BrokerException
public void setRecoverMode(int mode) throws BrokerException
mode
- The recover mode to set, either RECOVER_GLOBAL or RECOVER_RESTRICTED.BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerOutOfRangeException
- If the recovery mode is invalid.BrokerNoPermissionException
- If the client does not have sufficient permissions.BrokerException
public int getRecoverMode() throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have sufficient permissions.BrokerException
public static java.lang.String transactionStateToString(int state)
state
- The Broker Transaction Manager's transaction state to be converted.public BrokerClientQueueBrowser createClientQueueBrowser(java.lang.String client_id) throws BrokerException
client_id
- The client on which the queue browser is requested.BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerUnknownClientIdException
- If the client id specified does not exist on the broker.BrokerException
public BrokerLockedClientQueueBrowser createLockedClientQueueBrowser(java.lang.String client_id) throws BrokerException
client_id
- The client on which the queue browser is requested.BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerUnknownClientIdException
- If the client id specified does not exist on the broker.BrokerClientQueueBrowserException
- If the specified client queue is locked by some other queue browser.BrokerException
public BrokerQueueBrowser createForwardQueueBrowser(java.lang.String remoteBroker) throws BrokerException
remoteBroker
- The name of the remote broker for which the forward queue browser is requested.BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerQueueBrowserException
- If the forward queue for the remote broker specified does not exist on the broker.BrokerIncompatibleVersionException
- If the broker does not support forwad queue browsing.BrokerException
public BrokerLockedQueueBrowser createLockedForwardQueueBrowser(java.lang.String remoteBroker) throws BrokerException
remoteBroker
- The name of the remote broker for which the forward queue browser is requested.BrokerInvalidClientException
- If the forward queue has been destroyed or disconnected.BrokerUnknownClientIdException
- If the forward queue for the remote broker specified does not exist on the broker.BrokerQueueBrowserException
- If the specified forward queue is locked by some other queue browser.BrokerException
public BrokerClientQueueBrowserInfo[] getClientQueueBrowsers(java.lang.String client_id) throws BrokerException
client_id
- The client on which the list of queue browsers is requested.BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerException
public void setRemoteBrokerKeepAlive(java.lang.String broker_name, int KeepAlive) throws BrokerException
broker_name
- - name of the brokerKeepAlive
- - interval in seconds to send keep alive messages. If zero, sending Keep Alive messages will be disabledBrokerInvalidClientException
- if the client is not valid.BrokerNullParameterException
- if broker name is nullBrokerOutOfRangeException
- if KeepALive is < 0BrokerUnknownBrokerNameException
- if the broker_name cannot be foundBrokerNoPermissionException
- if the current client do not have permissionBrokerNotInTerritoryException
- if the broker do not belong to a territoryBrokerException
public int getRemoteBrokerKeepAlive(java.lang.String broker_name) throws BrokerException
broker_name
- - name of the remote brokerBrokerInvalidClientException
- if the client is not valid.BrokerNullParameterException
- if the broker name is nullBrokerUnknownBrokerNameException
- if the broker_name cannot be foundBrokerNoPermissionException
- if the current client do not have permissionBrokerNotInTerritoryException
- if the broker do not belong to a territoryBrokerException
public void createCluster(java.lang.String clusterName) throws BrokerException
BrokerInClusterException
- If the broker is already a member of a cluster.BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerInvalidClusterNameException
- If the cluster name is not valid.BrokerNoPermissionException
- If the client does not have permission to modify the broker, or if the broker is not licensed for broker interconnection.BrokerNullParameterException
- If clusterName is null.BrokerException
public BrokerClusterInfo getClusterInfo() throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to browse the broker.BrokerNotInClusterException
- If the broker is not a member of a cluster.BrokerException
public BrokerJoinFailureInfo addBrokerToCluster(java.lang.String broker_host, java.lang.String broker_name) throws BrokerException
BrokerHostNotFoundException
- If the specified host does not exist.BrokerInClusterException
- If the broker is already a member of a cluster.BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the broker, or if the broker is not licensed for broker interconnection.BrokerNotInClusterException
- If the other broker is not a member of a cluster.BrokerNullParameterException
- If broker_host or broker_name are null.BrokerOutOfRangeException
- If there is another broker in the specified cluster with the same name as this broker.BrokerSecurityException
- If the cluster requires SSL and the joining broker does not support SSL.BrokerUnknownBrokerNameException
- If the specified broker does not exist.BrokerSSLClusterException
- If an error occurs during the SSL connection between the broker servers.BrokerException
public void removeBrokerFromCluster(java.lang.String broker_host, java.lang.String broker_name) throws BrokerException
BrokerHostNotFoundException
- If the specified host does not exist.BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the broker.BrokerNotInClusterException
- If the broker is not a member of a cluster.BrokerNullParameterException
- If broker_host or broker_name are null.BrokerOutOfRangeException
- If attempt to remove the current broker.BrokerUnknownBrokerNameException
- If the specified broker on the specified host is not a member of the cluster.BrokerException
public void leaveCluster(int msecs, boolean forced) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the broker.BrokerNotInClusterException
- If the broker is not a member of a cluster.BrokerException
public void createClusterGateway(java.lang.String cluster_name, java.lang.String broker_host, java.lang.String broker_name, boolean isPrimary) throws BrokerException
BrokerHostNotFoundException
- If the specified host does not exist.BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the broker.BrokerNotInClusterException
- If the broker is not a member of a cluster.BrokerNotRunningException
- If the host is found, but no server is running on that host.BrokerNullParameterException
- If cluster_name, broker_host, or broker_name are null.BrokerOutOfRangeException
- If this cluster is already connected to the named cluster through some other gateway, or if the primary gateway already exists to the
specified clusterBrokerUnknownBrokerNameException
- If the specified broker does not exist.BrokerUnknownClusterException
- If the specified broker is not a member of the specified cluster.BrokerException
public void destroyClusterGateway(java.lang.String cluster_name, java.lang.String broker_name) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the broker.BrokerNotInClusterException
- If the broker is not a member of a cluster.BrokerNullParameterException
- If cluster_name is null.BrokerUnknownClusterException
- If there is no gateway to the specified cluster from this broker.BrokerException
public BrokerEvent getClusterGatewayStats(java.lang.String cluster_name, java.lang.String broker_name) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to browse the broker.BrokerNotInClusterException
- If the broker is not a member of a cluster.BrokerNullParameterException
- If cluster_name or broker_name is null.BrokerUnknownClusterException
- If there is no gateway to the specified territory from this broker.BrokerException
public BrokerSharedEventTypeInfo[] getClusterGatewaySharedEventTypes(java.lang.String cluster_name, java.lang.String broker_name) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the broker.BrokerNotInClusterException
- If the broker is not a member of a cluster.BrokerNullParameterException
- If cluster_name is null.BrokerUnknownClusterException
- If there is no gateway to the specified cluster from this broker.BrokerException
public void setClusterPrimaryGateway(java.lang.String cluster_name, java.lang.String broker_name) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the broker.BrokerNotInClusterException
- If the broker is not a member of a cluster.BrokerNullParameterException
- If cluster_name or broker_name is null.BrokerUnknownClusterException
- If there is no gateway to the specified cluster from this broker.BrokerIncompatibleVersionException
- If the broker does not support Cluster Gateways. Cluster Gateways are supported only for version 8.0 and above.BrokerException
public void setClusterGatewaySecurity(java.lang.String cluster_name, java.lang.String broker_name, int auth_type, int encrypt_level) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the broker.BrokerNotInClusterException
- If the broker is not a member of a cluster.BrokerNullParameterException
- If cluster_name or broker_name is null.BrokerOutOfRangeException
- If auth_type or encrypt_level are not valid values.BrokerUnknownClusterException
- If there is no gateway to the specified cluster from this broker.BrokerException
public BrokerAccessControlList getClusterGatewayACL(java.lang.String cluster_name) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to browse the broker.BrokerNotInClusterException
- If the broker is not a member of a cluster.BrokerNullParameterException
- If cluster_name is null.BrokerUnknownClusterException
- If there is no gateway to the specified cluster from this broker.BrokerException
public void setClusterGatewayACL(java.lang.String cluster_name, java.lang.String broker_name, BrokerAccessControlList acl) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the broker.BrokerNotInClusterException
- If the broker is not a member of a cluster.BrokerNullParameterException
- If cluster_name, broker_name or acl are null.BrokerOutOfRangeException
- If the acl has more than one user entry or more than one auth entry in it.BrokerUnknownClusterException
- If there is no gateway to the specified cluster from this broker.BrokerInvalidAccessListException
- The DN access list contained invalid values.BrokerException
public boolean getClusterGatewayRefuseAllUpdates(java.lang.String cluster_name) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the broker.BrokerNotInClusterException
- If the broker is not a member of a cluster.BrokerNullParameterException
- If cluster_name is null.BrokerUnknownClusterException
- If there is no gateway to the specified cluster from this broker.BrokerException
public void setClusterGatewayRefuseAllUpdates(java.lang.String cluster_name, java.lang.String broker_name, boolean refuse_updates) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the broker.BrokerNotInClusterException
- If the broker is not a member of a cluster.BrokerNullParameterException
- If cluster_name or broker_name is null.BrokerUnknownClusterException
- If there is no gateway to the specified cluster from this broker.BrokerException
public int getClusterGatewayKeepAlive(java.lang.String cluster_name) throws BrokerException
cluster_name
- - name of the clusterBrokerNullParameterException
- if cluster name is nullBrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the broker.BrokerNotInClusterException
- If the broker is not a member of a cluster.BrokerUnknownClusterException
- If there is no gateway to the specified cluster from this broker.BrokerException
public void setClusterGatewayKeepAlive(java.lang.String cluster_name, java.lang.String broker_name, int KeepAlive) throws BrokerException
cluster_name
- - name of the clusterbroker_name
- - name of the brokerKeepAlive
- - interval in seconds to send keep alive messages. If zero, sending Keep Alive messages will be disabledBrokerInvalidClientException
- if the client is not valid.BrokerNullParameterException
- if cluster_name or broker_name is nullBrokerOutOfRangeException
- if KeepALive is < 0BrokerNoPermissionException
- If the client does not have permission to modify the broker.BrokerNotInClusterException
- If the broker is not a member of a cluster.BrokerUnknownClusterException
- If there is no gateway to the specified cluster from this broker.BrokerIncompatibleVersionException
- If the Broker version does not support this feature.BrokerException
public void setClusterGatewayPause(java.lang.String cluster_name, java.lang.String broker_name, boolean pause) throws BrokerException
cluster_name
- - name of the clusterbroker_name
- - name of the broker within this clusterpause
- - state of the gateway to set (true - paused, false - resumed)BrokerInvalidClientException
- If the client has been destroyed or disconnected..BrokerNullParameterException
- If cluster_name or broker_name is nullBrokerBadStateException
- If cluster gateway is already paused or resumedBrokerNoPermissionException
- If the client does not have permission to modify the broker.BrokerNotInClusterException
- If the broker is not a member of a cluster.BrokerUnknownClusterException
- If there is no gateway to the specified cluster from this broker.BrokerIncompatibleVersionException
- If the Broker version does not support this feature.BrokerQueueBrowserException
- The gateway forwarding queue is locked by a queue browser.BrokerException
public boolean getClusterStaticGatewayForwarding(java.lang.String cluster_name) throws BrokerException
cluster_name
- Name of the remote cluster.BrokerInvalidClientException
- If the client is not valid.BrokerNotInClusterException
- If the broker is not part of a cluster.BrokerUnknownClusterException
- If there is no gateway to the specified cluster.BrokerNullParameterException
- If cluster name is nullBrokerException
public void setClusterStaticGatewayForwarding(java.lang.String cluster_name, java.lang.String broker_name, boolean enable) throws BrokerException
cluster_name
- - name of the remote clusterbroker_name
- - name of the remote brokerenable
- - state of the static gateway subscription to set (true - enable, false - disable)BrokerNotInClusterException
- If the broker is not part of a cluster.BrokerUnknownClusterException
- If there is no gateway to the specified cluster.BrokerInvalidClientException
- if the client is not valid.BrokerNullParameterException
- if cluster_name or broker_name is nullBrokerException
public BrokerClusterGatewayInfo[] getLocalClusterGateways() throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to browse the broker.BrokerNotInClusterException
- If the broker is not a member of a cluster.BrokerException
public BrokerClusterGatewayInfo[] getAllClusterGateways() throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to browse the broker.BrokerNotInClusterException
- If the broker is not a member of a cluster.BrokerException
public BrokerInfo[] getBrokersInCluster() throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to browse the broker.BrokerNotInClusterException
- If the broker is not part of a cluster.BrokerException
public BrokerEvent getClusterStats() throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to browse the broker.BrokerNotInClusterException
- If the broker is not part of a cluster.BrokerException
public BrokerAccessControlList getClusterACL() throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to browse the broker.BrokerNotInClusterException
- If the broker is not a member of a cluster.BrokerSecurityException
- If secure sockets are not supported or are not enabled on the Broker.BrokerException
public void setClusterACL(BrokerAccessControlList acl) throws BrokerException
BrokerInvalidAccessListException
- If the access list is not valid.BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the broker.BrokerNotInClusterException
- If the broker is not a member of a cluster.BrokerNullParameterException
- If acl is null.BrokerException
public void setClusterSecurity(int auth_type, int encrypt_level) throws BrokerException
BrokerInvalidClientException
- If the client has been destroyed or disconnected.BrokerNoPermissionException
- If the client does not have permission to modify the broker.BrokerNotInClusterException
- If the broker is not a member of a cluster.BrokerOutOfRangeException
- If auth_type or encrypt_level are not valid values.BrokerException
Copyright © 2002-2006 webMethods, Inc. Copyright © 2007-2021 Software AG Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.