public void setPreferredHost(String preferredHost) {
    this.preferredHost = preferredHost;
  }
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