All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hubspot.singularity.config.SingularityTaskMetadataConfiguration Maven / Gradle / Ivy

package com.hubspot.singularity.config;

import java.util.List;

import com.google.common.base.Optional;

public class SingularityTaskMetadataConfiguration {

  private long taskPersistAfterFinishBufferMillis = 0;

  private long waitToSendTaskCompletedMailBufferMillis = 0;

  private Optional> allowedMetadataTypes = Optional.absent();

  private Optional sendTaskCompletedMailOnceMetadataTypeIsAvailable = Optional.absent();

  private long maxMetadataMessageLength = 10000;

  private long maxMetadataTitleLength = 2000;

  public long getTaskPersistAfterFinishBufferMillis() {
    return taskPersistAfterFinishBufferMillis;
  }

  public void setTaskPersistAfterFinishBufferMillis(long taskPersistAfterFinishBufferMillis) {
    this.taskPersistAfterFinishBufferMillis = taskPersistAfterFinishBufferMillis;
  }

  public long getWaitToSendTaskCompletedMailBufferMillis() {
    return waitToSendTaskCompletedMailBufferMillis;
  }

  public void setWaitToSendTaskCompletedMailBufferMillis(long waitToSendTaskCompletedMailBufferMillis) {
    this.waitToSendTaskCompletedMailBufferMillis = waitToSendTaskCompletedMailBufferMillis;
  }

  public Optional> getAllowedMetadataTypes() {
    return allowedMetadataTypes;
  }

  public void setAllowedMetadataTypes(Optional> allowedMetadataTypes) {
    this.allowedMetadataTypes = allowedMetadataTypes;
  }

  public Optional getSendTaskCompletedMailOnceMetadataTypeIsAvailable() {
    return sendTaskCompletedMailOnceMetadataTypeIsAvailable;
  }

  public void setSendTaskCompletedMailOnceMetadataTypeIsAvailable(Optional sendTaskCompletedMailOnceMetadataTypeIsAvailable) {
    this.sendTaskCompletedMailOnceMetadataTypeIsAvailable = sendTaskCompletedMailOnceMetadataTypeIsAvailable;
  }

  public long getMaxMetadataMessageLength() {
    return maxMetadataMessageLength;
  }

  public void setMaxMetadataMessageLength(long maxMetadataMessageLength) {
    this.maxMetadataMessageLength = maxMetadataMessageLength;
  }

  public long getMaxMetadataTitleLength() {
    return maxMetadataTitleLength;
  }

  public void setMaxMetadataTitleLength(long maxMetadataTitleLength) {
    this.maxMetadataTitleLength = maxMetadataTitleLength;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy