Class GenieUserLimitExceededException

  • All Implemented Interfaces:
    java.io.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:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      GenieUserLimitExceededException​(java.lang.String user, java.lang.String limitName, java.lang.String message)
      Constructor.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static GenieUserLimitExceededException createForActiveJobsLimit​(java.lang.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.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • GenieUserLimitExceededException

        public GenieUserLimitExceededException​(java.lang.String user,
                                               java.lang.String limitName,
                                               java.lang.String message)
        Constructor.
        Parameters:
        user - user name
        limitName - limit name
        message - message
    • Method Detail

      • createForActiveJobsLimit

        public static GenieUserLimitExceededException createForActiveJobsLimit​(java.lang.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