Class RemoteAgentsAnalyticsServiceImpl
- java.lang.Object
-
- com.atlassian.bamboo.analytics.agent.RemoteAgentsAnalyticsServiceImpl
-
- All Implemented Interfaces:
RemoteAgentsAnalyticsService
public class RemoteAgentsAnalyticsServiceImpl extends Object implements RemoteAgentsAnalyticsService
-
-
Constructor Summary
Constructors Constructor Description RemoteAgentsAnalyticsServiceImpl(AgentManager agentManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<JavaVersion,Integer>
getAndResetJavaVersionUsageStatistics()
Get current Java Version usage statistics and reset themMap<OsType,Integer>
getAndResetOsUsageStatistics()
Get current OS usage statistics and reset themvoid
recordJavaVersionUsageByAgent(long agentId, JavaVersion javaVersion)
Record Java Version usage by given agentvoid
recordOsUsageByAgent(long agentId, OsType osType)
Record OS usage by given agent
-
-
-
Constructor Detail
-
RemoteAgentsAnalyticsServiceImpl
public RemoteAgentsAnalyticsServiceImpl(AgentManager agentManager)
-
-
Method Detail
-
recordOsUsageByAgent
public void recordOsUsageByAgent(long agentId, OsType osType)
Description copied from interface:RemoteAgentsAnalyticsService
Record OS usage by given agent- Specified by:
recordOsUsageByAgent
in interfaceRemoteAgentsAnalyticsService
-
recordJavaVersionUsageByAgent
public void recordJavaVersionUsageByAgent(long agentId, JavaVersion javaVersion)
Description copied from interface:RemoteAgentsAnalyticsService
Record Java Version usage by given agent- Specified by:
recordJavaVersionUsageByAgent
in interfaceRemoteAgentsAnalyticsService
-
getAndResetOsUsageStatistics
public Map<OsType,Integer> getAndResetOsUsageStatistics()
Description copied from interface:RemoteAgentsAnalyticsService
Get current OS usage statistics and reset them- Specified by:
getAndResetOsUsageStatistics
in interfaceRemoteAgentsAnalyticsService
-
getAndResetJavaVersionUsageStatistics
public Map<JavaVersion,Integer> getAndResetJavaVersionUsageStatistics()
Description copied from interface:RemoteAgentsAnalyticsService
Get current Java Version usage statistics and reset them- Specified by:
getAndResetJavaVersionUsageStatistics
in interfaceRemoteAgentsAnalyticsService
-
-