Package org.jboss.remoting.marshal.compress

Examples of org.jboss.remoting.marshal.compress.CompressingMarshaller$SelfCleaningGZipOutputStream



   public void testSerializable() throws IOException, ClassNotFoundException
   {
      MarshalFactory.addMarshaller(CompressingMarshaller.DATATYPE,
                                   new CompressingMarshaller(),
                                   new CompressingUnMarshaller());

      marshaller = MarshalFactory.getMarshaller(CompressingMarshaller.DATATYPE);
      unmarshaller = MarshalFactory.getUnMarshaller(CompressingMarshaller.DATATYPE);
      runOneTest();
View Full Code Here


   public void testWrappedSerializable() throws IOException, ClassNotFoundException
   {
      String datatype = "compressedSerializable";
      MarshalFactory.addMarshaller(datatype,
                                   new CompressingMarshaller(MarshalFactory.getMarshaller(SerializableMarshaller.DATATYPE)),
                                   new CompressingUnMarshaller(MarshalFactory.getUnMarshaller(SerializableUnMarshaller.DATATYPE)));

      marshaller = MarshalFactory.getMarshaller(datatype);
      unmarshaller = MarshalFactory.getUnMarshaller(datatype);
      runOneTest();
View Full Code Here

   public void testHTTP() throws IOException, ClassNotFoundException
   {
      String datatype = "compressedHTTP";
      MarshalFactory.addMarshaller(datatype,
                                   new CompressingMarshaller(MarshalFactory.getMarshaller(HTTPMarshaller.DATATYPE)),
                                   new CompressingUnMarshaller(MarshalFactory.getUnMarshaller(HTTPUnMarshaller.DATATYPE)));

      marshaller = MarshalFactory.getMarshaller(datatype);
      unmarshaller = MarshalFactory.getUnMarshaller(datatype);
      runOneTest();
View Full Code Here

   public void testInvocations()
   {
      try
      {
         Thread.sleep(5000); // Wait for server to start.
         MarshalFactory.addMarshaller("compress", new CompressingMarshaller(), new CompressingUnMarshaller());
         String locatorURI = "socket://localhost:5400/?datatype=compress";
         InvokerLocator locator = new InvokerLocator(locatorURI);
         Client remotingClient = new Client(locator);
         remotingClient.connect();
         String request1 = "First request";
View Full Code Here

      {
         public void run()
         {
            try
            {
               MarshalFactory.addMarshaller("compress", new CompressingMarshaller(), new CompressingUnMarshaller());
               String locatorURI = "socket://localhost:5400/?datatype=compress";
               InvokerLocator locator = new InvokerLocator(locatorURI);
               System.out.println("Starting remoting server with locator uri of: " + locatorURI);
               Connector connector = new Connector();
               connector.setInvokerLocator(locator.getLocatorURI());
View Full Code Here

         String pattern = "[%d{ABSOLUTE}] [%t] %5p (%F:%L) - %m%n";
         PatternLayout layout = new PatternLayout(pattern);
         ConsoleAppender consoleAppender = new ConsoleAppender(layout);
         Logger.getRootLogger().addAppender(consoleAppender);
        
         Marshaller marshaller = new CompressingMarshaller(new HTTPMarshaller());
         UnMarshaller unmarshaller = new CompressingUnMarshaller(new HTTPUnMarshaller());
         MarshalFactory.addMarshaller("compressedHttp", marshaller, unmarshaller);
        
         StringBuffer sb = new StringBuffer();
         for (int i = 0; i < 200; i++)
View Full Code Here

         PatternLayout layout = new PatternLayout(pattern);
         ConsoleAppender consoleAppender = new ConsoleAppender(layout);
         Logger.getRootLogger().addAppender(consoleAppender);
        
         MarshalFactory.addMarshaller(CompressingMarshaller.DATATYPE,
                                      new CompressingMarshaller(),
                                      new CompressingUnMarshaller());
      }
   }
View Full Code Here

      {
         public void run()
         {
            try
            {
               MarshalFactory.addMarshaller("compress", new CompressingMarshaller(), new CompressingUnMarshaller());
               String locatorURI = "socket://localhost:5400/?datatype=compress";
               InvokerLocator locator = new InvokerLocator(locatorURI);
               System.out.println("Starting remoting server with locator uri of: " + locatorURI);
               Connector connector = new Connector();
               connector.setInvokerLocator(locator.getLocatorURI());
View Full Code Here

         Logger.getLogger("org.jboss.test.remoting").setLevel(Level.INFO);
         String pattern = "[%d{ABSOLUTE}] [%t] %5p (%F:%L) - %m%n";
         PatternLayout layout = new PatternLayout(pattern);
         ConsoleAppender consoleAppender = new ConsoleAppender(layout);
         Logger.getRootLogger().addAppender(consoleAppender);        
         MarshalFactory.addMarshaller("compress", new CompressingMarshaller(), new CompressingUnMarshaller());
      }
   }
View Full Code Here

TOP

Related Classes of org.jboss.remoting.marshal.compress.CompressingMarshaller$SelfCleaningGZipOutputStream

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.