Package jetbrains.buildServer.web.impl
Class ServerSummaryImpl
- java.lang.Object
-
- jetbrains.buildServer.web.impl.ServerSummaryImpl
-
- All Implemented Interfaces:
ServerSummary
public class ServerSummaryImpl extends Object implements ServerSummary
- Author:
- Sergey.Anchipolevsky Date: 28.09.2007
-
-
Constructor Summary
Constructors Constructor Description ServerSummaryImpl(SBuildServer server, BuildAgentManagerEx agentManager, ProjectManager projectManager, UserModel userModel, ServerSettings serverSettings, AgentPoolManager agentPoolManager, TeamCityNodes teamCityNodes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAuthorizedAgentsCount()Returns the number of authorized agents in the system.intgetBuildConfigurationsLeft()Get current number of build configurations which can be created in Professional mode: maxNumber - currentLicensingPolicygetLicensingPolicy()Return current licensing policy for the serverStringgetNodeId()List<String>getNodeIds()intgetNumberOfRegisteredUsers()Return number of registered users in the current auth schemeintgetNumberOfVisibleConfigurations()Returns number of build configurations available to current user according to his/her permissions.intgetRegisteredAgentsCount()Returns the number of registered agents in the system.StringgetRootURL()booleanisEnterpriseMode()Returns true if server is working in the enterprise modebooleanisHasSeveralAgentPools()Returns true if number of agent pools is greater than one.booleanisPerProjectPermissionsEnabled()booleanprojectsAvailable()
-
-
-
Constructor Detail
-
ServerSummaryImpl
public ServerSummaryImpl(@NotNull SBuildServer server, @NotNull BuildAgentManagerEx agentManager, @NotNull ProjectManager projectManager, @NotNull UserModel userModel, @NotNull ServerSettings serverSettings, @NotNull AgentPoolManager agentPoolManager, @NotNull TeamCityNodes teamCityNodes)
-
-
Method Detail
-
getRegisteredAgentsCount
public int getRegisteredAgentsCount()
Description copied from interface:ServerSummaryReturns the number of registered agents in the system.- Specified by:
getRegisteredAgentsCountin interfaceServerSummary- Returns:
- see above
-
getAuthorizedAgentsCount
public int getAuthorizedAgentsCount()
Description copied from interface:ServerSummaryReturns the number of authorized agents in the system.- Specified by:
getAuthorizedAgentsCountin interfaceServerSummary- Returns:
- see above
-
getBuildConfigurationsLeft
public int getBuildConfigurationsLeft()
Description copied from interface:ServerSummaryGet current number of build configurations which can be created in Professional mode: maxNumber - current- Specified by:
getBuildConfigurationsLeftin interfaceServerSummary- Returns:
- see above
-
getNumberOfVisibleConfigurations
public int getNumberOfVisibleConfigurations()
Description copied from interface:ServerSummaryReturns number of build configurations available to current user according to his/her permissions.- Specified by:
getNumberOfVisibleConfigurationsin interfaceServerSummary- Returns:
- see above
-
projectsAvailable
public boolean projectsAvailable()
- Specified by:
projectsAvailablein interfaceServerSummary- Returns:
- true if there is at least one project besides Root available to current user
-
getNumberOfRegisteredUsers
public int getNumberOfRegisteredUsers()
Description copied from interface:ServerSummaryReturn number of registered users in the current auth scheme- Specified by:
getNumberOfRegisteredUsersin interfaceServerSummary- Returns:
- see above
-
isHasSeveralAgentPools
public boolean isHasSeveralAgentPools()
Description copied from interface:ServerSummaryReturns true if number of agent pools is greater than one.- Specified by:
isHasSeveralAgentPoolsin interfaceServerSummary- Returns:
- see above
-
isEnterpriseMode
public boolean isEnterpriseMode()
Description copied from interface:ServerSummaryReturns true if server is working in the enterprise mode- Specified by:
isEnterpriseModein interfaceServerSummary- Returns:
- true if server is working in the enterprise mode
-
getLicensingPolicy
@NotNull public LicensingPolicy getLicensingPolicy()
Description copied from interface:ServerSummaryReturn current licensing policy for the server- Specified by:
getLicensingPolicyin interfaceServerSummary- Returns:
- see above
-
isPerProjectPermissionsEnabled
public boolean isPerProjectPermissionsEnabled()
- Specified by:
isPerProjectPermissionsEnabledin interfaceServerSummary- Returns:
- true if per-project permissions are enabled.
-
getRootURL
@NotNull public String getRootURL()
- Specified by:
getRootURLin interfaceServerSummary- Returns:
- current server root URL
-
getNodeId
public String getNodeId()
- Specified by:
getNodeIdin interfaceServerSummary- Returns:
- the id of the current node
-
getNodeIds
public List<String> getNodeIds()
- Specified by:
getNodeIdsin interfaceServerSummary- Returns:
- List of online nodes (IDs), sorted
-
-