public static NodeTask toNodeTask(ByteBuffer bb){
  NodeTask nt=null;
  if (byteBufferNotEmpty(bb)) {
    nt=new NodeTask(getServiceResourceProfile(bb),getConstraint(bb));
    nt.setHostname(toString(bb));
    nt.setSlaveId(toSlaveId(bb));
    nt.setTaskStatus(toTaskStatus(bb));
    nt.setExecutorInfo(toExecutorInfo(bb));
    nt.setTaskPrefix(toString(bb));
  }
  return nt;
}

public static NodeTask toNodeTask ( ByteBuffer bb ) { NodeTask nt = null ; if ( byteBufferNotEmpty ( bb ) ) { nt = new NodeTask ( getServiceResourceProfile ( bb ) , getConstraint ( bb ) ) ; nt . setHostname ( toString ( bb ) ) ; nt . setSlaveId ( toSlaveId ( bb ) ) ; nt . setTaskStatus ( toTaskStatus ( bb ) ) ; nt . setExecutorInfo ( toExecutorInfo ( bb ) ) ; nt . setTaskPrefix ( toString ( bb ) ) ; } return nt ; }
bytebuffer is expected to have a nodetask at its next position .
