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

water.UDPAck Maven / Gradle / Ivy

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

/**
 * A remote task request has just returned an ACK with answer
 *
 * @author 
 * @version 1.0
 */

class UDPAck extends UDP {
  // Received an ACK for a remote Task.  Ping the task.
  AutoBuffer call(AutoBuffer ab) {
    int tnum = ab.getTask();
    RPC t = ab._h2o.taskGet(tnum);
    // Forgotten task, but still must ACKACK
    if( t == null ) return RPC.ackack(ab,tnum);
    return t.response(ab); // Do the 2nd half of this task, includes ACKACK
  }

  // 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