Class ClientEndpoint

  • Direct Known Subclasses:
    NemoPipelineResult

    public abstract class ClientEndpoint
    extends Object
    A request endpoint in client side of a plan.
    • Constructor Detail

      • ClientEndpoint

        public ClientEndpoint​(StateTranslator stateTranslator)
        Constructor.
        Parameters:
        stateTranslator - translator to translate between the state of plan and corresponding.
    • Method Detail

      • getPlanState

        public final Enum getPlanState()
        Get the current state of the running plan.
        Returns:
        the current state of the running plan.
      • waitUntilJobFinish

        public final Enum waitUntilJobFinish​(long timeout,
                                             TimeUnit unit)
        Wait for this job to be finished (complete or failed) and return the final state. It wait for at most the given time.
        Parameters:
        timeout - of waiting.
        unit - of the timeout.
        Returns:
        the final state of this job.
      • waitUntilJobFinish

        public final Enum waitUntilJobFinish()
        Wait for this job to be finished and return the final state.
        Returns:
        the final state of this job.