@Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (!(o instanceof Task)) {
      return false;
    }

    Task task = (Task) o;

    if (containerId != null && containerId.equals(task.containerId)) {
      return false;
    }
    if (!preferredHost.equals(task.preferredHost)) {
      return false;
    }
    if (!taskName.equals(task.taskName)) {
      return false;
    }
    if (!partitions.equals(task.partitions)) {
      return false;
    }
    return storeNames.equals(task.storeNames);
  }
Provides a client view of a samza task.
Includes the preferred preferredHost, taskName, containerId, containerId and list of partitions.
samza-rest/src/main/java/org/apache/samza/rest/model/Task.java