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 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 serverString
getNodeId()
List<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.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()
-
-
-
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:ServerSummary
Returns the number of registered agents in the system.- Specified by:
getRegisteredAgentsCount
in interfaceServerSummary
- Returns:
- see above
-
getAuthorizedAgentsCount
public int getAuthorizedAgentsCount()
Description copied from interface:ServerSummary
Returns the number of authorized agents in the system.- Specified by:
getAuthorizedAgentsCount
in interfaceServerSummary
- Returns:
- see above
-
getBuildConfigurationsLeft
public int getBuildConfigurationsLeft()
Description copied from interface:ServerSummary
Get current number of build configurations which can be created in Professional mode: maxNumber - current- Specified by:
getBuildConfigurationsLeft
in interfaceServerSummary
- Returns:
- see above
-
getNumberOfVisibleConfigurations
public int getNumberOfVisibleConfigurations()
Description copied from interface:ServerSummary
Returns number of build configurations available to current user according to his/her permissions.- Specified by:
getNumberOfVisibleConfigurations
in interfaceServerSummary
- Returns:
- see above
-
projectsAvailable
public boolean projectsAvailable()
- Specified by:
projectsAvailable
in interfaceServerSummary
- Returns:
- true if there is at least one project besides Root available to current user
-
getNumberOfRegisteredUsers
public int getNumberOfRegisteredUsers()
Description copied from interface:ServerSummary
Return number of registered users in the current auth scheme- Specified by:
getNumberOfRegisteredUsers
in interfaceServerSummary
- Returns:
- see above
-
isHasSeveralAgentPools
public boolean isHasSeveralAgentPools()
Description copied from interface:ServerSummary
Returns true if number of agent pools is greater than one.- Specified by:
isHasSeveralAgentPools
in interfaceServerSummary
- Returns:
- see above
-
isEnterpriseMode
public boolean isEnterpriseMode()
Description copied from interface:ServerSummary
Returns true if server is working in the enterprise mode- Specified by:
isEnterpriseMode
in interfaceServerSummary
- Returns:
- true if server is working in the enterprise mode
-
getLicensingPolicy
@NotNull public LicensingPolicy getLicensingPolicy()
Description copied from interface:ServerSummary
Return current licensing policy for the server- Specified by:
getLicensingPolicy
in interfaceServerSummary
- Returns:
- see above
-
isPerProjectPermissionsEnabled
public boolean isPerProjectPermissionsEnabled()
- Specified by:
isPerProjectPermissionsEnabled
in interfaceServerSummary
- Returns:
- true if per-project permissions are enabled.
-
getRootURL
@NotNull public String getRootURL()
- Specified by:
getRootURL
in interfaceServerSummary
- Returns:
- current server root URL
-
getNodeId
public String getNodeId()
- Specified by:
getNodeId
in interfaceServerSummary
- Returns:
- the id of the current node
-
getNodeIds
public List<String> getNodeIds()
- Specified by:
getNodeIds
in interfaceServerSummary
- Returns:
- List of online nodes (IDs), sorted
-
-