Examples of TransportException


Examples of org.infinispan.client.hotrod.exceptions.TransportException

   @Override
   public void flush() {
      try {
         lastWrite.await();
      } catch (InterruptedException e) {
         throw new TransportException(e);
      }
   }
View Full Code Here

Examples of org.infinispan.client.hotrod.exceptions.TransportException

         socket = socketChannel.socket();
         socket.setTcpNoDelay(transportFactory.isTcpNoDelay());
      } catch (IOException e) {
         String message = "Could not connect to server: " + serverAddress;
         log.error(message, e);
         throw new TransportException(message, e);
      }
   }
View Full Code Here

Examples of org.infinispan.client.hotrod.exceptions.TransportException

         VHelper.writeVInt(vInt, socket.getOutputStream());
         if (log.isTraceEnabled())
            log.trace("VInt wrote " + vInt);
        
      } catch (IOException e) {
         throw new TransportException(e);
      }
   }
View Full Code Here

Examples of org.infinispan.client.hotrod.exceptions.TransportException

         VHelper.writeVLong(l, socket.getOutputStream());
         if (log.isTraceEnabled())
            log.trace("VLong wrote " + l);       

      } catch (IOException e) {
         throw new TransportException(e);
      }
   }
View Full Code Here

Examples of org.infinispan.client.hotrod.exceptions.TransportException

         long result = VHelper.readVLong(socket.getInputStream());
         if (log.isTraceEnabled())
            log.trace("VLong read " + result);
         return result;
      } catch (IOException e) {
         throw new TransportException(e);
      }
   }
View Full Code Here

Examples of org.infinispan.client.hotrod.exceptions.TransportException

         int result = VHelper.readVInt(socket.getInputStream());
         if (log.isTraceEnabled())
            log.trace("VInt read " + result);
         return result;
      } catch (IOException e) {
         throw new TransportException(e);
      }
   }
View Full Code Here

Examples of org.infinispan.client.hotrod.exceptions.TransportException

      try {
         socket.getOutputStream().write(toAppend);
         if (log.isTraceEnabled())
            log.trace("Wrote " + toAppend.length + " bytes");
      } catch (IOException e) {
         throw new TransportException("Problems writing data to stream", e);
      }
   }
View Full Code Here

Examples of org.infinispan.client.hotrod.exceptions.TransportException

         socket.getOutputStream().write(toWrite);
         if (log.isTraceEnabled())
            log.trace("Wrote byte " + toWrite);

      } catch (IOException e) {
         throw new TransportException("Problems writing data to stream", e);
      }
   }
View Full Code Here

Examples of org.infinispan.client.hotrod.exceptions.TransportException

         socket.getOutputStream().flush();
         if (log.isTraceEnabled())
            log.trace("Flushed socket: " + socket);

      } catch (IOException e) {
         throw new TransportException(e);
      }
   }
View Full Code Here

Examples of org.infinispan.client.hotrod.exceptions.TransportException

   public short readByte() {
      int resultInt;
      try {
         resultInt = socket.getInputStream().read();
      } catch (IOException e) {
         throw new TransportException(e);
      }
      if (resultInt == -1) {
         throw new TransportException("End of stream reached!");
      }
      return (short) resultInt;
   }
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.