Examples of JBossMarshaller


Examples of org.infinispan.marshall.core.JBossMarshaller

         }
      }

      public static String getStringObject(byte[] bytes) {
         try {
            Marshaller sm = new JBossMarshaller();
            return (String) sm.objectFromByteBuffer(bytes);
         } catch (Exception e) {
            throw new RuntimeException(e);
         }
      }
View Full Code Here

Examples of org.infinispan.marshall.jboss.JBossMarshaller

         return super.visitPutKeyValueCommand(ctx, command);
      }

      private String unmarshall(Object key) throws Exception {
         Marshaller marshaller = new JBossMarshaller();
         return (String) marshaller.objectFromByteBuffer(((ByteArrayKey) key).getData());
      }
View Full Code Here

Examples of org.infinispan.marshall.jboss.JBossMarshaller

   private final JBossMarshaller defaultMarshaller;
   private ClassLoader loader;
   private RemoteCommandsFactory remoteCommandsFactory;

   public VersionAwareMarshaller() {
      defaultMarshaller = new JBossMarshaller();
   }
View Full Code Here

Examples of org.infinispan.marshall.jboss.JBossMarshaller

   private final JBossMarshaller defaultMarshaller;
   private ClassLoader loader;
   private RemoteCommandFactory remoteCommandFactory;

   public VersionAwareMarshaller() {
      defaultMarshaller = new JBossMarshaller();
   }
View Full Code Here

Examples of org.infinispan.marshall.jboss.JBossMarshaller

   private final JBossMarshaller defaultMarshaller;
   private ClassLoader loader;
   private RemoteCommandsFactory remoteCommandsFactory;

   public VersionAwareMarshaller() {
      defaultMarshaller = new JBossMarshaller();
   }
View Full Code Here

Examples of org.infinispan.marshall.jboss.JBossMarshaller

   private final JBossMarshaller defaultMarshaller;
   private ClassLoader loader;
   private RemoteCommandsFactory remoteCommandsFactory;

   public VersionAwareMarshaller() {
      defaultMarshaller = new JBossMarshaller();
   }
View Full Code Here

Examples of org.infinispan.marshall.jboss.JBossMarshaller

            throw new SuspectException("Simulated suspicion");
         }
      }

      private String unmarshall(Object key) throws Exception {
         Marshaller marshaller = new JBossMarshaller();
         return (String) marshaller.objectFromByteBuffer(((ByteArrayKey) key).getData());
      }
View Full Code Here

Examples of org.infinispan.marshall.jboss.JBossMarshaller

      remoteCache.put(key, "v");
      assertOnlyServerHit(getAddress(hotRodServer2));
      TcpTransportFactory tcpTp = (TcpTransportFactory) TestingUtil.extractField(remoteCacheManager, "transportFactory");

      Marshaller sm = new JBossMarshaller();
      TcpTransport transport = (TcpTransport) tcpTp.getTransport(sm.objectToByteBuffer(key, 64));
      try {
      assertEquals(transport.getServerAddress(), new InetSocketAddress("localhost", hotRodServer2.getPort()));
      } finally {
         tcpTp.releaseTransport(transport);
      }
View Full Code Here

Examples of org.infinispan.marshall.jboss.JBossMarshaller

   public static class ByteKeyGenerator implements KeyGenerator {
      Random r = new Random();
      @Override
      public Object getKey() {
         String result = String.valueOf(r.nextLong());
         Marshaller sm = new JBossMarshaller();
         try {
            return sm.objectToByteBuffer(result, 64);
         } catch (IOException e) {
            throw new RuntimeException(e);
         } catch (InterruptedException e) {
            throw new RuntimeException(e);
         }
View Full Code Here

Examples of org.infinispan.marshall.jboss.JBossMarshaller

         }
      }

      public static String getStringObject(byte[] bytes) {
         try {
            Marshaller sm = new JBossMarshaller();
            return (String) sm.objectFromByteBuffer(bytes);
         } catch (Exception e) {
            throw new RuntimeException(e);
         }
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.