JBoss EJB client 1.0.3.Final

org.jboss.ejb.client
Interface EJBClientConfiguration.ClusterConfiguration

All Superinterfaces:
EJBClientConfiguration.CommonConnectionCreationConfiguration
Enclosing interface:
EJBClientConfiguration

public static interface EJBClientConfiguration.ClusterConfiguration
extends EJBClientConfiguration.CommonConnectionCreationConfiguration

Holds cluster specific configurations


Method Summary
 String getClusterName()
          Returns the cluster name.
 ClusterNodeSelector getClusterNodeSelector()
          Returns the ClusterNodeSelector to be used for this cluster.
 long getMaximumAllowedConnectedNodes()
          Returns the maximum number of nodes which are allowed to be connected at a given time, in this cluster
 EJBClientConfiguration.ClusterNodeConfiguration getNodeConfiguration(String nodeName)
          Returns the configuration corresponding to the nodeName in this cluster.
 Iterator<EJBClientConfiguration.ClusterNodeConfiguration> getNodeConfigurations()
          Returns the configurations of individual nodes in this cluster.
 
Methods inherited from interface org.jboss.ejb.client.EJBClientConfiguration.CommonConnectionCreationConfiguration
getCallbackHandler, getChannelCreationOptions, getConnectionCreationOptions, getConnectionTimeout
 

Method Detail

getClusterName

String getClusterName()
Returns the cluster name. This method must not return null

Returns:

getMaximumAllowedConnectedNodes

long getMaximumAllowedConnectedNodes()
Returns the maximum number of nodes which are allowed to be connected at a given time, in this cluster

Returns:

getClusterNodeSelector

ClusterNodeSelector getClusterNodeSelector()
Returns the ClusterNodeSelector to be used for this cluster. This method can return null, in which case the cluster will use some default ClusterNodeSelector

Returns:

getNodeConfigurations

Iterator<EJBClientConfiguration.ClusterNodeConfiguration> getNodeConfigurations()
Returns the configurations of individual nodes in this cluster. If there are no such node specific configurations, then this method returns an empty Iterator

Returns:

getNodeConfiguration

EJBClientConfiguration.ClusterNodeConfiguration getNodeConfiguration(String nodeName)
Returns the configuration corresponding to the nodeName in this cluster. Returns null if no such configuration exists

Parameters:
nodeName - The name of the node in this cluster
Returns:

JBoss EJB client 1.0.3.Final

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.