org.jboss.ejb3.proxy.clustered.familyname
Interface ClusterFamilyNamePolicy<T>

All Known Implementing Classes:
InvokerLocatorProtocolClusterFamilyNamePolicy, InvokerLocatorProtocolPortClusterFamilyNamePolicy

public interface ClusterFamilyNamePolicy<T>

Pluggable policy for creating a cross-cluster consistent but cross-deployment unique name for the clustering information associated with a service. The fundamental purpose of this policy is to create strings that can be passed to FamilyWrapper.FamilyWrapper(String, java.util.List) and ClusteringTargetsRepository.initTarget(String, java.util.List).

The design intent of this interface is that different implementations will handle the localTarget param passed to getClusterFamilyName(String, Object, String) differently.

Version:
$Revision: $
Author:
Brian Stansberry

Method Summary
 String getClusterFamilyName(String serviceName, T localTarget, String partitionName)
          Gets a name for the clustering information identified by the given parameters.
 

Method Detail

getClusterFamilyName

String getClusterFamilyName(String serviceName,
                            T localTarget,
                            String partitionName)
Gets a name for the clustering information identified by the given parameters. Invoking this method on different nodes in the cluster, with the same serviceName and the same partitionName but different but logically related localTarget values must result in the same return value.

Parameters:
serviceName - the name of the service
localTarget - this node's cluster target for the service
partitionName - the name of the HAPartition
Returns:
the cluster family name.


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.