Examples of IUniqueObject


Examples of net.alteiar.shared.IUniqueObject

  public final void received(Connection conn, Object obj) {
    try {
      if (obj instanceof MessageReadyToReceive) {
        // When we are sending object we wait for ready message before
        // sending other
        IUniqueObject reply = messageReadyReceived(conn,
            (MessageReadyToReceive) obj);
        sendTCPMessage(conn, reply);

      } else if (obj instanceof MessageCreateValue) {
        MessageCreateValue msg = (MessageCreateValue) obj;
        IUniqueObject reply = messageObjectReceived(msg);
        sendTCPMessage(conn, reply);
      } else if (obj instanceof MessageSplitEnd) {
        messageObjectEndReceived((MessageSplitEnd) obj);
      } else if (obj instanceof RequestObject) {
        UniqueID id = ((RequestObject) obj).getGuid();
View Full Code Here

Examples of net.alteiar.shared.IUniqueObject

    }
  }

  private final IUniqueObject messageReadyReceived(Connection conn,
      MessageReadyToReceive obj) {
    IUniqueObject reply = null;
    Encaps sended = sendingObject.get(new SendingKey(obj.getId(), conn));

    if (sended == null) {
      System.out.println("impossible d'envoyer " + obj.getId());
    }
View Full Code Here

Examples of net.alteiar.shared.IUniqueObject

    ChunkObjectReceived received = receivingObject.remove(obj.getId());

    String classname = obj.getClassname();
    received.setClassname(classname);

    IUniqueObject bean = received.getBean(getKryo());

    objectReceived(bean);
  }
View Full Code Here

Examples of net.alteiar.shared.IUniqueObject

      return (toSend.isFullyReceived())
          && (currentChunk >= toSend.getChunkCount());
    }

    public IUniqueObject getNextChunk() {
      IUniqueObject next = toSend.getChunk(currentChunk);
      currentChunk++;

      return next;
    }
View Full Code Here

Examples of net.alteiar.shared.IUniqueObject

    public IUniqueObject getEndChunk() {
      return this.send.getEndChunk();
    }

    public IUniqueObject getNextChunk() {
      IUniqueObject chunk = this.send.getChunk(currentChunk);
      currentChunk++;

      return chunk;
    }
View Full Code Here

Examples of net.alteiar.shared.IUniqueObject

  private void sendTCPMessage(final Connection conn, final Encaps send) {
    ThreadPoolUtils.getServerPool().execute(new MyRunnable() {
      @Override
      public void run() {
        IUniqueObject obj = send.getNextChunk();

        realSend(conn, obj);
      }

      @Override
View Full Code Here

Examples of net.alteiar.shared.IUniqueObject

      return (toSend.isFullyReceived())
          && (currentChunk >= toSend.getChunkCount());
    }

    public IUniqueObject getNextChunk() {
      IUniqueObject next = toSend.getChunk(currentChunk);
      currentChunk++;

      return next;
    }
View Full Code Here

Examples of net.alteiar.shared.IUniqueObject

  private void sendTCPMessage(final Connection conn, final Encaps send) {
    ThreadPoolUtils.getServerPool().execute(new MyRunnable() {
      @Override
      public void run() {
        IUniqueObject obj = send.getNextChunk();

        realSend(conn, obj);
      }

      @Override
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.