Package com.tibco.tibjms.admin
Class TibjmsAdmin
- java.lang.Object
- 
- com.tibco.tibjms.admin.TibjmsAdmin
 
- 
 public class TibjmsAdmin extends java.lang.ObjectThis is the main class for administering a TIBCO Enterprise Message Service server. To use this API, first create an instance of this class using one of the constructors. With that instance, one can retrieve information about the server and its components, as well as modify the server's configuration.
 All modifications to the server configuration are made through this class. For example, to change the description of a group, one would do the following:
 GroupInfo groupInfo = tibjmsAdmin.getGroup("groupName"); groupInfo.setDescription("New Description"); tibjmsAdmin.updateGroup(groupInfo);It is important to note that public constructors (such as those for TopicInfo and GroupInfo), will initialize internal variables. When updating the server be sure to populate objects entirely or retrieve them from the server first as in the example above to avoid any unintentional updates.
- 
- 
Field SummaryFields Modifier and Type Field Description static intDEST_CURSOR_FIRSTFirst cursorPosition for requested destinations.static intDEST_CURSOR_LASTLast cursorPosition for requested destinations.static intDEST_CURSOR_NEXTNext cursorPosition for requested destinations.static intGET_DETAILED_STATFlag requesting both overall and detailed statistics to be returned by methods such asgetConsumers(Long,String,DestinationInfo,boolean,int).static intGET_SELECTORFlag requesting consumer's selector to be included intoConsumerInfoobjects returned bygetConsumers()method.static intGET_STATFlag requesting overall statistics to be returned by methods such asgetConsumers(Long,String,DestinationInfo,boolean,int).static intPERMISSIONS_ALLThis is mainly used in conjunction with TibjmsAdmin#getPermissions(UserInfo, flags).static intPERMISSIONS_ALL_ADMINThis is mainly used in conjunction with TibjmsAdmin#getPermissions(UserInfo, flags).static intPERMISSIONS_ALL_DESTThis is mainly used in conjunction with TibjmsAdmin#getPermissions(UserInfo, flags).static intPERMISSIONS_DIRECTThis is mainly used in conjunction with TibjmsAdmin#getPermissions(UserInfo, flags).static intPERMISSIONS_DIRECT_ADMINThis is mainly used in conjunction with TibjmsAdmin#getPermissions(UserInfo, flags).static intPERMISSIONS_DIRECT_DESTThis is mainly used in conjunction with TibjmsAdmin#getPermissions(UserInfo, flags).static intSESSION_AUTO_ACKNOWLEDGEAUTO acknowledgement mode.static intSESSION_CLIENT_ACKNOWLEDGECLIENT acknowledgement mode.static intSESSION_DUPS_OK_ACKNOWLEDGEDUPS_OK acknowledgement mode.static intSESSION_NO_ACKNOWLEDGENo acknowledgement mode.static intSESSION_TRANSACTEDAcknowledgement mode describing transacted session.static intSESSION_UNKNOWN_ACKNOWLEDGEUnknown session acknowledge mode.static intSESSION_XAAcknowledgement mode describing XA session.static intSTORE_ASYNCThe server's default non-failsafe store.static intSTORE_COMPACT_NOLIMITUsed to run the store compact as a full re-write with no time limit.static intSTORE_SYNCThe server's default failsafe store.static intSUBSCRIPTIONS_FILTER_DURABLE_ONLYFlag requesting non durable subscriptions to be filtered out.static intSUBSCRIPTIONS_FILTER_NO_DURABLEFlag requesting durable subscriptions to be filtered out.static intSUBSCRIPTIONS_FILTER_NO_SHAREDFlag requesting shared subscriptions to be filtered out.static intSUBSCRIPTIONS_FILTER_SHARED_ONLYFlag requesting non shared subscriptions to be filtered out.
 - 
Constructor SummaryConstructors Constructor Description TibjmsAdmin(java.lang.String url, java.lang.String userName, java.lang.String password)Creates an administrative connection.TibjmsAdmin(java.lang.String url, java.lang.String userName, java.lang.String password, java.util.Map params)This constructor is used to create an administrative connection to the server.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidactivateDRSite()Inform the FTL servers at the Disaster Recovery (DR) site that their site of operations is now the new primary site.voidaddUsersToGroup(java.lang.String groupName, java.lang.String[] userNames)Add the users for the given array of userNames to the group for the given groupName.voidaddUserToGroup(java.lang.String groupName, java.lang.String userName)Add the user for the given userName to the group for the given groupName.voidbind(java.lang.String newName, java.lang.String existingName)Bind an object already bound to an existing JNDI name to a new JNDI name.voidbindQueue(java.lang.String name, java.lang.String queueName)Bind the queue for the given queue name to the given JNDI name.voidbindTopic(java.lang.String name, java.lang.String topicName)Bind the topic for the given topic name to the given JNDI name.voidclearJACICache()Clear all entries out of the JACI results cache.voidclose()Close connection to the server.voidcommitTransaction(TransactionInfo transaction)Commit the xa transaction.booleancompact(int store, long timeout)Compact one of the server's store files until either no more compaction can be done or timeout seconds have elapsed, whichever occurs first.booleancompact(java.lang.String name, long timeout)Compact one of the server's store files until either no more compaction can be done or timeout seconds have elapsed, whichever occurs first.voidcreateCMListener(CMListenerInfo cmListener)Create (pre-register) TIBCO Rendezvous certified listener.ConfigurationcreateConfiguration()Creates an empty configuration object that can be used to load configuration updates.voidcreateConnectionFactory(java.lang.String jndiName, ConnectionFactoryInfo cfi)Create a connection factory based on the given ConnectionFactoryInfo and bind it to the given name in the internal JNDI implementation.DestinationBridgeInfocreateDestinationBridge(DestinationBridgeInfo destBridge)Creates a destination bridge as specified by the DestinationBridgeInfo object.voidcreateDurable(java.lang.String topicName, java.lang.String durableName, java.lang.String clientID, java.lang.String selector, boolean nolocal, boolean route)Create the durable with given name and client ID.GroupInfocreateGroup(GroupInfo group)Create a group based on the information in the given GroupInfo.QueueInfocreateQueue(QueueInfo queue)Create a queue based on the parameters from the given QueueInfo.RouteInfocreateRoute(RouteInfo routeInfo)Create a new route.TopicInfocreateTopic(TopicInfo topic)Create a topic based on the parameters from the given TopicInfo.UserInfocreateUser(UserInfo user)Create a user based on the information in the given UserInfo.voiddeleteCMListener(CMListenerInfo cmListener)Delete TIBCO Rendezvous certified listener.voiddestroyConnection(long connectionID)Destoy the client connection for the given connectionID.voiddestroyConnectionFactory(java.lang.String jndiName)Destroy the connection factory bound to the given JNDI name.voiddestroyDestinationBridge(int sourceType, java.lang.String sourceName, int targetType, java.lang.String targetName)Destroy the destination bridge between a source and a targetvoiddestroyDurable(java.lang.String durableName, java.lang.String clientID)Destroy the durable with given name and client ID.voiddestroyGroup(java.lang.String groupName)Destroy the group for the given groupName.voiddestroyMessage(java.lang.String messageID)Destroy the message for the given message ID.voiddestroyQueue(java.lang.String queueName)Destroy the queue for the given queue name.voiddestroyQueues(java.lang.String pattern)Destroy queues matching the given pattern.voiddestroyRoute(java.lang.String name)Destroy the route with specified name.voiddestroyTopic(java.lang.String topicName)Destroy the topic for the given topic name.voiddestroyTopics(java.lang.String pattern)Destroy topics matching the given pattern.voiddestroyUser(java.lang.String userName)Destroy the user for the given userName.voidforceConfiguration(Configuration configuration)Synchronize the current server with a provided Configuration such that upon success, the server configuration will be identical to the configuration provided.ACLEntry[]getACLEntries()Get all ACL entries for destinations.BridgeInfogetBridge(int type, java.lang.String name)Get the bridge from a given destination.BridgeInfo[]getBridges()Get all the bridges known to the server.BridgeInfo[]getBridges(int type, java.lang.String pattern)Get all the bridges known to the server where the source destination is of a given type and the source destination name matches the given pattern.ChannelInfogetChannel(java.lang.String name)Deprecated.As of release 8.3ChannelInfo[]getChannels()Deprecated.As of release 8.3ChannelInfogetChannelStatistics(java.lang.String name)Deprecated.As of release 8.3CMLedgerSubjectInfo[]getCMLedger(java.lang.String pattern)Returns a summary of the contents of the ledger file of the server's default TIBCO Rendezvous certified messaging transport.CMLedgerSubjectInfo[]getCMLedger(java.lang.String transport, java.lang.String pattern)Returns a summary of the contents of the transport's ledger file.CMListenerInfo[]getCMListeners()Get the TIBCO Rendezvous certified listeners explicitly created in the server configuration.longgetCommandTimeout()Gets the command timeout in milliseconds.ConfigurationgetConfiguration()Deprecated.deprecated in EMS 8.1.0, usegetConfiguration(boolean)ConfigurationgetConfiguration(boolean reset)Returns the current server configuration in its entirety.ConnectionFactoryInfo[]getConnectionFactories()Get all connection factories in the server configuration.longgetConnectionId()Get the connection id of the TibjmsAdmin object's connection to the server.ConnectionInfo[]getConnections()Returns all connections except system connections.ConnectionInfo[]getConnections(java.lang.String username, java.lang.String hostname)Returns all client connections matching specified filters.ConsumerInfogetConsumer(long consumerID)Returns consumer with specified ID.ConsumerInfo[]getConsumers()Returns all consumers in the server.ConsumerInfo[]getConsumers(java.lang.Long connectionID, java.lang.String username, DestinationInfo destination, boolean durable, int dataFlags)Returns consumers matching specified filters.ConsumerInfo[]getConsumersStatistics()Get statistical information about all consumers.ConsumerInfo[]getConsumersStatistics(java.lang.Long connectionID, java.lang.String username, DestinationInfo destination)Get statistical information about consumers with specified parameters.DestinationBridgeInfogetDestinationBridge(int sourceType, java.lang.String sourceName, int targetType, java.lang.String targetName)Returns the destination bridge between a source and a targetDestinationBridgeInfo[]getDestinationBridges(int sourceType, java.lang.String sourcePattern)Get the destination bridges for all source destinations that match the given source type and source pattern.DurableInfogetDurable(java.lang.String durableName, java.lang.String clientID)Get the durable subscription information for the given durable name and clientID.DurableInfo[]getDurables()Get the durable subscription information for all durables known to the server.DurableInfo[]getDurables(java.lang.String topicName)Deprecated.this method remains fully functional but in EMS 4.4 the preferred way to obtain consumer information is via methodgetConsumers(Long,String,DestinationInfo,boolean,int)GroupInfogetGroup(java.lang.String groupName)Get the group for the given name.ACLEntry[]getGroupACLEntries(java.lang.String groupName)Get all permissions on destinations for specified group.GroupInfo[]getGroups()Get all the groups known to the server.ServerInfogetInfo()Get the current set of server configuration and metrics.JACIInfogetJACIInfo()Get statistics on the JACI permissions cache.MessagegetMessage(java.lang.String messageID)Get the message for the given message ID.Message[]getMessages(java.lang.String correlationID)Get the messages that have the given correlation ID.java.lang.Object[]getPermissions()Get all permission entries.java.lang.Object[]getPermissions(UserInfo target, int flags)Get user permissions based on the flags set.java.lang.Object[]getPermissions(java.lang.Object target)Get all permission entries for specified target.ProducerInfo[]getProducersStatistics()Returns statistical information about all producers.ProducerInfo[]getProducersStatistics(java.lang.Long connectionID, java.lang.String username, DestinationInfo destination)Get the statistical information about producers with specified parameters.QueueInfogetQueue(java.lang.String queueName)Get the queue for the given queue name.ACLEntry[]getQueueACLEntries(java.lang.String queueName)Get all ACL entries pertaining to the queue with the given queueName.QueueInfo[]getQueues()Get the info for all the queues that are known to the server.QueueInfo[]getQueues(java.lang.String pattern)Get the info for the queues that match the given pattern.QueueInfo[]getQueues(java.lang.String pattern, int permType)Get the info for the queues that match the given pattern and the given permanence type.QueueInfo[]getQueues(java.lang.String pattern, int permType, int cursorPosition, int cursorSize)Get the info for the queues that match the given pattern and the given permanence type.QueueInfo[]getQueuesStatistics()Get the statistical information about all queues.QueueInfo[]getQueuesStatistics(java.lang.String pattern)Get the statistical information for the queues that match the given pattern.QueueInfo[]getQueuesStatistics(java.lang.String pattern, int cursorPosition, int cursorSize)Get the statistical information for the queues that match the given pattern.RouteInfogetRoute(java.lang.String name)Returns route information or null if such route does not exist.RouteInfo[]getRoutes()Returns all routes known to the server.RouteInfogetRouteStatistics(java.lang.String name)Returns statistical information about the route with specified name.StateInfogetStateInfo()Get the current FT state of the server, along with its name, pid, version and whether or not it is running in an appliance.StoreInfogetStoreInfo(int type)Deprecated.As of EMS 6.1.0, replaced bygetStoreInfo(String)StoreInfogetStoreInfo(java.lang.String name)Get information about a store.java.lang.String[]getStores()Get a list of configured stores.SubscriptionInfo[]getSubscriptions()Returns all subscriptions in the server.SubscriptionInfo[]getSubscriptions(int filterFlags, java.lang.String name, java.lang.String topicName)Returns subscriptions matching specified filters.SubscriptionInfo[]getSubscriptions(java.lang.String name, TopicInfo topic, int filterFlags)Deprecated.UsegetSubscriptions(int, String, String)instead.ConnectionInfo[]getSystemConnections()Returns all system connections.TopicInfogetTopic(java.lang.String topicName)Get the topic for the given topic name.ACLEntry[]getTopicACLEntries(java.lang.String topicName)Get all ACL entries pertaining to the topic with the given topicName.TopicInfo[]getTopics()Get the info for all the topics that are known to the server.TopicInfo[]getTopics(java.lang.String pattern)Get the info for the topics that match the given pattern.TopicInfo[]getTopics(java.lang.String pattern, int permType)Get the info for the topics that match the given pattern and the given permanence type.TopicInfo[]getTopics(java.lang.String pattern, int permType, int cursorPosition, int cursorSize)Get the info for the topics that match the given pattern and the given permanence type.TopicInfo[]getTopicsStatistics()Get the statistical information for all topics.TopicInfo[]getTopicsStatistics(java.lang.String pattern)Get the statistical information for the topics that match the given pattern.TopicInfo[]getTopicsStatistics(java.lang.String pattern, int cursorPosition, int cursorSize)Get the statistical information for the topics that match the given pattern.java.lang.String[]getTraceBuffer(boolean clear)Reserved for internal provider use only - Do not use this method.DetailedTransactionInfogetTransaction(TransactionInfo transaction)Get a specific xa transaction.TransactionInfo[]getTransactions()Get all the xa transactions known to the server.TransportInfogetTransport(java.lang.String transportName)Get the transport with a given name.TransportInfo[]getTransports()Get all the transports known to the server.UserInfogetUser(java.lang.String userName)Get the user for the given username.ACLEntry[]getUserACLEntries(java.lang.String userName)Get all ACL entries pertaining to the user with the given userName.UserInfo[]getUsers()Get the array of all UserInfos known to the server.voidgrant(ACLEntry entry)Grant the permissions specified in the given ACLEntry.voidgrant(ACLEntry[] acls)Grant the permissions specified in the given ACLEntries.voidgrant(AdminACLEntry entry)Grant the administrative permissions.booleanisAutoSave()Returns true if server configuration is saved in the configuration files on disk after each change.booleanisRestartRequired()Query a server to determine whether a restart is required to complete state changes.voidloadLicense()Manually load configured server license.java.lang.Objectlookup(java.lang.String name)Retrieve that administrative object bound to the given JNDI name.static java.lang.StringmanglePassword(java.lang.String password)Mangles a password for use with EMS.voidpurgeDurable(java.lang.String durableName, java.lang.String clientID)Purge pending messages for the durable with given name and client ID.voidpurgeQueue(java.lang.String queueName)Purge pending messages from the queue for the given name.voidpurgeQueues(java.lang.String pattern)Purge pending messages from the queues matching the given pattern.voidpurgeTopic(java.lang.String topicName)Purge pending messages from the topic for the given name.voidpurgeTopics(java.lang.String pattern)Purge pending messages from topics matching the given pattern.voidremoveUserFromGroup(java.lang.String groupName, java.lang.String userName)Remove the user for the given userName from the group for the given groupName.voidremoveUsersFromGroup(java.lang.String groupName, java.lang.String[] userNames)Remove the users for the given array of userNames from the group for the given groupName.voidresetJACIStats()Reset all JACI statistics counters to zero.voidrestart()Deprecated.As of release 8.2.2voidrevoke(ACLEntry entry)Revoke the permissions specified in the given ACLEntry.voidrevoke(ACLEntry[] acls)Revoke the permissions specified in the given ACLEntries.voidrevoke(AdminACLEntry entry)Revoke the administrative permissions.voidrollbackTransaction(TransactionInfo transaction)Roll the xa transaction back.voidrotateLog()Rotate server's log file.voidsaveAndExit()When using in-memory replication with FTL stores, save the state of each server to disk and exit.voidsaveConfiguration()Save any configuration changes to the server's config files.voidsetAutoSave(boolean enabled)Set if configuration changes should be immediately saved by the server into the configuration files on disk.voidsetCommandTimeout(long value)Sets the command timeout.voidsetExceptionListener(ExceptionListener listener)Sets an exception listener for the connection used by the admin api to communicate with the EMS server.voidsetupDRSite(java.lang.String urlList)Establish a new Disaster Recovery (DR) site after the original DR site has become the new primary site.voidshutdown()Shutdown the server.voidsynchronizeConfiguration(Configuration configuration)Synchronize the current server with a provided Configuration such that upon success, the server configuration will be identical to the configuration provided.voidtestConfiguration(Configuration configuration)Test the current server with a provided Configuration to determine if the server will accept it.voidunbind(java.lang.String name)Remove the binding between the given JNDI name and the object bound to it.static java.lang.StringunmanglePassword(java.lang.String mangledPassword)Unmangles a password mangled by EMS.voidupdateConnectionFactory(java.lang.String jndiName, ConnectionFactoryInfo cfi)Save changes to the connection factory stored at the given JNDI name using information from the given ConnectionFactoryInfo.voidupdateCRL()Update server's CRL.voidupdateGroup(GroupInfo groupInfo)Save changes made to the given GroupInfo.voidupdateQueue(QueueInfo queue)Change the properties of the queue corresponding to the given QueueInfo.voidupdateRoute(RouteInfo routeInfo)Update route parameters.voidupdateServer(ServerInfo info)Update the server configuration.voidupdateTopic(TopicInfo topic)Change the properties of the topic corresponding to the given TopicInfo.voidupdateUser(UserInfo userInfo)Save changes made to the given UserInfo.
 
- 
- 
- 
Field Detail- 
STORE_SYNCpublic static final int STORE_SYNC The server's default failsafe store.- See Also:
- Constant Field Values
 
 - 
STORE_ASYNCpublic static final int STORE_ASYNC The server's default non-failsafe store.- See Also:
- Constant Field Values
 
 - 
STORE_COMPACT_NOLIMITpublic static final int STORE_COMPACT_NOLIMIT Used to run the store compact as a full re-write with no time limit. Valid only for mstores.- Since:
- EMS 8.3
- See Also:
- compact(int,long),- compact(String,long), Constant Field Values
 
 - 
PERMISSIONS_DIRECT_DESTpublic static final int PERMISSIONS_DIRECT_DEST This is mainly used in conjunction with TibjmsAdmin#getPermissions(UserInfo, flags). Specifying this value for the flags will return all direct permissions granted to the given user.- Since:
- EMS 4.4
- See Also:
- Constant Field Values
 
 - 
PERMISSIONS_DIRECT_ADMINpublic static final int PERMISSIONS_DIRECT_ADMIN This is mainly used in conjunction with TibjmsAdmin#getPermissions(UserInfo, flags). Specifying this value for the flags will return all direct admin permissions granted to the given user- Since:
- EMS 4.4
- See Also:
- Constant Field Values
 
 - 
PERMISSIONS_ALL_ADMINpublic static final int PERMISSIONS_ALL_ADMIN This is mainly used in conjunction with TibjmsAdmin#getPermissions(UserInfo, flags). Specifying this value for the flags will return all admin permissions (direct as well as inherited from the groups to which the user belongs to) for a given user.- Since:
- EMS 4.4
- See Also:
- Constant Field Values
 
 - 
PERMISSIONS_ALL_DESTpublic static final int PERMISSIONS_ALL_DEST This is mainly used in conjunction with TibjmsAdmin#getPermissions(UserInfo, flags). Specifying this value for the flags will return all destination permissions (direct as well as inherited from the groups to which the user belongs to) for a given user.- Since:
- EMS 4.4
- See Also:
- Constant Field Values
 
 - 
PERMISSIONS_DIRECTpublic static final int PERMISSIONS_DIRECT This is mainly used in conjunction with TibjmsAdmin#getPermissions(UserInfo, flags). Specifying this value for the flags will return all direct permissions (destination as well as admin permissions granted to the user) for a given user.- Since:
- EMS 4.4
- See Also:
- Constant Field Values
 
 - 
PERMISSIONS_ALLpublic static final int PERMISSIONS_ALL This is mainly used in conjunction with TibjmsAdmin#getPermissions(UserInfo, flags). Specifying this value for the flags will return all direct/indirect (destination as well as admin ) permissions for a given user- Since:
- EMS 4.4
- See Also:
- Constant Field Values
 
 - 
SESSION_UNKNOWN_ACKNOWLEDGEpublic static final int SESSION_UNKNOWN_ACKNOWLEDGE Unknown session acknowledge mode. This may be used as return value in cases, for example, when a consumer has no associated session.- Since:
- EMS 4.4
- See Also:
- ConsumerInfo.Details.getSessionAcknowledgeMode(), Constant Field Values
 
 - 
SESSION_NO_ACKNOWLEDGEpublic static final int SESSION_NO_ACKNOWLEDGE No acknowledgement mode.- Since:
- EMS 4.4
- See Also:
- ConsumerInfo.Details.getSessionAcknowledgeMode(), Constant Field Values
 
 - 
SESSION_AUTO_ACKNOWLEDGEpublic static final int SESSION_AUTO_ACKNOWLEDGE AUTO acknowledgement mode.- Since:
- EMS 4.4
- See Also:
- ConsumerInfo.Details.getSessionAcknowledgeMode(), Constant Field Values
 
 - 
SESSION_DUPS_OK_ACKNOWLEDGEpublic static final int SESSION_DUPS_OK_ACKNOWLEDGE DUPS_OK acknowledgement mode.- Since:
- EMS 4.4
- See Also:
- ConsumerInfo.Details.getSessionAcknowledgeMode(), Constant Field Values
 
 - 
SESSION_CLIENT_ACKNOWLEDGEpublic static final int SESSION_CLIENT_ACKNOWLEDGE CLIENT acknowledgement mode.- Since:
- EMS 4.4
- See Also:
- ConsumerInfo.Details.getSessionAcknowledgeMode(), Constant Field Values
 
 - 
SESSION_TRANSACTEDpublic static final int SESSION_TRANSACTED Acknowledgement mode describing transacted session.- Since:
- EMS 4.4
- See Also:
- ConsumerInfo.Details.getSessionAcknowledgeMode(), Constant Field Values
 
 - 
SESSION_XApublic static final int SESSION_XA Acknowledgement mode describing XA session.- Since:
- EMS 4.4
- See Also:
- ConsumerInfo.Details.getSessionAcknowledgeMode(), Constant Field Values
 
 - 
GET_STATpublic static final int GET_STAT Flag requesting overall statistics to be returned by methods such asgetConsumers(Long,String,DestinationInfo,boolean,int).- Since:
- EMS 4.4
- See Also:
- getConsumers(Long,String,DestinationInfo,boolean,int), Constant Field Values
 
 - 
GET_DETAILED_STATpublic static final int GET_DETAILED_STAT Flag requesting both overall and detailed statistics to be returned by methods such asgetConsumers(Long,String,DestinationInfo,boolean,int).- Since:
- EMS 4.4
- See Also:
- getConsumers(Long,String,DestinationInfo,boolean,int), Constant Field Values
 
 - 
GET_SELECTORpublic static final int GET_SELECTOR Flag requesting consumer's selector to be included intoConsumerInfoobjects returned bygetConsumers()method.- Since:
- EMS 4.4
- See Also:
- getConsumers(Long,String,DestinationInfo,boolean,int), Constant Field Values
 
 - 
DEST_CURSOR_FIRSTpublic static final int DEST_CURSOR_FIRST First cursorPosition for requested destinations.- Since:
- EMS 6.0
- See Also:
- getQueues(String,int,int,int),- getTopics(String,int,int,int),- getQueuesStatistics(String,int,int), Constant Field Values
 
 - 
DEST_CURSOR_NEXTpublic static final int DEST_CURSOR_NEXT Next cursorPosition for requested destinations.- Since:
- EMS 6.0
- See Also:
- getQueues(String,int,int,int),- getTopics(String,int,int,int),- getQueuesStatistics(String,int,int), Constant Field Values
 
 - 
DEST_CURSOR_LASTpublic static final int DEST_CURSOR_LAST Last cursorPosition for requested destinations.- Since:
- EMS 6.0
- See Also:
- getQueues(String,int,int,int),- getTopics(String,int,int,int),- getQueuesStatistics(String,int,int), Constant Field Values
 
 - 
SUBSCRIPTIONS_FILTER_DURABLE_ONLYpublic static final int SUBSCRIPTIONS_FILTER_DURABLE_ONLY Flag requesting non durable subscriptions to be filtered out.- Since:
- EMS 8.0
- See Also:
- getSubscriptions(int, String, String), Constant Field Values
 
 - 
SUBSCRIPTIONS_FILTER_NO_DURABLEpublic static final int SUBSCRIPTIONS_FILTER_NO_DURABLE Flag requesting durable subscriptions to be filtered out.- Since:
- EMS 8.0
- See Also:
- getSubscriptions(int, String, String), Constant Field Values
 
 - 
SUBSCRIPTIONS_FILTER_SHARED_ONLYpublic static final int SUBSCRIPTIONS_FILTER_SHARED_ONLY Flag requesting non shared subscriptions to be filtered out.- Since:
- EMS 8.0
- See Also:
- getSubscriptions(int, String, String), Constant Field Values
 
 - 
SUBSCRIPTIONS_FILTER_NO_SHAREDpublic static final int SUBSCRIPTIONS_FILTER_NO_SHARED Flag requesting shared subscriptions to be filtered out.- Since:
- EMS 8.0
- See Also:
- getSubscriptions(int, String, String), Constant Field Values
 
 
- 
 - 
Constructor Detail- 
TibjmsAdminpublic TibjmsAdmin(java.lang.String url, java.lang.String userName, java.lang.String password) throws TibjmsAdminExceptionCreates an administrative connection.- Parameters:
- url- The URL of the server to administer.
- userName- Name of the administrator user.
- password- User password.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
 
 - 
TibjmsAdminpublic TibjmsAdmin(java.lang.String url, java.lang.String userName, java.lang.String password, java.util.Map params) throws TibjmsAdminExceptionThis constructor is used to create an administrative connection to the server. Use this constructor if the connection to the server needs to use TLS and/or when the EMS server is configured with OAuth 2.0 authentication.
 When using OAuth 2.0 authentication, the 'userName' parameter determines the grant type used to obtain access tokens from the authorization server. If the parameter value is null, the client credentials grant is used, otherwise the resource owner password credentials grant is used with 'userName' and 'password' parameter values serving as the user and password credentials for the grant.- Parameters:
- url- The URL of the server to administer.
- userName- Name of the administrator user.
- password- User password.
- params- The parameters used for the TLS connection or for OAuth 2.0. See the documentation of the com.tibco.tibjms.TibjmsSSL class for valid TLS parameters and com.tibco.com.tibjms.Tibjms for valid OAuth 2.0 parameters.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
 
 
- 
 - 
Method Detail- 
closepublic void close() throws TibjmsAdminExceptionClose connection to the server. After connection is closed the TibjmsAdmin object should no longer be used.- Throws:
- TibjmsAdminException- if an error occurred.
 
 - 
getCommandTimeoutpublic long getCommandTimeout() Gets the command timeout in milliseconds. If the server does not respond to a command within specified timeout the command thows exception. Default value is 60000 (60 seconds).- Returns:
- the current timeout in milliseconds.
 
 - 
setCommandTimeoutpublic void setCommandTimeout(long value) throws java.lang.IllegalArgumentExceptionSets the command timeout. If the server does not respond to a command within specified timeout the command thows exception. Default value is 60000 (60 seconds). Minimum value accepted is 5000 (5 seconds).- Parameters:
- value- new timeout in milliseconds.
- Throws:
- java.lang.IllegalArgumentException- if value is less than 5000ms.
 
 - 
saveConfigurationpublic void saveConfiguration() throws TibjmsAdminExceptionSave any configuration changes to the server's config files. This call is necessary when auto save mode is not set.- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
 
 - 
setAutoSavepublic void setAutoSave(boolean enabled) Set if configuration changes should be immediately saved by the server into the configuration files on disk. If auto save is turned off, the application should call saveConfiguration() method in order to save all changes in the configuration files. If auto save is turned on, the server updates the configuration files on disk after every change and calls to saveConfiguration() are not required.- Parameters:
- enabled- true if chages should be saved after every change in the configuration.
 
 - 
isAutoSavepublic boolean isAutoSave() Returns true if server configuration is saved in the configuration files on disk after each change. If auto save mode is turned off, the application should call saveConfiguration() method in order to save the changes in the configuration files.- Returns:
- true if configuration is saved in the files after every change.
 
 - 
getInfopublic ServerInfo getInfo() throws TibjmsAdminException Get the current set of server configuration and metrics.- Returns:
- a ServerInfo object containing the current configuration and metrics for the server.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
 
 - 
getStateInfopublic StateInfo getStateInfo() throws TibjmsAdminException Get the current FT state of the server, along with its name, pid, version and whether or not it is running in an appliance.- Returns:
- a StateInfo object containing the current FT state of the server and its name, pid, version and whether or not it is running in an appliance or null if the server does not support this method (EMS 8.0 and earlier).
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- Since:
- EMS 8.1.0
 
 - 
updateServerpublic void updateServer(ServerInfo info) throws TibjmsAdminException, java.lang.IllegalArgumentException Update the server configuration.- Parameters:
- info- a ServerInfo object containing the changed configuration parameters.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- java.lang.IllegalArgumentException- if ServerInfo object is null.
 
 - 
restart@Deprecated public void restart() throws TibjmsAdminExceptionDeprecated.As of release 8.2.2Restart the server. Not supported- Throws:
- TibjmsAdminException
 
 - 
shutdownpublic void shutdown() throws TibjmsAdminExceptionShutdown the server. This causes the connection to the server to be lost, so subsequent calls to this object will fail with the exception of close() method.- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
 
 - 
rotateLogpublic void rotateLog() throws TibjmsAdminExceptionRotate server's log file.- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
 
 - 
updateCRLpublic void updateCRL() throws TibjmsAdminExceptionUpdate server's CRL.- Throws:
- TibjmsAdminException- if an error occurred.
 
 - 
createCMListenerpublic void createCMListener(CMListenerInfo cmListener) throws TibjmsAdminException, java.lang.IllegalArgumentException Create (pre-register) TIBCO Rendezvous certified listener.- Parameters:
- cmListener- the certified listener to be created (pre-registered).
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- java.lang.IllegalArgumentException- if CMListenerInfo object is null.
 
 - 
deleteCMListenerpublic void deleteCMListener(CMListenerInfo cmListener) throws TibjmsAdminException, java.lang.IllegalArgumentException Delete TIBCO Rendezvous certified listener.- Parameters:
- cmListener- the certified listener to be deleted.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- java.lang.IllegalArgumentException- if cmListener is null.
 
 - 
getCMListenerspublic CMListenerInfo[] getCMListeners() throws TibjmsAdminException Get the TIBCO Rendezvous certified listeners explicitly created in the server configuration.- Returns:
- array of CMListenerInfo objects.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
 
 - 
getCMLedgerpublic CMLedgerSubjectInfo[] getCMLedger(java.lang.String pattern) throws TibjmsAdminException Returns a summary of the contents of the ledger file of the server's default TIBCO Rendezvous certified messaging transport. If the server uses multiple named transports then use the getCMLedger(String transport, String pattern) method to query the ledger for the given transport. Specifying a pattern limits the scope of the query to only those Rendezvous subjects matching the pattern. The pattern may contain the wildcards "*" and ">". See the Tibjms documentation for how wildcards work. A pattern of "", ">", or null will return information on all the subjects in the ledger file.- Parameters:
- pattern- a pattern indicating which subjects are of interest.
- Returns:
- array of CMLedgerSubjectInfo objects that match the given pattern.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
 
 - 
getCMLedgerpublic CMLedgerSubjectInfo[] getCMLedger(java.lang.String transport, java.lang.String pattern) throws TibjmsAdminException Returns a summary of the contents of the transport's ledger file. Specifying a pattern limits the scope of the query to only those Rendezvous subjects matching the pattern. The pattern may contain the wildcards "*" and ">". See the Tibjms documentation for how wildcards work. A pattern of "", ">", or null will return information on all the subjects in the ledger file.- Parameters:
- transport- the name of the transport whose ledger file is to be summarized.
- pattern- a pattern indicating which subjects are of interest.
- Returns:
- array of CMLedgerSubjectInfo objects that match the given pattern.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
 
 - 
getRoutepublic RouteInfo getRoute(java.lang.String name) throws TibjmsAdminException, TibjmsAdminInvalidNameException Returns route information or null if such route does not exist. Notice returned object does not contain statistical data for the route. Use getRouteStatistics() method to obtain statistical information about the route.- Parameters:
- name- name of the route.
- Returns:
- RouteInfo object or null if route with such name does not exist.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- TibjmsAdminInvalidNameException- if name is not a legal route name.
 
 - 
getRoutespublic RouteInfo[] getRoutes() throws TibjmsAdminException Returns all routes known to the server. Notice returned objects do not contain statistical data for the routes. Use getRouteStatistics() method to obtain statistical information about the route.- Returns:
- all routes known to the server.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
 
 - 
createRoutepublic RouteInfo createRoute(RouteInfo routeInfo) throws TibjmsAdminException, java.lang.IllegalArgumentException Create a new route.- Parameters:
- routeInfo- The parameters for the new route.
- Returns:
- the fully configured RouteInfo from the server.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- java.lang.IllegalArgumentException- if routeInfo is null.
- TibjmsAdminInvalidNameException- if RouteInfo object does not have a legal name and url.
 
 - 
updateRoutepublic void updateRoute(RouteInfo routeInfo) throws TibjmsAdminException, java.lang.IllegalArgumentException Update route parameters. This method can only be used to update a route that already exists on the server. To create a new route use thecreateRoute(com.tibco.tibjms.admin.RouteInfo)method.- Parameters:
- routeInfo- The route info to save.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- java.lang.IllegalArgumentException
 
 - 
destroyRoutepublic void destroyRoute(java.lang.String name) throws TibjmsAdminException, TibjmsAdminInvalidNameExceptionDestroy the route with specified name.- Parameters:
- name- The name of the route to destroy.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- TibjmsAdminInvalidNameException- if name is not a legal route name.
 
 - 
getConnectionspublic ConnectionInfo[] getConnections() throws TibjmsAdminException Returns all connections except system connections. System connections are connections to other servers.- Returns:
- all the (non-system) connections known to the server.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
 
 - 
getConnectionspublic ConnectionInfo[] getConnections(java.lang.String username, java.lang.String hostname) throws TibjmsAdminException Returns all client connections matching specified filters. Returned array may be of 0 length if there are no connections in the server which match specified filters. All filters may be omitted by specifyingnullvalue.- Parameters:
- username- if specified, only connections with specific user name will be returned. Specify- nullif connections for all users should be returned.
- hostname- if specified, only connections created from this specific host name or IP address will be returned. Specify- nullif connections from all hosts should be returned.
- Returns:
- An array of all non-system connections matching the filters, or a zero length array.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- Since:
- EMS 4.4
 
 - 
getSystemConnectionspublic ConnectionInfo[] getSystemConnections() throws TibjmsAdminException Returns all system connections. System connections are connections to other servers.- Returns:
- all the system connections known to the server.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- Since:
- EMS 4.2
 
 - 
destroyConnectionpublic void destroyConnection(long connectionID) throws TibjmsAdminExceptionDestoy the client connection for the given connectionID. This will disconnect the client using the connection from the server, so this method should be used with caution.- Parameters:
- connectionID- The connection ID of the connection to be destroyed.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
 
 - 
createQueuepublic QueueInfo createQueue(QueueInfo queue) throws TibjmsAdminException Create a queue based on the parameters from the given QueueInfo.- Parameters:
- queue- The description of the queue to be created.
- Returns:
- The fully configured QueueInfo from the server.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- TibjmsAdminInvalidNameException- if the name of the queue is not a legal queue name.
- TibjmsAdminNameExistsException- if a queue already exists with the given name.
 
 - 
updateQueuepublic void updateQueue(QueueInfo queue) throws TibjmsAdminException, java.lang.IllegalArgumentException Change the properties of the queue corresponding to the given QueueInfo. This method can only be used to update a queue that already exists on the server. To create a new queue use thecreateQueue(com.tibco.tibjms.admin.QueueInfo)method.- Parameters:
- queue- The QueueInfo for the queue to be modified.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- java.lang.IllegalArgumentException- if QueueInfo object is null.
 
 - 
destroyQueuepublic void destroyQueue(java.lang.String queueName) throws TibjmsAdminException, TibjmsAdminInvalidNameExceptionDestroy the queue for the given queue name.- Parameters:
- queueName- The name of the queue to destroy.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- TibjmsAdminInvalidNameException- if queueName is not a legal queue name.
 
 - 
destroyQueuespublic void destroyQueues(java.lang.String pattern) throws TibjmsAdminException, TibjmsAdminInvalidNameExceptionDestroy queues matching the given pattern.- Parameters:
- pattern- a pattern indicating which queues to destroy.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- TibjmsAdminInvalidNameException- if pattern is not a legal pattern.
 
 - 
getQueuepublic QueueInfo getQueue(java.lang.String queueName) throws TibjmsAdminException, TibjmsAdminInvalidNameException Get the queue for the given queue name.- Parameters:
- queueName- The name of the queue to get.
- Returns:
- The QueueInfo for the given name or null if the name is not found.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- TibjmsAdminInvalidNameException- if queueName is not a legal name
 
 - 
getQueuespublic QueueInfo[] getQueues(java.lang.String pattern, int permType, int cursorPosition, int cursorSize) throws TibjmsAdminException Get the info for the queues that match the given pattern and the given permanence type. The pattern may contain the wildcards "*" and ">" . See the Tibjms documentation for how wildcards work in queue names. A pattern of "", ">", or null will return all the queues. One can start, continue or complete a cursored scan of queues.- Parameters:
- pattern- The pattern that must be matched
- permType- The permanence type, either- DestinationInfo.DEST_GET_ALL,- DestinationInfo.DEST_GET_STATIC,- DestinationInfo.DEST_GET_DYNAMICor- DestinationInfo.DEST_GET_NOTEMP
- cursorPosition- The cursor operations, either- DEST_CURSOR_FIRST,- DEST_CURSOR_NEXTor- DEST_CURSOR_LAST
- cursorSize- The count of queues to return for a given cursor operation. Note that the operation may return less than the requested size.
- Returns:
- The QueueInfos that match the pattern. Returns null when cursor is complete.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- Since:
- EMS 6.0
 
 - 
getQueuespublic QueueInfo[] getQueues(java.lang.String pattern, int permType) throws TibjmsAdminException Get the info for the queues that match the given pattern and the given permanence type. The pattern may contain the wildcards "*" and ">" . See the Tibjms documentation for how wildcards work in queue names. A pattern of "", ">", or null will return all the queues.- Parameters:
- pattern- The pattern that must be matched
- permType- The permanence type, either- DestinationInfo.DEST_GET_ALL,- DestinationInfo.DEST_GET_STATIC,- DestinationInfo.DEST_GET_DYNAMICor- DestinationInfo.DEST_GET_NOTEMP
- Returns:
- The QueueInfos that match the pattern.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- Since:
- EMS 4.4
 
 - 
getQueuespublic QueueInfo[] getQueues(java.lang.String pattern) throws TibjmsAdminException Get the info for the queues that match the given pattern. The pattern may contain the wildcards "*" and ">". See the Tibjms documentation for how wildcards work in queue names. A pattern of "", ">", or null will return all the queues.- Parameters:
- pattern- The pattern that must be matched
- Returns:
- The QueueInfos that match the pattern.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
 
 - 
getQueuespublic QueueInfo[] getQueues() throws TibjmsAdminException Get the info for all the queues that are known to the server.- Returns:
- the QueueInfos for all the queues that are known to the server.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
 
 - 
purgeQueuepublic void purgeQueue(java.lang.String queueName) throws TibjmsAdminException, TibjmsAdminInvalidNameExceptionPurge pending messages from the queue for the given name.- Parameters:
- queueName- The name of the queue to purge.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- TibjmsAdminInvalidNameException- if queueName is not a legal queue name.
 
 - 
purgeQueuespublic void purgeQueues(java.lang.String pattern) throws TibjmsAdminException, TibjmsAdminInvalidNameExceptionPurge pending messages from the queues matching the given pattern.- Parameters:
- pattern- a pattern indicating which queues to purge.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- TibjmsAdminInvalidNameException- if pattern is not a legal pattern.
 
 - 
createTopicpublic TopicInfo createTopic(TopicInfo topic) throws TibjmsAdminException Create a topic based on the parameters from the given TopicInfo.- Parameters:
- topic- The description of the topic to be created.
- Returns:
- The fully configured TopicInfo from the server.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- TibjmsAdminInvalidNameException- if the name of the topic is not a legal topic name.
- TibjmsAdminNameExistsException- if a topic already exists with the given name.
 
 - 
updateTopicpublic void updateTopic(TopicInfo topic) throws TibjmsAdminException, java.lang.IllegalArgumentException Change the properties of the topic corresponding to the given TopicInfo. This method can only be used to update a topic that already exists on the server. To create a new topic use thecreateTopic(com.tibco.tibjms.admin.TopicInfo)method.- Parameters:
- topic- The TopicInfo for the queue to be modified.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- java.lang.IllegalArgumentException- if TopicInfo object is null.
 
 - 
destroyTopicpublic void destroyTopic(java.lang.String topicName) throws TibjmsAdminException, TibjmsAdminInvalidNameExceptionDestroy the topic for the given topic name.- Parameters:
- topicName- The name of the topic to destroy.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- TibjmsAdminInvalidNameException- if topicName is not a legal topic name.
 
 - 
destroyTopicspublic void destroyTopics(java.lang.String pattern) throws TibjmsAdminException, TibjmsAdminInvalidNameExceptionDestroy topics matching the given pattern.- Parameters:
- pattern- a pattern indicating which topics to destroy.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- TibjmsAdminInvalidNameException- if pattern is not a legal pattern.
 
 - 
getTopicpublic TopicInfo getTopic(java.lang.String topicName) throws TibjmsAdminException, TibjmsAdminInvalidNameException Get the topic for the given topic name.- Parameters:
- topicName- The name of the topic to get.
- Returns:
- The TopicInfo for the given name or null if the name is not found.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- TibjmsAdminInvalidNameException- if topicName is not a legal topic name
 
 - 
getTopicspublic TopicInfo[] getTopics(java.lang.String pattern, int permType, int cursorPosition, int cursorSize) throws TibjmsAdminException Get the info for the topics that match the given pattern and the given permanence type. The pattern may contain the wildcards "*" and ">" . See the Tibjms documentation for how wildcards work in topic names. A pattern of "", ">", or null will return all the topics. One can start, continue or complete a cursored scan of topics.- Parameters:
- pattern- The pattern that must be matched
- permType- The permanence type, either- DestinationInfo.DEST_GET_ALL,- DestinationInfo.DEST_GET_STATIC,- DestinationInfo.DEST_GET_DYNAMICor- DestinationInfo.DEST_GET_NOTEMP
- cursorPosition- The cursor operations, either- DEST_CURSOR_FIRST,- DEST_CURSOR_NEXTor- DEST_CURSOR_LAST
- cursorSize- The count of topics to return for a given cursor operation. Note that the operation may return less than the requested size.
- Returns:
- The TopicInfos that match the pattern. Returns null when cursor is complete.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- Since:
- EMS 6.0
 
 - 
getTopicspublic TopicInfo[] getTopics(java.lang.String pattern, int permType) throws TibjmsAdminException Get the info for the topics that match the given pattern and the given permanence type. The pattern may contain the wildcards "*" and ">" . See the Tibjms documentation for how wildcards work in topic names. A pattern of "", ">", or null will return all the topics.- Parameters:
- pattern- The pattern that must be matched
- permType- The permanence type, either- DestinationInfo.DEST_GET_ALL,- DestinationInfo.DEST_GET_STATIC,- DestinationInfo.DEST_GET_DYNAMICor- DestinationInfo.DEST_GET_NOTEMP
- Returns:
- The TopicInfos that match the pattern.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- Since:
- EMS 4.4
 
 - 
getTopicspublic TopicInfo[] getTopics(java.lang.String pattern) throws TibjmsAdminException Get the info for the topics that match the given pattern. The pattern may contain the wildcards "*" and ">" . See the Tibjms documentation for how wildcards work in topic names. A pattern of "", ">", or null will return all the topics.- Parameters:
- pattern- The pattern that must be matched
- Returns:
- The TopicInfos that match the pattern.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
 
 - 
getTopicspublic TopicInfo[] getTopics() throws TibjmsAdminException Get the info for all the topics that are known to the server.- Returns:
- the TopicInfos for all the topics that are known to the server.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
 
 - 
purgeTopicpublic void purgeTopic(java.lang.String topicName) throws TibjmsAdminException, TibjmsAdminInvalidNameExceptionPurge pending messages from the topic for the given name.- Parameters:
- topicName- The name of the topic to purge.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- TibjmsAdminInvalidNameException- if topicName is not a legal topic name.
 
 - 
purgeTopicspublic void purgeTopics(java.lang.String pattern) throws TibjmsAdminException, TibjmsAdminInvalidNameExceptionPurge pending messages from topics matching the given pattern.- Parameters:
- pattern- a pattern indicating which topics to destroy.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- TibjmsAdminInvalidNameException- if pattern is not a legal pattern.
 
 - 
createUserpublic UserInfo createUser(UserInfo user) throws TibjmsAdminException, TibjmsAdminInvalidNameException, TibjmsAdminNameExistsException Create a user based on the information in the given UserInfo.- Parameters:
- user- The information for the user to be created.
- Returns:
- the fully configured UserInfo from the server.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- TibjmsAdminInvalidNameException- if the name of the user is not a legal user name.
- TibjmsAdminNameExistsException- if a user already exists with the given name.
 
 - 
destroyUserpublic void destroyUser(java.lang.String userName) throws TibjmsAdminException, TibjmsAdminInvalidNameExceptionDestroy the user for the given userName.- Parameters:
- userName- The name of the user to destroy.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- TibjmsAdminInvalidNameException- if userName is not a legal user name.
 
 - 
updateUserpublic void updateUser(UserInfo userInfo) throws TibjmsAdminException, java.lang.IllegalArgumentException Save changes made to the given UserInfo. This method can only be used to update a user that already exists on the server. To create a new user use thecreateUser(com.tibco.tibjms.admin.UserInfo)method.- Parameters:
- userInfo- The user information to save.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- java.lang.IllegalArgumentException- if UserInfo object is null.
 
 - 
getUserpublic UserInfo getUser(java.lang.String userName) throws TibjmsAdminException, TibjmsAdminInvalidNameException Get the user for the given username.- Parameters:
- userName- The name of the user to retrieve info for.
- Returns:
- the UserInfo object for the given username or null if the name is not found.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- TibjmsAdminInvalidNameException- if userName is not a legal user name.
 
 - 
getUserspublic UserInfo[] getUsers() throws TibjmsAdminException Get the array of all UserInfos known to the server.- Returns:
- the array of all UserInfos known to the server.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
 
 - 
createGrouppublic GroupInfo createGroup(GroupInfo group) throws TibjmsAdminException, TibjmsAdminInvalidNameException, TibjmsAdminNameExistsException Create a group based on the information in the given GroupInfo.- Parameters:
- group- The info for the group to be created.
- Returns:
- The fully configured GroupInfo from the server.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- TibjmsAdminInvalidNameException- if the name of the group is not a legal group name.
- TibjmsAdminNameExistsException- if a user aleady exists with the given name.
 
 - 
destroyGrouppublic void destroyGroup(java.lang.String groupName) throws TibjmsAdminException, TibjmsAdminInvalidNameExceptionDestroy the group for the given groupName.- Parameters:
- groupName- The name of the group to destroy.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- TibjmsAdminInvalidNameException- if groupName is not a legal name.
 
 - 
updateGrouppublic void updateGroup(GroupInfo groupInfo) throws TibjmsAdminException, java.lang.IllegalArgumentException Save changes made to the given GroupInfo. This method can only be used to update a group that already exists on the server. To create a new group use thecreateGroup(com.tibco.tibjms.admin.GroupInfo)method.- Parameters:
- groupInfo- The group to save configuration changes for.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- java.lang.IllegalArgumentException- if GroupInfo object is null.
 
 - 
getGrouppublic GroupInfo getGroup(java.lang.String groupName) throws TibjmsAdminException, TibjmsAdminInvalidNameException Get the group for the given name.- Parameters:
- groupName- The name of the group to retrieve.
- Returns:
- the GroupInfo for the given name or null if the name is not found.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- TibjmsAdminInvalidNameException- if groupName is not a legal group name.
 
 - 
getGroupspublic GroupInfo[] getGroups() throws TibjmsAdminException Get all the groups known to the server.- Returns:
- all the groups known to the server.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
 
 - 
addUserToGrouppublic void addUserToGroup(java.lang.String groupName, java.lang.String userName) throws TibjmsAdminExceptionAdd the user for the given userName to the group for the given groupName.- Parameters:
- groupName- The group that the user will be added to.
- userName- The user to be added.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- TibjmsAdminInvalidNameException- if the names of the group or the user are not legal.
 
 - 
addUsersToGrouppublic void addUsersToGroup(java.lang.String groupName, java.lang.String[] userNames) throws TibjmsAdminException, TibjmsAdminInvalidNameException, java.lang.IllegalArgumentExceptionAdd the users for the given array of userNames to the group for the given groupName.- Parameters:
- groupName- The group that the users will be added to.
- userNames- The users to be added.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- TibjmsAdminInvalidNameException- if the names of the group or users are not legal.
- java.lang.IllegalArgumentException- if the array of user names is null.
 
 - 
removeUserFromGrouppublic void removeUserFromGroup(java.lang.String groupName, java.lang.String userName) throws TibjmsAdminException, TibjmsAdminInvalidNameExceptionRemove the user for the given userName from the group for the given groupName.- Parameters:
- groupName- The group that the user will be removed from.
- userName- The user to be removed.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- TibjmsAdminInvalidNameException- if groupName or userName are not legal names.
 
 - 
removeUsersFromGrouppublic void removeUsersFromGroup(java.lang.String groupName, java.lang.String[] userNames) throws TibjmsAdminException, TibjmsAdminInvalidNameException, java.lang.IllegalArgumentExceptionRemove the users for the given array of userNames from the group for the given groupName.- Parameters:
- groupName- The group that the users will be removed from.
- userNames- The users to be removed.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- TibjmsAdminInvalidNameException- if groupName or one of the user names is not a legal name.
- java.lang.IllegalArgumentException- if userNames is null;
 
 - 
getPermissionspublic java.lang.Object[] getPermissions() throws TibjmsAdminExceptionGet all permission entries.- Returns:
- all ACL entries known to the server. Array elements are ACLEntry and AdminACLEntry objects.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
 
 - 
getPermissionspublic java.lang.Object[] getPermissions(java.lang.Object target) throws TibjmsAdminExceptionGet all permission entries for specified target. Target parameter can be UserInfo, GroupInfo, TopicInfo or QueueInfo. If target parameter is null, this method returns all permissions.- Parameters:
- target- the object
- Returns:
- all ACL entries for specified target object
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
 
 - 
getPermissionspublic java.lang.Object[] getPermissions(UserInfo target, int flags) throws TibjmsAdminException Get user permissions based on the flags set.- If no flags are specified i.e flags == 0, then all the permissions for the user are returned.
- If flags == PERMISSIONS_ALL, then all the permissions are returned for the specified user, (i.e direct, inhertied i.e dest (user and admin) and other admin).
- If flags == PERMISSIONS_ALL_DEST, then all the destination permissions for the user are returned, both direct and indirect (i.e inherited from groups).
- If flags == PERMISSIONS_ALL_ADMIN, then all the admin permissions for the user are returned, both direct and indirect.
- If flags == PERMISSIONS_DIRECT, then all direct permissions are returned (i.e the one's directly assigned to the user, dest and admin).
- If flags == PERMISSIONS_DIRECT_DEST, then all direct destination permissions are returned (i.e the one directly assigned to the user).
- If flags == PERMISSIONS_DIRECT_ADMIN, then all direct admin permissions are returned (i.e the ones directly assigned to the user).
- NOTE: If arbitrary combinations of flags are chosen then the supersed'ing flag is chosen. e.g flags = PERMISSIONS_ALL | PERMISSIONS_ALL_DEST here the ALL superseds ALL_DEST flag, so all permissions are returned.
 NOTE: Inherited permissions cannot be modified (i.e removed) - Parameters:
- target- the userinfo object
- flags- the flags, based on which the different permissions are returned
- Returns:
- ACL entries for specified target object as defined by the flags, Array elements are be either ACLEntry, AdminACLEntry objects or both.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- Since:
- EMS 4.4
 
 - 
getACLEntriespublic ACLEntry[] getACLEntries() throws TibjmsAdminException Get all ACL entries for destinations.- Returns:
- all ACL entries for destinations known to the server
- Throws:
- TibjmsAdminException- if not authorized or some error occurred.
 
 - 
getQueueACLEntriespublic ACLEntry[] getQueueACLEntries(java.lang.String queueName) throws TibjmsAdminException, TibjmsAdminInvalidNameException Get all ACL entries pertaining to the queue with the given queueName.- Parameters:
- queueName- Queue name.
- Returns:
- the array of ACLEntries for the given queue.
- Throws:
- TibjmsAdminException- if not authorized or some error occurred.
- TibjmsAdminInvalidNameException- if queueName is not a legal queue name.
 
 - 
getTopicACLEntriespublic ACLEntry[] getTopicACLEntries(java.lang.String topicName) throws TibjmsAdminException, TibjmsAdminInvalidNameException Get all ACL entries pertaining to the topic with the given topicName.- Parameters:
- topicName- Topic name.
- Returns:
- the array of ACLEntries for the given topic.
- Throws:
- TibjmsAdminException- if not authorized or some error occurred.
- TibjmsAdminInvalidNameException- if topicName is not a legal topic name.
 
 - 
getUserACLEntriespublic ACLEntry[] getUserACLEntries(java.lang.String userName) throws TibjmsAdminException, TibjmsAdminInvalidNameException Get all ACL entries pertaining to the user with the given userName.- Parameters:
- userName- User name.
- Returns:
- the array of ACLEntries for the given user.
- Throws:
- TibjmsAdminException- if not authorized or some error occurred.
- TibjmsAdminInvalidNameException- if userName is not a legal user name.
 
 - 
getGroupACLEntriespublic ACLEntry[] getGroupACLEntries(java.lang.String groupName) throws TibjmsAdminException, TibjmsAdminInvalidNameException Get all permissions on destinations for specified group.- Parameters:
- groupName- the name of the group.
- Returns:
- array of ACLEntry objects for the specified group.
- Throws:
- TibjmsAdminException- if not authorized or some error occurred.
- TibjmsAdminInvalidNameException- if groupName is not a legal group name.
 
 - 
grantpublic void grant(ACLEntry entry) throws TibjmsAdminException, java.lang.IllegalArgumentException Grant the permissions specified in the given ACLEntry.- Parameters:
- entry- The description of the permissions to grant.
- Throws:
- TibjmsAdminException- if not authorized or some error occurred.
- java.lang.IllegalArgumentException- if entry is null.
 
 - 
grantpublic void grant(ACLEntry[] acls) throws TibjmsAdminException, java.lang.IllegalArgumentException Grant the permissions specified in the given ACLEntries.- Parameters:
- acls- The descriptions of the permissions to grant.
- Throws:
- TibjmsAdminException- if not authorized or some error occurred.
- java.lang.IllegalArgumentException- if acls is null.
 
 - 
grantpublic void grant(AdminACLEntry entry) throws TibjmsAdminException, java.lang.IllegalArgumentException Grant the administrative permissions.- Parameters:
- entry- the AdminACLEntry to grant.
- Throws:
- TibjmsAdminException- if not authorized or some error occurred.
- java.lang.IllegalArgumentException- if entry is null.
 
 - 
revokepublic void revoke(ACLEntry entry) throws TibjmsAdminException, java.lang.IllegalArgumentException Revoke the permissions specified in the given ACLEntry.- Parameters:
- entry- the ACLEntry to revoke.
- Throws:
- TibjmsAdminException- if not authorized or some error occurred.
- java.lang.IllegalArgumentException- if ACLEntry is null.
 
 - 
revokepublic void revoke(ACLEntry[] acls) throws TibjmsAdminException, java.lang.IllegalArgumentException Revoke the permissions specified in the given ACLEntries.- Parameters:
- acls- an array of ACLEntry objects containing the positive permissions to be revoked.
- Throws:
- TibjmsAdminException- if not authorized or some error occurred.
- java.lang.IllegalArgumentException- if ACLEntry array is null.
 
 - 
revokepublic void revoke(AdminACLEntry entry) throws TibjmsAdminException, java.lang.IllegalArgumentException Revoke the administrative permissions. Only permissions specified as positive in the AdminPermissions member of supplied AdminAclEntry are taken into account and revoked. The negative permissions of participating AdminPermissions are ignored.- Parameters:
- entry- the AdminACLEntry containing the positive permissions to be revoked.
- Throws:
- TibjmsAdminException- if not authorized or some error occurred.
- java.lang.IllegalArgumentException- if AdminACLEntry is null.
 
 - 
getDurablepublic DurableInfo getDurable(java.lang.String durableName, java.lang.String clientID) throws TibjmsAdminException, TibjmsAdminInvalidNameException Get the durable subscription information for the given durable name and clientID.- Parameters:
- durableName- name of the durable subsription.
- clientID- client ID associated with the durable (can be null).
- Returns:
- the DurableInfo.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- TibjmsAdminInvalidNameException- if durableName is not a legal name.
 
 - 
getDurables@Deprecated public DurableInfo[] getDurables(java.lang.String topicName) throws TibjmsAdminException Deprecated.this method remains fully functional but in EMS 4.4 the preferred way to obtain consumer information is via methodgetConsumers(Long,String,DestinationInfo,boolean,int)Get the durable subscription information for the given topic name.- Parameters:
- topicName- name of topic to get durable information on.
- Returns:
- the array of DurableInfo for the given topic.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- See Also:
- getConsumers(Long,String,DestinationInfo,boolean,int)
 
 - 
getDurablespublic DurableInfo[] getDurables() throws TibjmsAdminException Get the durable subscription information for all durables known to the server.- Returns:
- the array of DurableInfos for the server.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
 
 - 
purgeDurablepublic void purgeDurable(java.lang.String durableName, java.lang.String clientID) throws TibjmsAdminException, TibjmsAdminInvalidNameExceptionPurge pending messages for the durable with given name and client ID.- Parameters:
- durableName- The name of the durable to purge.
- clientID- The client ID associated with the durable (can be null).
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- TibjmsAdminInvalidNameException- if durableName is not a legal durable name.
 
 - 
createDurablepublic void createDurable(java.lang.String topicName, java.lang.String durableName, java.lang.String clientID, java.lang.String selector, boolean nolocal, boolean route) throws TibjmsAdminException, TibjmsAdminInvalidNameExceptionCreate the durable with given name and client ID.- Parameters:
- topicName- The name of topic on which to create durable.
- durableName- The name of the durable to create.
- clientID- The client ID associated with the durable (can be null).
- selector- The selector associated with the durable (can be null).
- nolocal- Prevents reception of messages sent on this session.
- route- Designates this as a durable for another server.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- TibjmsAdminInvalidNameException- if durableName is not a legal name.
 
 - 
destroyDurablepublic void destroyDurable(java.lang.String durableName, java.lang.String clientID) throws TibjmsAdminException, TibjmsAdminInvalidNameExceptionDestroy the durable with given name and client ID.- Parameters:
- durableName- The name of the durable to destroy.
- clientID- The client ID associated with the durable (can be null).
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- TibjmsAdminInvalidNameException- if durableName is not a legal name.
 
 - 
getMessagepublic Message getMessage(java.lang.String messageID) throws TibjmsAdminException, java.lang.IllegalArgumentException Get the message for the given message ID.- Parameters:
- messageID- The ID of the message to retrieve.
- Returns:
- the message for the given ID or null if none is found.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- java.lang.IllegalArgumentException- if messageID is not a legal ID.
 
 - 
destroyMessagepublic void destroyMessage(java.lang.String messageID) throws TibjmsAdminExceptionDestroy the message for the given message ID.- Parameters:
- messageID- The ID of the message to destroy.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- java.lang.IllegalArgumentException- if messageID is not a legal ID.
 
 - 
getMessagespublic Message[] getMessages(java.lang.String correlationID) throws TibjmsAdminException, java.lang.IllegalArgumentException Get the messages that have the given correlation ID.- Parameters:
- correlationID- The correlation ID of the messages to retrieve.
- Returns:
- The array of messages with the given correlation ID.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- java.lang.IllegalArgumentException- if correlationID is not a legal ID.
 
 - 
getConnectionFactoriespublic ConnectionFactoryInfo[] getConnectionFactories() throws TibjmsAdminException Get all connection factories in the server configuration.- Returns:
- array of ConnectionFactoryInfo objects.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
 
 - 
createConnectionFactorypublic void createConnectionFactory(java.lang.String jndiName, ConnectionFactoryInfo cfi) throws TibjmsAdminException, TibjmsAdminInvalidNameException, java.lang.IllegalArgumentException, TibjmsAdminNameExistsExceptionCreate a connection factory based on the given ConnectionFactoryInfo and bind it to the given name in the internal JNDI implementation.- Parameters:
- jndiName- The JNDI name to which the new factory will be bound.
- cfi- The info for the factory to create.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- TibjmsAdminInvalidNameException- if the JNDI name is not legal.
- java.lang.IllegalArgumentException- if ConnectionFactoryInfo object is null.
- TibjmsAdminNameExistsException- if the JNDI name is already in use.
 
 - 
updateConnectionFactorypublic void updateConnectionFactory(java.lang.String jndiName, ConnectionFactoryInfo cfi) throws TibjmsAdminException, TibjmsAdminInvalidNameException, java.lang.IllegalArgumentExceptionSave changes to the connection factory stored at the given JNDI name using information from the given ConnectionFactoryInfo. This method can only be used to update a factory that already exists on the server. To create a new factory use thecreateConnectionFactory(java.lang.String, com.tibco.tibjms.admin.ConnectionFactoryInfo)method.- Parameters:
- jndiName- The JNDI name of the factory that will be updated.
- cfi- The updated info for the factory.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- TibjmsAdminInvalidNameException- if jndiName is not a legal JNDI name.
- java.lang.IllegalArgumentException- if ConnectionFactoryInfo object is null.
 
 - 
destroyConnectionFactorypublic void destroyConnectionFactory(java.lang.String jndiName) throws TibjmsAdminException, TibjmsAdminInvalidNameExceptionDestroy the connection factory bound to the given JNDI name.- Parameters:
- jndiName- A JNDI name for the factory to destroy.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- TibjmsAdminInvalidNameException- if jndiName is not a legal name.
 
 - 
bindQueuepublic void bindQueue(java.lang.String name, java.lang.String queueName) throws TibjmsAdminException, TibjmsAdminNameExistsException, TibjmsAdminInvalidNameExceptionBind the queue for the given queue name to the given JNDI name.- Parameters:
- name- The JNDI name to which the queue will be bound.
- queueName- The name of the queue to bind.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- TibjmsAdminNameExistsException- if the JNDI name is already in use.
- TibjmsAdminInvalidNameException- if name or queueName are not legal names.
 
 - 
bindTopicpublic void bindTopic(java.lang.String name, java.lang.String topicName) throws TibjmsAdminException, TibjmsAdminNameExistsException, TibjmsAdminInvalidNameExceptionBind the topic for the given topic name to the given JNDI name.- Parameters:
- name- The JNDI name to which the topic will be bound.
- topicName- The name of the topic to bind.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- TibjmsAdminNameExistsException- if the JNDI name is already in use.
- TibjmsAdminInvalidNameException- if name and topicName are legal names.
 
 - 
bindpublic void bind(java.lang.String newName, java.lang.String existingName) throws TibjmsAdminException, TibjmsAdminNameExistsException, TibjmsAdminInvalidNameExceptionBind an object already bound to an existing JNDI name to a new JNDI name. The object will be bound to both names after this call.- Parameters:
- newName- The new name that will be bound to the object currently bound to the existing name.
- existingName- The name that is currently bound to the object.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- TibjmsAdminNameExistsException- if the JNDI name is already in use.
- TibjmsAdminInvalidNameException- if the JNDI names are not legal.
 
 - 
unbindpublic void unbind(java.lang.String name) throws TibjmsAdminException, TibjmsAdminInvalidNameExceptionRemove the binding between the given JNDI name and the object bound to it. Note that removing the last JNDI name for a connection factory results in the destruction of that factory.- Parameters:
- name- The JNDI name to unbind.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- TibjmsAdminInvalidNameException- if name is not a legal JNDI name.
 
 - 
lookuppublic java.lang.Object lookup(java.lang.String name) throws TibjmsAdminException, TibjmsAdminInvalidNameExceptionRetrieve that administrative object bound to the given JNDI name.- Parameters:
- name- The JNDI name to lookup.
- Returns:
- the ConnectionFactoryInfo, TopicInfo, or QueueInfo bound to the given name or null if nothing is bound to the name.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- TibjmsAdminInvalidNameException- if name is not a legal name.
 
 - 
getConsumersStatisticspublic ConsumerInfo[] getConsumersStatistics() throws TibjmsAdminException Get statistical information about all consumers.- Returns:
- array of ConsumerInfo objects with statistical data or null if no consumers found or statistics are disabled.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
 
 - 
getConsumersStatisticspublic ConsumerInfo[] getConsumersStatistics(java.lang.Long connectionID, java.lang.String username, DestinationInfo destination) throws TibjmsAdminException Get statistical information about consumers with specified parameters.- Parameters:
- connectionID- consumer connection ID or null.
- username- consumer user name or null.
- destination- consumer destination pattern or null.
- Returns:
- array of ConsumerInfo objects with statistical data or null if no consumers found or statistics are disabled.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
 
 - 
getProducersStatisticspublic ProducerInfo[] getProducersStatistics() throws TibjmsAdminException Returns statistical information about all producers.- Returns:
- array of ProducerInfo objects with statistical data or null if no producers found or statistics are disabled.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
 
 - 
getProducersStatisticspublic ProducerInfo[] getProducersStatistics(java.lang.Long connectionID, java.lang.String username, DestinationInfo destination) throws TibjmsAdminException Get the statistical information about producers with specified parameters.- Parameters:
- connectionID- producer connection ID or null.
- username- producer user name or null.
- destination- producer destination pattern or null.
- Returns:
- array of ProducerInfo objects with statistical data or null if no producers found or statistics are disabled.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
 
 - 
getTopicsStatisticspublic TopicInfo[] getTopicsStatistics() throws TibjmsAdminException Get the statistical information for all topics.- Returns:
- array of TopicInfo objects with statistical data or null if no topics found or statistics are disabled.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
 
 - 
getTopicsStatisticspublic TopicInfo[] getTopicsStatistics(java.lang.String pattern) throws TibjmsAdminException Get the statistical information for the topics that match the given pattern. The pattern may contain the wildcards "*" and ">". See the Tibjms documentation for how wildcards work in topic names. A pattern of "", ">", or null will return statistics for all the topics.- Parameters:
- pattern- The pattern that must be matched
- Returns:
- array of TopicInfo objects with statistical data or null if no topics found or statistics are disabled.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
 
 - 
getTopicsStatisticspublic TopicInfo[] getTopicsStatistics(java.lang.String pattern, int cursorPosition, int cursorSize) throws TibjmsAdminException Get the statistical information for the topics that match the given pattern. The pattern may contain the wildcards "*" and ">". See the Tibjms documentation for how wildcards work in topic names. A pattern of "", ">", or null will return statistics for all the topics. One can start, continue or complete a cursored scan of topics.- Parameters:
- pattern- The pattern that must be matched
- cursorPosition- The cursor operations, either- DEST_CURSOR_FIRST,- DEST_CURSOR_NEXTor- DEST_CURSOR_LAST
- cursorSize- The count of topics to return for a given cursor operation. Note that the operation may return less than the requested size.
- Returns:
- array of TopicInfo objects with statistical data or null if no topics found or statistics are disabled or cursor complete.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- Since:
- EMS 6.0
 
 - 
getQueuesStatisticspublic QueueInfo[] getQueuesStatistics() throws TibjmsAdminException Get the statistical information about all queues.- Returns:
- array of QueueInfo objects with statistical data or null if no queues found or statistics are disabled.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
 
 - 
getQueuesStatisticspublic QueueInfo[] getQueuesStatistics(java.lang.String pattern) throws TibjmsAdminException Get the statistical information for the queues that match the given pattern. The wildcards "*" and ">" may be included in the pattern. See the Tibjms documentation for how wildcards work in queue names. A pattern of "", ">", or null will return statistics for all the queues.- Parameters:
- pattern- The pattern that must be matched
- Returns:
- array of QueueInfo objects with statistical data or null if no queues found or statistics are disabled.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
 
 - 
getQueuesStatisticspublic QueueInfo[] getQueuesStatistics(java.lang.String pattern, int cursorPosition, int cursorSize) throws TibjmsAdminException Get the statistical information for the queues that match the given pattern. The wildcards "*" and ">" may be included in the pattern. See the Tibjms documentation for how wildcards work in queue names. A pattern of "", ">", or null will return statistics for all the queues. One can start, continue or complete a cursored scan of queues.- Parameters:
- pattern- The pattern that must be matched
- cursorPosition- The cursor operations, either- DEST_CURSOR_FIRST,- DEST_CURSOR_NEXTor- DEST_CURSOR_LAST
- cursorSize- The count of queues to return for a given cursor operation. Note that the operation may return less than the requested size.
- Returns:
- array of QueueInfo objects with statistical data or null if no queues found or statistics are disabled or cursor complete.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- Since:
- EMS 6.0
 
 - 
getRouteStatisticspublic RouteInfo getRouteStatistics(java.lang.String name) throws TibjmsAdminException, TibjmsAdminInvalidNameException Returns statistical information about the route with specified name.- Parameters:
- name- name of the route.
- Returns:
- RouteInfo object or null if route with such name does not exist or statistics are disabled.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- TibjmsAdminInvalidNameException- if name is not a legal route name.
 
 - 
getTransactionspublic TransactionInfo[] getTransactions() throws TibjmsAdminException Get all the xa transactions known to the server.- Returns:
- all the xa transactions known to the server.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
 
 - 
getTransactionpublic DetailedTransactionInfo getTransaction(TransactionInfo transaction) throws TibjmsAdminException Get a specific xa transaction.- Parameters:
- transaction- The TransactionInfo object for the transaction to be inspected.
- Returns:
- the xa transaction, represented by the TransactionInfo object.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
 
 - 
commitTransactionpublic void commitTransaction(TransactionInfo transaction) throws TibjmsAdminException, java.lang.IllegalArgumentException Commit the xa transaction.- Parameters:
- transaction- The TransactionInfo object for the transaction to be committed.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- java.lang.IllegalArgumentException- if transaction is null.
 
 - 
rollbackTransactionpublic void rollbackTransaction(TransactionInfo transaction) throws TibjmsAdminException, java.lang.IllegalArgumentException Roll the xa transaction back.- Parameters:
- transaction- The TransactionInfo object for the transaction to be rolled back.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- java.lang.IllegalArgumentException- if TransactionInfo object is null.
 
 - 
getTransportspublic TransportInfo[] getTransports() throws TibjmsAdminException Get all the transports known to the server.- Returns:
- all the transports known to the server.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
 
 - 
getTransportpublic TransportInfo getTransport(java.lang.String transportName) throws TibjmsAdminException, TibjmsAdminInvalidNameException Get the transport with a given name.- Parameters:
- transportName- the name of the transport.
- Returns:
- the transport or null if not found.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- TibjmsAdminInvalidNameException- if transportName is not a legal transport name
 
 - 
setExceptionListenerpublic void setExceptionListener(ExceptionListener listener) throws TibjmsAdminException Sets an exception listener for the connection used by the admin api to communicate with the EMS server. See the EMS API documentation for more information about exception listeners.- Parameters:
- listener- the exception listener.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
 
 - 
getBridgespublic BridgeInfo[] getBridges() throws TibjmsAdminException Get all the bridges known to the server.- Returns:
- all the bridges known to the server.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
 
 - 
getBridgespublic BridgeInfo[] getBridges(int type, java.lang.String pattern) throws TibjmsAdminException, java.lang.IllegalArgumentException Get all the bridges known to the server where the source destination is of a given type and the source destination name matches the given pattern.- Parameters:
- type- the type of source destination, either DestinationInfo.QUEUE_TYPE to return only bridges from queues, DestinationInfo.TOPIC_TYPE to return only bridges from topics, or DestinationInfo.ALL_TYPE types to return bridges from both queues and topics.
- pattern- a filter to restrict the bridges that are returned to only those whose name matches the pattern, null indicates all bridges.
- Returns:
- all the matching bridges.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- java.lang.IllegalArgumentException- if type is invalid
 
 - 
getBridgepublic BridgeInfo getBridge(int type, java.lang.String name) throws TibjmsAdminException, java.lang.IllegalArgumentException Get the bridge from a given destination.- Parameters:
- type- the type of source destination, either DestinationInfo.QUEUE_TYPE or DestinationInfo.TOPIC_TYPE.
- name- the name of the source destination
- Returns:
- the BridgeInfo object representing the bridge or null if one wasn't found.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- java.lang.IllegalArgumentException- type is invalid or name is null
 
 - 
getJACIInfopublic JACIInfo getJACIInfo() throws TibjmsAdminException Get statistics on the JACI permissions cache.- Returns:
- a JACIInfo object that describes the current statistics of the JACI cache.
- Throws:
- TibjmsAdminException
 
 - 
resetJACIStatspublic void resetJACIStats() throws TibjmsAdminExceptionReset all JACI statistics counters to zero.- Throws:
- TibjmsAdminException
 
 - 
clearJACICachepublic void clearJACICache() throws TibjmsAdminExceptionClear all entries out of the JACI results cache.- Throws:
- TibjmsAdminException
 
 - 
createDestinationBridgepublic DestinationBridgeInfo createDestinationBridge(DestinationBridgeInfo destBridge) throws TibjmsAdminException, java.lang.IllegalArgumentException, TibjmsAdminInvalidNameException, TibjmsAdminNameExistsException Creates a destination bridge as specified by the DestinationBridgeInfo object.- Parameters:
- destBridge- the destination bridge to be created
- Returns:
- the newly created destination bridge
- Throws:
- TibjmsAdminException- if not authorized or some other error occurred
- java.lang.IllegalArgumentException- if the DestinationBridgeInfo object is null
- TibjmsAdminInvalidNameException- if the DestinationBridgeInfo object is not valid
- TibjmsAdminNameExistsException- if a destination bridge already exists between the specified source and target.
- Since:
- EMS 4.2
 
 - 
destroyDestinationBridgepublic void destroyDestinationBridge(int sourceType, java.lang.String sourceName, int targetType, java.lang.String targetName) throws TibjmsAdminException, TibjmsAdminInvalidNameExceptionDestroy the destination bridge between a source and a target- Parameters:
- sourceType- the type of the source destination, either- DestinationInfo.QUEUE_TYPEor- DestinationInfo.TOPIC_TYPE
- sourceName- the name of the source destination
- targetType- the type of the target destination, either- DestinationInfo.QUEUE_TYPEor- DestinationInfo.TOPIC_TYPE
- targetName- the name of the target destination
- Throws:
- TibjmsAdminException- if not authorized or some other error occurred
- TibjmsAdminInvalidNameException- if the source our target names or types are not valid
- Since:
- EMS 4.2
 
 - 
getDestinationBridgepublic DestinationBridgeInfo getDestinationBridge(int sourceType, java.lang.String sourceName, int targetType, java.lang.String targetName) throws TibjmsAdminException, TibjmsAdminInvalidNameException Returns the destination bridge between a source and a target- Parameters:
- sourceType- the type of the source destination, either- DestinationInfo.QUEUE_TYPEor- DestinationInfo.TOPIC_TYPE
- sourceName- the name of the source destination
- targetType- the type of the target destination, either- DestinationInfo.QUEUE_TYPEor- DestinationInfo.TOPIC_TYPE
- targetName- the name of the target destination
- Throws:
- TibjmsAdminException- if not authorized or some other error occurred
- TibjmsAdminInvalidNameException- if the source our target names or types are not valid
- Since:
- EMS 4.2
 
 - 
getDestinationBridgespublic DestinationBridgeInfo[] getDestinationBridges(int sourceType, java.lang.String sourcePattern) throws TibjmsAdminException, TibjmsAdminInvalidNameException Get the destination bridges for all source destinations that match the given source type and source pattern. The source type can be eitherDestinationInfo.QUEUE_TYPE,DestinationInfo.TOPIC_TYPEorDestinationInfo.ALL_TYPE. The source pattern may contain the wildcards "*" and ">" . See the Tibjms documentation for how wildcards work in destination names. A pattern of "", ">", or null will return the destination bridges from all the queues if sourceType isDestinationInfo.QUEUE_TYPEor from all the topics if sourceType isDestinationInfo.TOPIC_TYPE.- Parameters:
- sourceType- the type of the source, either- DestinationInfo.QUEUE_TYPE,- DestinationInfo.TOPIC_TYPEor- DestinationInfo.ALL_TYPE
- sourcePattern- a pattern or destination name
- Returns:
- an array of DestinationBridgeInfo objects that match the source pattern and type
- Throws:
- TibjmsAdminException- if not authorized or an error occurred
- TibjmsAdminInvalidNameException- if sourcePattern or sourceType are not valid
- Since:
- EMS 4.2
 
 - 
getConnectionIdpublic long getConnectionId() Get the connection id of the TibjmsAdmin object's connection to the server.- Returns:
- the connection id of the TibjmsAdmin's connection to the server, or zero if the connection is closed or broken.
 
 - 
compactpublic boolean compact(int store, long timeout) throws TibjmsAdminException, java.lang.IllegalArgumentExceptionCompact one of the server's store files until either no more compaction can be done or timeout seconds have elapsed, whichever occurs first.
 For mstores only, a value ofSTORE_COMPACT_NOLIMITfor the timeout triggers a full re-write of the mstore with no time limit.
 WARNING: Once started, it is not possible to interrupt the compaction, and all other operations (creating new connections, sending and/or receiving messages, etc...) will be suspended during, at most, the number of seconds specified (the 'timeout' value) or, if usingSTORE_COMPACT_NOLIMIT, and for mstores only, until the mstore has been entirely re-written.- Parameters:
- store- the store file to compact, either- STORE_SYNCor- STORE_ASYNC
- timeout- time in seconds allowed for compaction (must be greater than zero) or, for mstores only,- STORE_COMPACT_NOLIMIT
- Returns:
- true if the store file was fully compacted before the timeout expired, false otherwise.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- java.lang.IllegalArgumentException- if store is invalid or timeout is not greater than zero.
 
 - 
compactpublic boolean compact(java.lang.String name, long timeout) throws TibjmsAdminException, java.lang.IllegalArgumentExceptionCompact one of the server's store files until either no more compaction can be done or timeout seconds have elapsed, whichever occurs first.
 For mstores only, a value ofSTORE_COMPACT_NOLIMITfor the timeout triggers a full re-write of the mstore with no time limit.
 WARNING: Once started, it is not possible to interrupt the compaction, and all other operations (creating new connections, sending and/or receiving messages, etc...) will be suspended during, at most, the number of seconds specified (the 'timeout' value) or, if usingSTORE_COMPACT_NOLIMIT, and for mstores only, until the mstore has been entirely re-written.- Parameters:
- name- the store file 'name' to compact.
- timeout- time in seconds allowed for compaction (must be greater than zero) or, for mstores only,- STORE_COMPACT_NOLIMIT
- Returns:
- true if the store file was fully compacted before the timeout expired, false otherwise.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- java.lang.IllegalArgumentException- if store is invalid or timeout is not greater than zero.
- Since:
- EMS 5.0
 
 - 
getStoreInfo@Deprecated public StoreInfo getStoreInfo(int type) throws TibjmsAdminException, java.lang.IllegalArgumentException Deprecated.As of EMS 6.1.0, replaced bygetStoreInfo(String)Get information about a store.- Parameters:
- type- the type of store file to summarize, either- STORE_SYNCor- STORE_ASYNC
- Returns:
- a FileStoreInfoorDbStoreInfoobject detailing configuration and usage of the store.
- Throws:
- java.lang.IllegalArgumentException- if store is invalid
- TibjmsAdminException- if not authorized or an error occurred.
 
 - 
getStoreInfopublic StoreInfo getStoreInfo(java.lang.String name) throws TibjmsAdminException Get information about a store.- Parameters:
- name- retrieve information about the store with this name
- Returns:
- a FileStoreInfoorDbStoreInfoorMStoreInfoobject detailing configuration and usage of the store.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- Since:
- EMS 5.0
 
 - 
getStorespublic java.lang.String[] getStores() throws TibjmsAdminExceptionGet a list of configured stores.- Returns:
- an array of String objects containing individual store names.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- Since:
- EMS 5.0
 
 - 
getConsumerspublic ConsumerInfo[] getConsumers() throws TibjmsAdminException Returns all consumers in the server. Returned array may be of 0 length if there are no consumers in the server. Returned consumers are not sorted and placed in the array in any order. Application may need to sort the consumers in application-specific order if required. This method is equivalent to calling methodgetConsumers(null,null,null,false,0). Refer to the documentation ofgetConsumers(Long,String,DestinationInfo,boolean,int)for detailed information.- Returns:
- array of all consumers in the server or array of 0 length.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
 
 - 
getConsumerspublic ConsumerInfo[] getConsumers(java.lang.Long connectionID, java.lang.String username, DestinationInfo destination, boolean durable, int dataFlags) throws TibjmsAdminException Returns consumers matching specified filters. Returned array may be of 0 length if there are no consumers in the server which match specified filters. This method returns only consumers matching filters specified by parametersconsumerID,usernameanddestination. Parameterdurableis applied only to topic subscribers. All filters may be omitted by specifyingnullvalue. Parameterdurablehas special meaning in that it prevents this method from returning non-durable topic consumers. It however does not affect which queue consumers are returned. Returned consumers are not sorted and placed in the array in any order. Application may need to sort the consumers in application-specific order if required.For example, calling getConsumers(null,null,null,false,0); returns all consumers known to server but does not include statistical information nor selector (if present) for each consumer. CallinggetConsumers(null,null,null,true,0); returns all queue consumers and durable topic consumers. CallingTopicInfo topic = new TopicInfo("news.*"); getConsumers(null,null,topic,true,TibjmsAdmin.GET_DETAILED_STAT);returns all durable topic consumers which subscribe to any topic matching topic "news.*". ReturnedConsumerInfoobjects will include detailed statistics about consumers if statistics are enabled in the server but will not include consumer's selector. CallingQueueInfo queue = new QueueInfo("purchase.order.>"); getConsumers(null,"OrderProcessor",queue,false, TibjmsAdmin.GET_DETAILED_STAT+TibjmsAdmin.GET_SELECTOR);returns all queue consumers created by user "OrderProcessor" and receiving messages from all queues matching name "purchase.order.>". Each consumer object will include full statistics available for consumer and consumer's selector if present.- Parameters:
- connectionID- if specified, only consumers for specified connection will be returned. Specify- nullif all consumers should be returned.
- username- if specified, only consumers for connections with specified user name will be returned. Specify- nullif all consumers should be returned.
- destination- may be set to- nullor specify- TopicInfoor- QueueInfoobject. If specified, only consumers subscribing to destinations of same type and matching this destination name will be returned.
- durable- specified that only durable topic subscribers should be returned. This does not affect returned queue consumers. If parameter- destinationspecifies QueueInfo, this parameter is ignored.
- dataFlags- specifies what information, besides common, should be included into returned ConsumerInfo objects. Value can be any combination of flags- GET_STAT,- GET_DETAILED_STATand- GET_SELECTOR. Notice- GET_DETAILED_STATsuperceeds- GET_STAT. If not specified, returned objects do not contain statistics or consumer's selector. Also notice that statistical information may not be returned even when requested if statistics are disabled in the server.
- Returns:
- array of consumers or array of 0 length.
- Throws:
- java.lang.IllegalArgumentException- if- dataFlagsparameter is invalid.
- TibjmsAdminException- if not authorized or an error occurred.
- Since:
- EMS 4.4
- See Also:
- getConsumers(),- getConsumer(long)
 
 - 
getConsumerpublic ConsumerInfo getConsumer(long consumerID) throws TibjmsAdminException Returns consumer with specified ID. Returned consumer object contains all information about consumer known to server, including all details, available statistics, and consumer's selector.- Returns:
- consumer information or nullif consumer with specified ID does not exist in the server.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- Since:
- EMS 4.4
- See Also:
- getConsumers()
 
 - 
getSubscriptionspublic SubscriptionInfo[] getSubscriptions() throws TibjmsAdminException Returns all subscriptions in the server. Returned array may be of 0 length if there is no subscription in the server. Returned subscriptions are not sorted and placed in the array in any order. Application may need to sort the subscriptions in application-specific order if required. This method is equivalent to calling methodgetSubscriptions(0, null, null). Refer to documentation ofgetSubscriptions(int, String, String)for detailed information.- Returns:
- array of all subscriptions in the server or array of 0 length.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- Since:
- EMS 8.0
- See Also:
- getSubscriptions(int, String, String)
 
 - 
getSubscriptions@Deprecated public SubscriptionInfo[] getSubscriptions(java.lang.String name, TopicInfo topic, int filterFlags) throws TibjmsAdminException Deprecated.UsegetSubscriptions(int, String, String)instead.Returns subscriptions matching specified filters. Returned array may be of 0 length if there is no subscription in the server which match specified filters. This method returns only subscriptions matching filters specified by parametersname,topicandfilterFlags. Filters may be omitted by specifyingnullor0value. Returned subscriptions are not sorted and placed in the array in any order. Application may need to sort the subscriptions in application-specific order if required.For example, calling getSubscriptions(null,null,0); returns all subscriptions known to server. CallinggetSubscriptions(null,null,TibjmsAdmin.SUBSCRIPTIONS_FILTER_DURABLE_ONLY); returns all durable (shared or not shared) subscriptions. CallingTopicInfo topic = new TopicInfo("news.*"); getSubscriptions(null,topic,TibjmsAdmin.SUBSCRIPTIONS_FILTER_DURABLE_ONLY + TibjmsAdmin.SUBSCRIPTIONS_FILTER_SHARED_ONLY);returns all shared durable subscriptions on any topic matching topic "news.*".- Parameters:
- name- specifies that only subscriptions with this name should be returned.
- topic- specifies that only subscriptions on a topic matching this topic should be returned.
- filterFlags- additional filtering. Value can be any combination of flags- SUBSCRIPTIONS_FILTER_DURABLE_ONLY,- SUBSCRIPTIONS_FILTER_NO_DURABLE,- SUBSCRIPTIONS_FILTER_SHARED_ONLYand- SUBSCRIPTIONS_FILTER_NO_SHARED.
- Returns:
- array of subscriptions or array of 0 length.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- Since:
- EMS 8.0
- See Also:
- getSubscriptions()
 
 - 
getSubscriptionspublic SubscriptionInfo[] getSubscriptions(int filterFlags, java.lang.String name, java.lang.String topicName) throws TibjmsAdminException Returns subscriptions matching specified filters. Returned array may be of 0 length if there is no subscription in the server which match specified filters. This method returns only subscriptions matching filters specified by parametersfilterFlags,nameandtopicName. Filters may be omitted by specifying0ornull. Returned subscriptions are not sorted and placed in the array in any order. Application may need to sort the subscriptions in application-specific order if required.For example, calling getSubscriptions(0, null, null); returns all subscriptions known to server. CallinggetSubscriptions(TibjmsAdmin.SUBSCRIPTIONS_FILTER_DURABLE_ONLY, null, null); returns all durable (shared or not shared) subscriptions. CallinggetSubscriptions(TibjmsAdmin.SUBSCRIPTIONS_FILTER_DURABLE_ONLY + TibjmsAdmin.SUBSCRIPTIONS_FILTER_SHARED_ONLY, null, "news.*"); returns all shared durable subscriptions on any topic matching topic "news.*".- Parameters:
- filterFlags- Value can be any combination of flags- SUBSCRIPTIONS_FILTER_DURABLE_ONLY,- SUBSCRIPTIONS_FILTER_NO_DURABLE,- SUBSCRIPTIONS_FILTER_SHARED_ONLYand- SUBSCRIPTIONS_FILTER_NO_SHARED.
- name- specifies that only subscriptions with this name should be returned.
- topicName- specifies that only subscriptions on a topic matching this topic name should be returned.
- Returns:
- array of subscriptions or array of 0 length.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- Since:
- EMS 8.1.0
- See Also:
- getSubscriptions()
 
 - 
getChannels@Deprecated public ChannelInfo[] getChannels() throws TibjmsAdminException Deprecated.As of release 8.3Returns all multicast channels in the server. Notice returned objects do not contain statistical data for the channels. UsegetChannelStatistics(java.lang.String)method to obtain statistical information about the channel.- Returns:
- array of ChannelInfo objects or array of 0 length if no channels exist.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- Since:
- EMS 5.0
 
 - 
getChannel@Deprecated public ChannelInfo getChannel(java.lang.String name) throws TibjmsAdminException Deprecated.As of release 8.3Returns the multicast channel with specified name. Notice returned object does not contain statistical data for the channel. UsegetChannelStatistics(java.lang.String)method to obtain statistical information about the channel.- Returns:
- ChannelInfo object or nullif channel with specified name does not exist in the server.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- Since:
- EMS 5.0
- See Also:
- getChannels()
 
 - 
getChannelStatistics@Deprecated public ChannelInfo getChannelStatistics(java.lang.String name) throws TibjmsAdminException Deprecated.As of release 8.3Returns statistical information about the multicast channel with specified name.- Parameters:
- name- name of the channel.
- Returns:
- ChannelInfo object or nullif channel with specified name does not exist in the server or statistics are disabled.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- TibjmsAdminInvalidNameException- if name is not a legal channel name.
- Since:
- EMS 5.0
 
 - 
getConfiguration@Deprecated public Configuration getConfiguration() throws TibjmsAdminException Deprecated.deprecated in EMS 8.1.0, usegetConfiguration(boolean)Returns the current server configuration in its entirety.- Returns:
- a Configuration object containing the current configuration of the connected server.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- Since:
- EMS 6.0
 
 - 
getConfigurationpublic Configuration getConfiguration(boolean reset) throws TibjmsAdminException Returns the current server configuration in its entirety.- Parameters:
- reset- true value causes the EMS server to reset its knowledge of any local changes.
- Returns:
- a Configuration object containing the current configuration of the connected server.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- Since:
- EMS 8.1.0
 
 - 
createConfigurationpublic Configuration createConfiguration() throws TibjmsAdminException Creates an empty configuration object that can be used to load configuration updates.- Returns:
- an empty Configuration object.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- Since:
- EMS 6.0
 
 - 
synchronizeConfigurationpublic void synchronizeConfiguration(Configuration configuration) throws TibjmsAdminException Synchronize the current server with a provided Configuration such that upon success, the server configuration will be identical to the configuration provided.- Parameters:
- configuration- Configuration object containing a proposed configuration for the server.
- Throws:
- TibjmsAdminException- if not authorized, server is locally modified or an error occurred.
- Since:
- EMS 6.0
 
 - 
forceConfigurationpublic void forceConfiguration(Configuration configuration) throws TibjmsAdminException Synchronize the current server with a provided Configuration such that upon success, the server configuration will be identical to the configuration provided. This override any local server modifications.- Parameters:
- configuration- Configuration object containing a proposed configuration for the server.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- Since:
- EMS 8.1.0
 
 - 
testConfigurationpublic void testConfiguration(Configuration configuration) throws TibjmsAdminException Test the current server with a provided Configuration to determine if the server will accept it.- Parameters:
- configuration- Configuration object containing a proposed configuration for the server.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- Since:
- EMS 8.1.0
 
 - 
isRestartRequiredpublic boolean isRestartRequired() throws TibjmsAdminExceptionQuery a server to determine whether a restart is required to complete state changes. This allows the server to be checked before issuing a restart.- Returns:
- a boolean. If true, the server requires a restart to attain a state consistent with the configuration.
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- Since:
- EMS 6.0
 
 - 
getTraceBufferpublic java.lang.String[] getTraceBuffer(boolean clear) throws TibjmsAdminExceptionReserved for internal provider use only - Do not use this method.- Throws:
- TibjmsAdminException
 
 - 
manglePasswordpublic static java.lang.String manglePassword(java.lang.String password) throws TibjmsAdminExceptionMangles a password for use with EMS.If the password is null or is already mangled, nothing is done. - Parameters:
- password- the password to mangle
- Returns:
- mangled password
- Throws:
- TibjmsAdminException- if an error has occurred.
- Since:
- EMS 8.1.0
- See Also:
- unmanglePassword(String)
 
 - 
unmanglePasswordpublic static java.lang.String unmanglePassword(java.lang.String mangledPassword) throws TibjmsAdminExceptionUnmangles a password mangled by EMS.If the password is not mangled or is null then the original password is returned. - Parameters:
- mangledPassword- the password to unmangle.
- Returns:
- the unmangled password.
- Throws:
- TibjmsAdminException- if an error has occurred.
- Since:
- EMS 8.1.0
- See Also:
- manglePassword(String)
 
 - 
activateDRSitepublic void activateDRSite() throws TibjmsAdminExceptionInform the FTL servers at the Disaster Recovery (DR) site that their site of operations is now the new primary site. This call is only relevant when using FTL stores with DR configured.- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- Since:
- EMS 10.2.0
 
 - 
setupDRSitepublic void setupDRSite(java.lang.String urlList) throws TibjmsAdminExceptionEstablish a new Disaster Recovery (DR) site after the original DR site has become the new primary site. Must be called on the active EMS server of the FTL server cluster at the designated new DR site. This call is only relevant when using FTL stores with DR configured.- Parameters:
- urlList- the pipe-separated list of URLs of the FTL server cluster at the primary site. Each URL should be of the form: <FTL server name>@<host>:<port>
- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- Since:
- EMS 10.2.0
 
 - 
saveAndExitpublic void saveAndExit() throws TibjmsAdminExceptionWhen using in-memory replication with FTL stores, save the state of each server to disk and exit. Call this method when all servers have to be shut down. You need to alter the configuration of each of the servers to load its saved state upon restart. This call is only relevant when using FTL stores with in-memory replication configured.- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- Since:
- EMS 10.2.0
 
 - 
loadLicensepublic void loadLicense() throws TibjmsAdminExceptionManually load configured server license.- Throws:
- TibjmsAdminException- if not authorized or an error occurred.
- Since:
- EMS 10.4.0
 
 
- 
 
-