Package jetbrains.buildServer.serverSide
Interface LicenseList
-
- All Known Implementing Classes:
ServerLicenseList
public interface LicenseList
Represents list of currently loaded licenses
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LicenseKey
findTimeBasedLicenseKey()
Collection<LicenseKey>
getActiveLicenses()
Collection<LicenseKey>
getAllLicenses()
Collection<LicenseKey>
getInactiveLicenses()
LicenseKey
getJwtLicense()
int
getLicensedAgentCount()
int
getLicensedBuildTypesCount()
Date
getLicenseExpirationDate()
Returns time based license expiration dateint
getNumberOfPredefinedAgents()
Returns number of agents which can be authorized on the server for free (currently it is either 3 or 0 if number is unlimited).int
getNumberOfPredefinedBuildTypes()
Returns number of predefined build configurations which can be created on the server (currently it is either 20 or 0 if number is unlimited).Date
getReleaseDate()
boolean
hasEnterpriseLicense()
boolean
hasJwtLicense()
boolean
isEAPTrialMode()
Returns true if server is working in trial mode.boolean
isOpenSourceMode()
Returns true if server is working in open source evaluation mode.boolean
isPerUsageLicenseActive()
boolean
isPerUsageMode()
boolean
isTrialMode()
Returns true if server is working in trial mode.boolean
isUnlimitedAgents()
Returns true if server is working in the unlimited agents mode.boolean
isUnlimitedBuildTypes()
-
-
-
Method Detail
-
hasEnterpriseLicense
boolean hasEnterpriseLicense()
- Returns:
- true if there is an active enterprise license.
-
hasJwtLicense
boolean hasJwtLicense()
- Returns:
- true if there is a JWT license (either active or inactive)
-
getJwtLicense
@Nullable LicenseKey getJwtLicense()
- Returns:
- JWT license if it's present (can be inactive), null otherwise
-
getAllLicenses
@NotNull Collection<LicenseKey> getAllLicenses()
- Returns:
- all entered license keys (active and inactive).
-
getActiveLicenses
@NotNull Collection<LicenseKey> getActiveLicenses()
- Returns:
- active license keys only
-
getInactiveLicenses
@NotNull Collection<LicenseKey> getInactiveLicenses()
- Returns:
- inactive license keys - expired trial keys, keys with expired maintenance comparing to server release date. Note that list can also have non expired trial license if valid enterprise license exists.
-
getLicensedAgentCount
int getLicensedAgentCount()
- Returns:
- computes number of agents from the entered license keys.
-
getLicensedBuildTypesCount
int getLicensedBuildTypesCount()
- Returns:
- computes number of build configurations from the entered license keys. This method should only be used if
isUnlimitedBuildTypes()
returns false.
-
findTimeBasedLicenseKey
@Nullable LicenseKey findTimeBasedLicenseKey()
-
isTrialMode
boolean isTrialMode()
Returns true if server is working in trial mode.- Returns:
-
isEAPTrialMode
boolean isEAPTrialMode()
Returns true if server is working in trial mode.- Returns:
-
isOpenSourceMode
boolean isOpenSourceMode()
Returns true if server is working in open source evaluation mode.- Returns:
-
isPerUsageMode
boolean isPerUsageMode()
- Returns:
- true if server is working in PerUsage enterprise mode. isPerUsageLicenseActive() should be checked as well.
-
isPerUsageLicenseActive
boolean isPerUsageLicenseActive()
- Returns:
- true if PerUsage enterprise mode is active - usage data was sent to the JetProfile recently or server was just restarted or key was just added.
-
isUnlimitedAgents
boolean isUnlimitedAgents()
Returns true if server is working in the unlimited agents mode.- Returns:
-
isUnlimitedBuildTypes
boolean isUnlimitedBuildTypes()
- Returns:
- true if number of build types is unlimited
-
getNumberOfPredefinedAgents
int getNumberOfPredefinedAgents()
Returns number of agents which can be authorized on the server for free (currently it is either 3 or 0 if number is unlimited). Returns 0 if number of agents is unlimited.- Returns:
- number of predefined agents
-
getNumberOfPredefinedBuildTypes
int getNumberOfPredefinedBuildTypes()
Returns number of predefined build configurations which can be created on the server (currently it is either 20 or 0 if number is unlimited).- Returns:
- number of predefined agents
-
getLicenseExpirationDate
@Nullable Date getLicenseExpirationDate()
Returns time based license expiration date- Returns:
-
getReleaseDate
@NotNull Date getReleaseDate()
- Returns:
- release date of the server
- Since:
- 10.0
-
-