Broker 10.15 | webMethods Broker Documentation | webMethods Broker Administration Java API Programmer’s Guide | Managing Broker Clusters | Using Clusters | Removing a Broker from a Cluster
 
Removing a Broker from a Cluster
The BrokerAdminClient.leaveCluster method lets you remove the Broker to which your BrokerAdminClient is connected from its cluster. When a Broker leaves a cluster, communication must take place between the Broker being removed and the other Brokers in the cluster.
You must provide the following arguments to this method:
*The number of milliseconds to wait for the operation to complete. You can specify -1 to indicate you do not wish the operation to be subject to a time-out.
*An indication of whether or not the operation should be forced to complete, even if communication with the other Brokers in the cluster exceeds the time limit.
You can use the BrokerAdminClient.removeBrokerFromCluster method to remove a Broker from a cluster. This function will not wait for the communication between the other Brokers in the cluster to complete, but returns as soon as the removal process is initiated.
You must provide the following arguments to this method:
*The name of the Broker to be removed from the cluster.
*The name of the Broker host where the Broker is executing.