All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.twitter.ambrose.service.WorkflowIndexReadService Maven / Gradle / Ivy

There is a newer version: 0.4.3
Show newest version
package com.twitter.ambrose.service;

import java.io.IOException;
import java.util.Map;

import com.twitter.ambrose.model.PaginatedList;
import com.twitter.ambrose.model.WorkflowSummary;

/**
 * Interface to fetch paginated lists of WorkflowSummaries.
 */
public interface WorkflowIndexReadService {
  /**
   * Returns map of cluster id to name.
   *
   * @return map of cluster id to name.
   * @throws IOException
   */
  Map getClusters() throws IOException;

  /**
   * Returns workflow summaries for a given status and optional userId filter.
   *
   * @param cluster cluser to return results for.
   * @param status workflow status.
   * @param userId user to filter on, or null if all users requested.
   * @param numResults how many results to return.
   * @param startKey start key for the page of results to return.
   * @return paginated list of workflow summaries.
   */
  PaginatedList getWorkflows(String cluster, WorkflowSummary.Status status,
      String userId, int numResults, byte[] startKey) throws IOException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy