@Test public void testToProto() { JobWorkerHealth host = new JobWorkerHealth(1L, Lists.newArrayList(0.0, 0.0, 0.1), 10, 1, 1, "host"); JobWorkerHealth other = new JobWorkerHealth(host.toProto()); assertEquals(host, other); }
public alluxio.grpc.JobWorkerHealth toProto() { alluxio.grpc.JobWorkerHealth.Builder builder = alluxio.grpc.JobWorkerHealth.newBuilder() .setWorkerId(mWorkerId).addAllLoadAverage(mLoadAverage).setUnfinishedTasks(mUnfinishedTasks) .setTaskPoolSize(mTaskPoolSize).setNumActiveTasks(mNumActiveTasks) .setLastUpdated(mLastUpdated).setHostname(mHostname); return builder.build(); }
JobWorkerHealth { public alluxio.grpc.JobWorkerHealth toProto() { alluxio.grpc.JobWorkerHealth.Builder builder = alluxio.grpc.JobWorkerHealth.newBuilder() .setWorkerId(mWorkerId).addAllLoadAverage(mLoadAverage).setUnfinishedTasks(mUnfinishedTasks) .setTaskPoolSize(mTaskPoolSize).setNumActiveTasks(mNumActiveTasks) .setLastUpdated(mLastUpdated).setHostname(mHostname); return builder.build(); } }
JobWorkerHealth { public alluxio.grpc.JobWorkerHealth toProto() { alluxio.grpc.JobWorkerHealth.Builder builder = alluxio.grpc.JobWorkerHealth.newBuilder() .setWorkerId(mWorkerId).addAllLoadAverage(mLoadAverage).setUnfinishedTasks(mUnfinishedTasks) .setTaskPoolSize(mTaskPoolSize).setNumActiveTasks(mNumActiveTasks) .setLastUpdated(mLastUpdated).setHostname(mHostname); return builder.build(); } JobWorkerHealth(long workerId, List<Double> loadAverage, int taskPoolSize,
      int numActiveTasks, int unfinishedTasks, String hostname);  JobWorkerHealth(alluxio.grpc.JobWorkerHealth jobWorkerHealth); }
JobWorkerHealth { public alluxio.grpc.JobWorkerHealth toProto() { alluxio.grpc.JobWorkerHealth.Builder builder = alluxio.grpc.JobWorkerHealth.newBuilder() .setWorkerId(mWorkerId).addAllLoadAverage(mLoadAverage).setUnfinishedTasks(mUnfinishedTasks) .setTaskPoolSize(mTaskPoolSize).setNumActiveTasks(mNumActiveTasks) .setLastUpdated(mLastUpdated).setHostname(mHostname); return builder.build(); } JobWorkerHealth(long workerId, List<Double> loadAverage, int taskPoolSize,
      int numActiveTasks, int unfinishedTasks, String hostname);  JobWorkerHealth(alluxio.grpc.JobWorkerHealth jobWorkerHealth); long getWorkerId(); List<Double> getLoadAverage(); int getTaskPoolSize(); int getNumActiveTasks(); int getUnfinishedTasks(); String getHostname(); alluxio.grpc.JobWorkerHealth toProto(); @Override int hashCode(); @Override boolean equals(Object o); @Override String toString(); }
JobWorkerHealth { public alluxio.grpc.JobWorkerHealth toProto() { alluxio.grpc.JobWorkerHealth.Builder builder = alluxio.grpc.JobWorkerHealth.newBuilder() .setWorkerId(mWorkerId).addAllLoadAverage(mLoadAverage).setUnfinishedTasks(mUnfinishedTasks) .setTaskPoolSize(mTaskPoolSize).setNumActiveTasks(mNumActiveTasks) .setLastUpdated(mLastUpdated).setHostname(mHostname); return builder.build(); } JobWorkerHealth(long workerId, List<Double> loadAverage, int taskPoolSize,
      int numActiveTasks, int unfinishedTasks, String hostname);  JobWorkerHealth(alluxio.grpc.JobWorkerHealth jobWorkerHealth); long getWorkerId(); List<Double> getLoadAverage(); int getTaskPoolSize(); int getNumActiveTasks(); int getUnfinishedTasks(); String getHostname(); alluxio.grpc.JobWorkerHealth toProto(); @Override int hashCode(); @Override boolean equals(Object o); @Override String toString();  }