Class OfflineAgentRemovalConfig

java.lang.Object
com.atlassian.bamboo.configuration.OfflineAgentRemovalConfig
All Implemented Interfaces:
Serializable

@Immutable public class OfflineAgentRemovalConfig extends Object implements Serializable
Configuration for the automatic offline agent removal.
Since:
11.0
See Also:
  • Constructor Details

    • OfflineAgentRemovalConfig

      public OfflineAgentRemovalConfig(@NotNull @NotNull OfflineRemoteAgentRemovalPolicy offlineRemoteAgentRemovalPolicy, long offlineRemoteAgentRemovalIntervalHours, @NotNull @NotNull OfflineElasticAgentRemovalPolicy offlineElasticAgentRemovalPolicy, long offlineElasticAgentRemovalIntervalHours)
    • OfflineAgentRemovalConfig

      public OfflineAgentRemovalConfig()
  • Method Details

    • getOfflineRemoteAgentRemovalPolicy

      public OfflineRemoteAgentRemovalPolicy 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 if offlineRemoteAgentRemovalPolicy set to OfflineRemoteAgentRemovalPolicy.TIMEOUT.
      Returns:
      the interval in hours
    • getOfflineElasticAgentRemovalPolicy

      public OfflineElasticAgentRemovalPolicy 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 if offlineElasticAgentRemovalPolicy set to OfflineElasticAgentRemovalPolicy.TIMEOUT.
      Returns:
      the interval in hours
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object