Interface ServerSummary
-
public interface ServerSummary
This class contains server's general summary information, available from any jsp and placed in the request context under name 'serverSummary'.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getAuthorizedAgentsCount()
Returns the number of authorized agents in the system.int
getBuildConfigurationsLeft()
Get current number of build configurations which can be created in Professional mode: maxNumber - currentLicensingPolicy
getLicensingPolicy()
Return current licensing policy for the serverjava.lang.String
getNodeId()
java.util.List<java.lang.String>
getNodeIds()
int
getNumberOfRegisteredUsers()
Return number of registered users in the current auth schemeint
getNumberOfVisibleConfigurations()
Returns number of build configurations available to current user according to his/her permissions.int
getRegisteredAgentsCount()
Returns the number of registered agents in the system.java.lang.String
getRootURL()
boolean
isEnterpriseMode()
Returns true if server is working in the enterprise modeboolean
isHasSeveralAgentPools()
Returns true if number of agent pools is greater than one.boolean
isPerProjectPermissionsEnabled()
boolean
projectsAvailable()
-
-
-
Method Detail
-
getRegisteredAgentsCount
int getRegisteredAgentsCount()
Returns the number of registered agents in the system.- Returns:
- see above
-
getAuthorizedAgentsCount
int getAuthorizedAgentsCount()
Returns the number of authorized agents in the system.- Returns:
- see above
-
getBuildConfigurationsLeft
int getBuildConfigurationsLeft()
Get current number of build configurations which can be created in Professional mode: maxNumber - current- Returns:
- see above
-
getNumberOfVisibleConfigurations
int getNumberOfVisibleConfigurations()
Returns number of build configurations available to current user according to his/her permissions.- Returns:
- see above
-
projectsAvailable
boolean projectsAvailable()
- Returns:
- true if there is at least one project besides Root available to current user
-
getNumberOfRegisteredUsers
int getNumberOfRegisteredUsers()
Return number of registered users in the current auth scheme- Returns:
- see above
-
isHasSeveralAgentPools
boolean isHasSeveralAgentPools()
Returns true if number of agent pools is greater than one.- Returns:
- see above
-
isEnterpriseMode
boolean isEnterpriseMode()
Returns true if server is working in the enterprise mode- Returns:
- true if server is working in the enterprise mode
-
getLicensingPolicy
LicensingPolicy getLicensingPolicy()
Return current licensing policy for the server- Returns:
- see above
-
isPerProjectPermissionsEnabled
boolean isPerProjectPermissionsEnabled()
- Returns:
- true if per-project permissions are enabled.
-
getRootURL
@NotNull java.lang.String getRootURL()
- Returns:
- current server root URL
- Since:
- 10.0
-
getNodeId
java.lang.String getNodeId()
- Returns:
- the id of the current node
- Since:
- 2021.1.2
-
getNodeIds
java.util.List<java.lang.String> getNodeIds()
- Returns:
- List of online nodes (IDs), sorted
- Since:
- 2023.3
-
-