Package org.jboss.aspects.remoting

Examples of org.jboss.aspects.remoting.FamilyWrapper


         catch (LoadBalancePolicyNotRegisteredException e){}
        
         lbPolicy = (LoadBalancePolicy)Thread.currentThread().getContextClassLoader().loadClass(policyClass)
               .newInstance();
      }
      wrapper = new FamilyWrapper(proxyFamilyName, hatarget.getReplicants());
     
      drm.registerListener(proxyFamilyName, this);
     
      super.start();
     
View Full Code Here


   public void testUseAopLoadBalancePolicy() throws Throwable
   {
      testCount++;
     
      MockAopLoadBalancePolicy lb = new MockAopLoadBalancePolicy();
      FamilyWrapper fw = createFamilyWrapper("test" + testCount, 1);
      MockInvocation invocation = setupInvocation(lb, fw);
      MockNextInterceptor next = (MockNextInterceptor) invocation.getNextInterceptor();
      next.setReturnValue("a");
     
      assertEquals("a", invocation.invokeNext());
View Full Code Here

   private FamilyWrapper createFamilyWrapper(String familyName, int numTargets) throws Exception
   {
      List<InvokerLocator> targets = new ArrayList<InvokerLocator>(numTargets);
      for (int i = 0; i < numTargets; i++)
         targets.add(getInvokerLocator(i));
      return new FamilyWrapper(familyName, targets);
   }
View Full Code Here

  
   private void invocationMetaDataTest(Object originTarget) throws Throwable
   {
      testCount++;
      List<String> targets = Arrays.asList(TARGETS);
      FamilyWrapper wrapper = new FamilyWrapper(FAMILY_BASE + testCount, targets);
     
      MockNextInterceptor interceptor = new MockNextInterceptor();
      interceptor.setReturnValue(OK);
     
      Object oid = new Object();
View Full Code Here

         catch (LoadBalancePolicyNotRegisteredException e){}
        
         lbPolicy = (LoadBalancePolicy)Thread.currentThread().getContextClassLoader().loadClass(policyClass)
               .newInstance();
      }
      wrapper = new FamilyWrapper(proxyFamilyName, hatarget.getReplicants());
     
      drm.registerListener(proxyFamilyName, this);
     
      super.start();
   }
View Full Code Here

         catch (LoadBalancePolicyNotRegisteredException e){}
        
         lbPolicy = (LoadBalancePolicy)Thread.currentThread().getContextClassLoader().loadClass(policyClass)
               .newInstance();
      }
      wrapper = new FamilyWrapper(proxyFamilyName, hatarget.getReplicants());
     
      drm.registerListener(proxyFamilyName, this);
     
      super.start();
     
View Full Code Here

            + " class name is required, but is not specified; improperly bound reference in JNDI";
     
      ClassLoader tccl = Thread.currentThread().getContextClassLoader();
      LoadBalancePolicy loadBalancePolicy = (LoadBalancePolicy) tccl.loadClass(lbpClass).newInstance();
     
      FamilyWrapper wrapper = getFamilyWrapper(name, refAddrs);
     
      Class<?>[] interfaces = {this.getProxyFactoryClass()};
      Interceptor[] interceptors = { IsLocalProxyFactoryInterceptor.singleton,
                                     ClusterChooserInterceptor.singleton,
                                     InvokeRemoteInterceptor.singleton };
View Full Code Here

         }
      }
     
      log.debug("Creating " + FamilyWrapper.class.getSimpleName() + " for family " +
                familyName + " using targets " + targets);
      return new FamilyWrapper(familyName, targets);
   }
View Full Code Here

      {
         throw new RuntimeException("Could not load loadbalancer policy " + lbpClass
               + " while creating a proxy to remote proxyfactory", e);
      }

      FamilyWrapper wrapper = bci.getFamilyWrapper();
      FamilyClusterInfo familyClusterInfo = wrapper.get();
      log.debug("Remote proxyfactory for key " + proxyFactoryKey + " will be associated with family name "
            + familyClusterInfo.getFamilyName() + " view id " + familyClusterInfo.getCurrentViewId()
            + " with available targets " + familyClusterInfo.getTargets());

      Class<ProxyFactory>[] interfaces = this.getAllProxyFactoryInterfaces((Class<ProxyFactory>) proxyFactory
View Full Code Here

      {
         throw new RuntimeException("Could not create loadbalancer policy instance for " + lbpClass
               + " while creating a proxy to remote proxyfactory", e);
      }
      // family wrapper (which contains the latest information of the cluster topology)
      FamilyWrapper wrapper = clusteringInfo.getFamilyWrapper();
      // the interfaces to be exposed by the proxy for the proxyfactory
      Class<?>[] interfaces = this.getAllProxyFactoryInterfaces((Class<ProxyFactory>) proxyFactory.getClass());
      // interceptors to the proxy
      Interceptor[] interceptors =
      {IsLocalProxyFactoryInterceptor.singleton, ClusterChooserInterceptor.singleton, InvokeRemoteInterceptor.singleton};
View Full Code Here

TOP

Related Classes of org.jboss.aspects.remoting.FamilyWrapper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.