Class GenieUserLimitExceededException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.netflix.genie.common.exceptions.GenieException
com.netflix.genie.common.exceptions.GenieUserLimitExceededException
All Implemented Interfaces:
Serializable

public final class GenieUserLimitExceededException extends GenieException
Extension of a GenieException for a user exceeding some limit (e.g., submitting too many jobs).
Since:
3.1.0
See Also:
  • Constructor Details

    • GenieUserLimitExceededException

      public GenieUserLimitExceededException(String user, String limitName, String message)
      Constructor.
      Parameters:
      user - user name
      limitName - limit name
      message - message
  • Method Details

    • createForActiveJobsLimit

      public static GenieUserLimitExceededException createForActiveJobsLimit(String user, long activeJobsCount, long activeJobsLimit)
      Static factory method to produce a GenieUserLimitExceededException suitable for when the user exceeded the maximum number of active jobs and its trying to submit yet another.
      Parameters:
      user - the user name
      activeJobsCount - the count of active jobs for this user
      activeJobsLimit - the current limit on active jobs
      Returns:
      a new GenieUserLimitExceededException