Class LicensingPolicyImpl

    • Method Detail

      • isEnterpriseMode

        public boolean isEnterpriseMode()
        Description copied from interface: LicensingPolicy
        Returns true if server is working in the enterprise mode.
        Specified by:
        isEnterpriseMode in interface LicensingPolicy
        Returns:
        true for enterprise mode and false otherwise
      • isTrialMode

        public boolean isTrialMode()
        Specified by:
        isTrialMode in interface LicensingPolicy
        Returns:
        true if server is in trial mode
      • isEAPTrialMode

        public boolean isEAPTrialMode()
        Specified by:
        isEAPTrialMode in interface LicensingPolicy
        Returns:
        true if server is in EAP trial mode.
      • isOpenSourceMode

        public boolean isOpenSourceMode()
        Specified by:
        isOpenSourceMode in interface LicensingPolicy
        Returns:
        Returns true if server is in open source evaluation mode.
      • isPerUsageLicenseActive

        public boolean isPerUsageLicenseActive()
        Specified by:
        isPerUsageLicenseActive in interface LicensingPolicyEx
        Returns:
        true if the server works in PerUsage enterprise mode and it is active - usage data was sent to the JetProfile recently.
      • getMaxNumberOfBuildTypes

        public int getMaxNumberOfBuildTypes()
        Description copied from interface: LicensingPolicy
        Returns maximum number of build configurations supported by the current licensing policy.
        Specified by:
        getMaxNumberOfBuildTypes in interface LicensingPolicy
        Returns:
        maximum number of build configurations supported or -1 if there is no build configurations limit
      • getMaxNumberOfAuthorizedAgents

        public int getMaxNumberOfAuthorizedAgents()
        Description copied from interface: LicensingPolicy
        Returns maximum number of authorized agents or -1 if there is no limit
        Specified by:
        getMaxNumberOfAuthorizedAgents in interface LicensingPolicy
        Returns:
        max number of authorized agents
      • getAgentsLicensesLeft

        public int getAgentsLicensesLeft()
        Specified by:
        getAgentsLicensesLeft in interface LicensingPolicyEx
        Returns:
        number of agent licenses left or -1 if there is no limit for number of agents
      • canCreateMoreBuildTypes

        public boolean canCreateMoreBuildTypes​(int buildTypesCount)
        Specified by:
        canCreateMoreBuildTypes in interface LicensingPolicyEx
        Parameters:
        buildTypesCount - number of build configurations to create
        Returns:
        true if the specified number of build configurations can be created
      • getBuildTypesLicensesLeft

        public int getBuildTypesLicensesLeft()
        Specified by:
        getBuildTypesLicensesLeft in interface LicensingPolicyEx
        Returns:
        number of build configuration licenses left or -1 if there is no limit