Class RecoveryTargetSelector


  • public class RecoveryTargetSelector
    extends java.lang.Object
    Uses a specified algorithm to determine a member that will be selected to handle recovery operations on failure of a member. The algorithms are specified through a RecoverySelectorMode object that specifies typ safe enums such as SIMPLESELECT indicating a simple ordered selection algorithm and HOSTSELECT indicating a selection algorithm that ensures that the recovery target is always on a different host from a single host.
    Version:
    $Revision$
    Author:
    Shreedhar Ganapathy Date: Jan 20, 2004
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean resolveRecoveryTarget​(RecoveryTargetSelector.RecoverySelectorMode mode, java.util.List<com.sun.enterprise.ee.cms.core.GMSMember> members, java.lang.String failedMemberToken, GMSContext ctx)
      Uses a resolution algorithm to determine whether the member this process represents is indeed responsible for performing recovery operations.
      static void setRecoverySelectionState​(java.lang.String recovererMemberToken, java.lang.String failedMemberToken, java.lang.String groupName)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • resolveRecoveryTarget

        public static boolean resolveRecoveryTarget​(RecoveryTargetSelector.RecoverySelectorMode mode,
                                                    java.util.List<com.sun.enterprise.ee.cms.core.GMSMember> members,
                                                    java.lang.String failedMemberToken,
                                                    GMSContext ctx)
        Uses a resolution algorithm to determine whether the member this process represents is indeed responsible for performing recovery operations.
        Parameters:
        mode - - as specified by the RecoverySelectorMode
        members - - a vector of members from a view that existed prior to the failure. Ideally, this view contains the failedMemberToken.
        failedMemberToken - - failed member's identity token
        ctx - - The GMSContext pertaining to the failed member;s group.
        Returns:
        boolean
      • setRecoverySelectionState

        public static void setRecoverySelectionState​(java.lang.String recovererMemberToken,
                                                     java.lang.String failedMemberToken,
                                                     java.lang.String groupName)