Package org.apache.drill.exec.work.foreman

Examples of org.apache.drill.exec.work.foreman.FragmentStatusListener


    listeners.remove(handle);
  }
 
  public void addFragmentStatusListener(FragmentHandle handle, FragmentStatusListener listener) throws RpcException{
    logger.debug("Adding framgent status listener for handle {}.", handle);
    FragmentStatusListener old = listeners.putIfAbsent(handle.getQueryId(), listener);
    if(old != null) throw new RpcException("Failure.  The provided handle already exists in the listener pool.  You need to remove one listener before adding another.");
  }
View Full Code Here


    FragmentStatusListener old = listeners.putIfAbsent(handle.getQueryId(), listener);
    if(old != null) throw new RpcException("Failure.  The provided handle already exists in the listener pool.  You need to remove one listener before adding another.");
  }
 
  public void status(FragmentStatus status){
    FragmentStatusListener l = listeners.get(status.getHandle().getQueryId());
    if(l == null){
     
      logger.error("A fragment message arrived but there was no registered listener for that message for handle {}.", status.getHandle());
      return;
    }else{
      l.statusUpdate(status);
    }
  }
View Full Code Here

    listeners.remove(queryId);
  }

  public void setFragmentStatusListener(QueryId queryId, FragmentStatusListener listener) throws RpcException {
    logger.debug("Adding fragment status listener for queryId {}.", queryId);
    FragmentStatusListener old = listeners.putIfAbsent(queryId, listener);
    if (old != null)
      throw new RpcException(
          "Failure.  The provided handle already exists in the listener pool.  You need to remove one listener before adding another.");
  }
View Full Code Here

      throw new RpcException(
          "Failure.  The provided handle already exists in the listener pool.  You need to remove one listener before adding another.");
  }

  public void status(FragmentStatus status) {
    FragmentStatusListener l = listeners.get(status.getHandle().getQueryId());
    if (l == null) {

      logger.error("A fragment message arrived but there was no registered listener for that message for handle {}.",
          status.getHandle());
      return;
    } else {
      l.statusUpdate(status);
    }
  }
View Full Code Here

    listeners.remove(queryId);
  }

  public void setFragmentStatusListener(QueryId queryId, FragmentStatusListener listener) throws RpcException {
    logger.debug("Adding fragment status listener for queryId {}.", queryId);
    FragmentStatusListener old = listeners.putIfAbsent(queryId, listener);
    if (old != null) {
      throw new RpcException(
          "Failure.  The provided handle already exists in the listener pool.  You need to remove one listener before adding another.");
    }
  }
View Full Code Here

          "Failure.  The provided handle already exists in the listener pool.  You need to remove one listener before adding another.");
    }
  }

  public void status(FragmentStatus status) {
    FragmentStatusListener l = listeners.get(status.getHandle().getQueryId());
    if (l == null) {

      logger.error("A fragment message arrived but there was no registered listener for that message for handle {}.",
          status.getHandle());
      return;
    } else {
      l.statusUpdate(status);
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.drill.exec.work.foreman.FragmentStatusListener

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.