Class PoolMetrics.Builder

  • Enclosing class:
    PoolMetrics

    public static class PoolMetrics.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • timeLastStarted

        public PoolMetrics.Builder timeLastStarted​(Date timeLastStarted)
        The last time this pool was started.
        Parameters:
        timeLastStarted - the value to set
        Returns:
        this builder
      • timeLastStopped

        public PoolMetrics.Builder timeLastStopped​(Date timeLastStopped)
        The last time this pool was stopped.
        Parameters:
        timeLastStopped - the value to set
        Returns:
        this builder
      • timeLastUsed

        public PoolMetrics.Builder timeLastUsed​(Date timeLastUsed)
        The last time a run used this pool.
        Parameters:
        timeLastUsed - the value to set
        Returns:
        this builder
      • timeLastMetricsUpdated

        public PoolMetrics.Builder timeLastMetricsUpdated​(Date timeLastMetricsUpdated)
        The last time the mertics were updated for this.
        Parameters:
        timeLastMetricsUpdated - the value to set
        Returns:
        this builder
      • activeRunsCount

        public PoolMetrics.Builder activeRunsCount​(Long activeRunsCount)
        The number of runs that are currently running that are using this pool.
        Parameters:
        activeRunsCount - the value to set
        Returns:
        this builder
      • activelyUsedNodeCount

        public PoolMetrics.Builder activelyUsedNodeCount​(List<NodeCount> activelyUsedNodeCount)
        A count of the nodes that are currently being used for each shape in this pool.
        Parameters:
        activelyUsedNodeCount - the value to set
        Returns:
        this builder