JBoss EJB client 1.0.5.Final

org.jboss.ejb.client
Interface DeploymentNodeSelector


public interface DeploymentNodeSelector

A selector which selects and returns a node, from among the passed eligible nodes, that can handle a specific deployment within a EJB client context. Typical usage of DeploymentNodeSelector involves load balancing calls to multiple nodes which can all handle the same deployment. This allows the application to have a deterministic node selection policy while dealing with multiple nodes with same deployment.

Author:
Jaikiran Pai

Method Summary
 String selectNode(String[] eligibleNodes, String appName, String moduleName, String distinctName)
          Selects and returns a node from among the eligibleNodes to handle the invocation on a deployment represented by the passed appName, moduleName and distinctName combination.
 

Method Detail

selectNode

String selectNode(String[] eligibleNodes,
                  String appName,
                  String moduleName,
                  String distinctName)
Selects and returns a node from among the eligibleNodes to handle the invocation on a deployment represented by the passed appName, moduleName and distinctName combination. Implementations of this method must not return null or any other node name which isn't in the eligibleNodes

Parameters:
eligibleNodes - The eligible nodes which can handle the deployment. Will not be empty.
appName - The app name of the deployment
moduleName - The module name of the deployment
distinctName - The distinct name of the deployment
Returns:

JBoss EJB client 1.0.5.Final

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