Package org.jboss.cache.marshall

Examples of org.jboss.cache.marshall.VersionAwareMarshaller


   public VersionAwareMarshaller getMarshaller()
   {
      if (marshaller_ == null)
      {
         marshaller_ = new VersionAwareMarshaller(getRegionManager(), inactiveOnStartup, useRegionBasedMarshalling, getReplicationVersion());
      }
      return marshaller_;
   }
View Full Code Here


      buddyGroupsIParticipateIn.put(newGroup.getGroupName(), newGroup);

      // Integrate state transfer from the data owner of the buddy group
      Fqn integrationBase = new Fqn(BuddyManager.BUDDY_BACKUP_SUBTREE_FQN,
              newGroup.getGroupName());
      VersionAwareMarshaller marshaller = null;
      if (cache.getUseRegionBasedMarshalling())
      {
         marshaller = cache.getMarshaller();
      }

      for (Iterator it = state.entrySet().iterator(); it.hasNext();)
      {
         Map.Entry entry = (Map.Entry) it.next();
         Fqn fqn = (Fqn) entry.getKey();
         String fqnS = fqn.toString();
         if (marshaller == null || !marshaller.isInactive(fqn.toString()))
         {
            ClassLoader cl = (marshaller == null) ? null : marshaller.getClassLoader(fqnS);
            Fqn integrationRoot = new Fqn(integrationBase, fqn);
            cache._setState((byte[]) entry.getValue(), integrationRoot, cl);
         }
      }
   }
View Full Code Here

   public void testConstructionOrder1()
   {
      Class<Marshaller> componentToTest = Marshaller.class;
      Marshaller m = cr.getOrCreateComponent(null, componentToTest);
      assert m instanceof VersionAwareMarshaller;
      VersionAwareMarshaller vam = (VersionAwareMarshaller) m;
      vam.initReplicationVersions();
      m = (Marshaller) TestingUtil.extractField(vam, "defaultMarshaller");
      assert m instanceof CacheMarshaller210;
   }
View Full Code Here

   {
      Class<Marshaller> componentToTest = Marshaller.class;
      configuration.setMarshallerClass(CacheMarshaller200.class.getName());
      Marshaller m = cr.getOrCreateComponent(null, componentToTest);
      assert m instanceof VersionAwareMarshaller;
      VersionAwareMarshaller vam = (VersionAwareMarshaller) m;
      vam.initReplicationVersions();
      m = (Marshaller) TestingUtil.extractField(vam, "defaultMarshaller");
      assert m instanceof CacheMarshaller200;
   }
View Full Code Here

   public VersionAwareMarshaller getMarshaller()
   {
      if (marshaller_ == null)
      {
         marshaller_ = new VersionAwareMarshaller(getRegionManager(), inactiveOnStartup, useRegionBasedMarshalling, getReplicationVersion());
      }
      return marshaller_;
   }
View Full Code Here

   public VersionAwareMarshaller getMarshaller()
   {
      if (marshaller_ == null)
      {
         marshaller_ = new VersionAwareMarshaller(getRegionManager(), inactiveOnStartup, useRegionBasedMarshalling, getReplicationVersion());
      }
      return marshaller_;
   }
View Full Code Here

      buddyGroupsIParticipateIn.put(newGroup.getGroupName(), newGroup);

      // Integrate state transfer from the data owner of the buddy group
      Fqn integrationBase = new Fqn(BuddyManager.BUDDY_BACKUP_SUBTREE_FQN,
              newGroup.getGroupName());
      VersionAwareMarshaller marshaller = null;
      if (cache.getUseRegionBasedMarshalling())
      {
         marshaller = cache.getMarshaller();
      }

      for (Iterator it = state.entrySet().iterator(); it.hasNext();)
      {
         Map.Entry entry = (Map.Entry) it.next();
         Fqn fqn = (Fqn) entry.getKey();
         String fqnS = fqn.toString();
         if (marshaller == null || !marshaller.isInactive(fqn.toString()))
         {
            ClassLoader cl = (marshaller == null) ? null : marshaller.getClassLoader(fqnS);
            Fqn integrationRoot = new Fqn(integrationBase, fqn);
            cache._setState((byte[]) entry.getValue(), integrationRoot, cl);
         }
      }
   }
View Full Code Here

   public VersionAwareMarshaller getMarshaller()
   {
      if (marshaller_ == null)
      {
         marshaller_ = new VersionAwareMarshaller(getRegionManager(), inactiveOnStartup, useRegionBasedMarshalling, getReplicationVersion());
      }
      return marshaller_;
   }
View Full Code Here

TOP

Related Classes of org.jboss.cache.marshall.VersionAwareMarshaller

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.