Interface EphemeralAgentManagementLogger

  • All Known Implementing Classes:
    EphemeralAgentManagementLoggerImpl

    @PublicApi
    public interface EphemeralAgentManagementLogger
    Logger responsible for ephemeral agents management related actions. Used for tracking communication with k8s cluster. since 9.3
    • Method Detail

      • addEphemeralLogEntry

        void addEphemeralLogEntry​(@NotNull
                                  @NotNull org.apache.logging.log4j.Logger logger,
                                  @NotNull
                                  @NotNull String message,
                                  boolean isSuccessfulMessage)
        Adds the log entry to the N last ephemeral logs and evicts the oldest one if the capacity is reached. Also, the method immediately logs the message to the Bamboo instance logs with the provided logger.
        Parameters:
        logger - logger used to log the message to Bamboo logs
        message - information to keep
        isSuccessfulMessage - whether the passed message indicates the successful action
      • addEphemeralLogEntry

        void addEphemeralLogEntry​(@NotNull
                                  @NotNull org.apache.logging.log4j.Logger logger,
                                  @NotNull
                                  @NotNull String message,
                                  @NotNull
                                  @NotNull AgentMaintenanceResult clusterCommunicationResult)
        Adds the log entry to the N last ephemeral logs and evicts the oldest one if the capacity is reached. The log entry contains both the message and cluster-related communication result associated with the message. Also, the method immediately logs the message to the Bamboo instance logs with the provided logger. The Successful result will be printed. In order to reduce noise, use addEphemeralLogEntry(Logger, String, AgentMaintenanceResult, boolean, boolean) with printSuccessfulResult and logOnlyToEphemeralLogger set to true
        Parameters:
        logger - logger used to log the message to Bamboo logs
        message - information to keep
        clusterCommunicationResult - cluster communication result
      • addEphemeralLogEntry

        void addEphemeralLogEntry​(@NotNull
                                  @NotNull org.apache.logging.log4j.Logger logger,
                                  @NotNull
                                  @NotNull String message,
                                  @NotNull
                                  @NotNull AgentMaintenanceResult clusterCommunicationResult,
                                  boolean printSuccessfulResult,
                                  boolean logOnlyToEphemeralLogger)
        Adds the log entry to the N last ephemeral logs and evicts the oldest one if the capacity is reached. The log entry contains both the message and cluster-related communication result associated with the message. Also, the method immediately logs the message to the Bamboo instance logs with the provided logger.
        Parameters:
        logger - logger used to log the message to Bamboo logs
        message - information to keep
        clusterCommunicationResult - cluster communication result
        printSuccessfulResult - print successful messages to the logs
        logOnlyToEphemeralLogger - if true, the message will be logger to the Bamboo Ephemeral logs only, if false it will be logged on both Ephemeral and Bamboo instance logs