Package jetbrains.buildServer.license
Interface LicenseTokenManager
-
- All Known Implementing Classes:
ServerLicenseManager
public interface LicenseTokenManager
Grants license tokens to agents
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
grantLicense(BuildAgentEx agent)
Checks whether a license token can be granted to the specified agent.
-
-
-
Method Detail
-
grantLicense
void grantLicense(@NotNull BuildAgentEx agent) throws LicenseNotGrantedException
Checks whether a license token can be granted to the specified agent. If token cannot be granted LicenseNotGrantedException is thrown.- Parameters:
agent
- agent to grant license to- Throws:
LicenseNotGrantedException
- if there is not enough license tokens
-
-