All Downloads are FREE. Search and download functionalities are using the official Maven repository.

water.UDPNack Maven / Gradle / Ivy

There is a newer version: 3.8.2.9
Show newest version
package water;

/**
 * A remote task re-request; NACK indicating "we heard you"
 *
 * @author 
 * @version 1.0
 */

class UDPNack extends UDP {
  // Received an ACK for a remote Task.  Ping the task.
  private static long THEN;
  AutoBuffer call(AutoBuffer ab) {
    int tnum = ab.getTask();
    RPC t = ab._h2o.taskGet(tnum);
    if( t != null ) {
      assert t._tasknum==tnum;
      t._nack = true;
    }
    return ab;
  }

  // Pretty-print bytes 1-15; byte 0 is the udp_type enum
  String print16( AutoBuffer b ) { return "task# "+b.getTask(); }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy