@Override public void write(DataOutput out) throws IOException { task_.serialize(out); out.writeInt(workerAddresses_.size()); for (NetworkAddress n: workerAddresses_) { out.writeInt(n.hostname.length()); out.writeBytes(n.hostname); out.writeInt(n.port); } }