1 22 package org.jboss.ejb3.test.clusteredsession; 23 24 import org.jboss.ha.framework.interfaces.LoadBalancePolicy; 25 import org.jboss.ha.framework.interfaces.HARMIClient; 26 import org.jboss.ha.framework.interfaces.FamilyClusterInfo; 27 28 import org.jboss.invocation.Invocation; 29 30 34 public class BogusPolicy implements LoadBalancePolicy 35 { 36 public void init (HARMIClient father) 37 { 38 throw new RuntimeException ("Bogus implementation!"); 39 } 40 41 public Object chooseTarget (FamilyClusterInfo clusterFamily) 42 { 43 throw new RuntimeException ("Bogus implementation!"); 44 } 45 public Object chooseTarget (FamilyClusterInfo clusterFamily, Invocation routingDecision) 46 { 47 throw new RuntimeException ("Bogus implementation!"); 48 } 49 50 } 51 | Popular Tags |