Class OfflineAgentRemovalConfig
java.lang.Object
com.atlassian.bamboo.configuration.OfflineAgentRemovalConfig
- All Implemented Interfaces:
Serializable
Configuration for the automatic offline agent removal.
- Since:
- 11.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOfflineAgentRemovalConfig
(@NotNull OfflineRemoteAgentRemovalPolicy offlineRemoteAgentRemovalPolicy, long offlineRemoteAgentRemovalIntervalHours, @NotNull OfflineElasticAgentRemovalPolicy offlineElasticAgentRemovalPolicy, long offlineElasticAgentRemovalIntervalHours) -
Method Summary
Modifier and TypeMethodDescriptionboolean
long
Gets the interval in hours for removing offline elastic agents.Gets the policy for removing offline elastic agents.long
Gets the interval in hours for removing offline remote agents.Gets the policy for removing offline remote agents.int
hashCode()
toString()
-
Constructor Details
-
OfflineAgentRemovalConfig
public OfflineAgentRemovalConfig(@NotNull @NotNull OfflineRemoteAgentRemovalPolicy offlineRemoteAgentRemovalPolicy, long offlineRemoteAgentRemovalIntervalHours, @NotNull @NotNull OfflineElasticAgentRemovalPolicy offlineElasticAgentRemovalPolicy, long offlineElasticAgentRemovalIntervalHours) -
OfflineAgentRemovalConfig
public OfflineAgentRemovalConfig()
-
-
Method Details
-
getOfflineRemoteAgentRemovalPolicy
Gets the policy for removing offline remote agents.- Returns:
- the offline remote agent removal policy
-
getOfflineRemoteAgentRemovalIntervalHours
public long getOfflineRemoteAgentRemovalIntervalHours()Gets the interval in hours for removing offline remote agents. Applicable only ifofflineRemoteAgentRemovalPolicy
set toOfflineRemoteAgentRemovalPolicy.TIMEOUT
.- Returns:
- the interval in hours
-
getOfflineElasticAgentRemovalPolicy
Gets the policy for removing offline elastic agents.- Returns:
- the offline elastic agent removal policy
-
getOfflineElasticAgentRemovalIntervalHours
public long getOfflineElasticAgentRemovalIntervalHours()Gets the interval in hours for removing offline elastic agents. Applicable only ifofflineElasticAgentRemovalPolicy
set toOfflineElasticAgentRemovalPolicy.TIMEOUT
.- Returns:
- the interval in hours
-
equals
-
hashCode
public int hashCode() -
toString
-