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

tech.aroma.thrift.service.AromaServiceConstants Maven / Gradle / Ivy

Go to download

Part of the Aroma Project. This project contains the Service and Model Definitions. From this the Server and Client interfaces are generated for the Aroma Service.

There is a newer version: 2.2
Show newest version
/**
 * Autogenerated by Thrift Compiler (0.9.3)
 *
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
 *  @generated
 */
package tech.aroma.thrift.service;

import org.apache.thrift.scheme.IScheme;
import org.apache.thrift.scheme.SchemeFactory;
import org.apache.thrift.scheme.StandardScheme;

import org.apache.thrift.scheme.TupleScheme;
import org.apache.thrift.protocol.TTupleProtocol;
import org.apache.thrift.protocol.TProtocolException;
import org.apache.thrift.EncodingUtils;
import org.apache.thrift.TException;
import org.apache.thrift.async.AsyncMethodCallback;
import org.apache.thrift.server.AbstractNonblockingServer.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;
import java.util.EnumMap;
import java.util.Set;
import java.util.HashSet;
import java.util.EnumSet;
import java.util.Collections;
import java.util.BitSet;
import java.nio.ByteBuffer;
import java.util.Arrays;
import javax.annotation.Generated;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
public class AromaServiceConstants {

  public static final int SERVICE_PORT = 7010;

  /**
   * This is Aroma Production Endpoint
   */
  public static final tech.aroma.thrift.endpoint.TcpEndpoint PRODUCTION_ENDPOINT = new tech.aroma.thrift.endpoint.TcpEndpoint();
  static {
    PRODUCTION_ENDPOINT.setHostname("aroma-srv.aroma.tech");
    PRODUCTION_ENDPOINT.setPort(7010);
  }

  /**
   * This is Aroma Beta Endpoint
   */
  public static final tech.aroma.thrift.endpoint.TcpEndpoint BETA_ENDPOINT = new tech.aroma.thrift.endpoint.TcpEndpoint();
  static {
    BETA_ENDPOINT.setHostname("aroma-srv.beta.aroma.tech");
    BETA_ENDPOINT.setPort(7010);
  }

  /**
   * The Maximum Dimensions for an Icon submitted with an Application.
   */
  public static final tech.aroma.thrift.Dimension MAX_APPLICATION_ICON_DIMENSION = new tech.aroma.thrift.Dimension();
  static {
    MAX_APPLICATION_ICON_DIMENSION.setWidth(1024);
    MAX_APPLICATION_ICON_DIMENSION.setHeight(1024);
  }

  /**
   * The Maximum Dimension for a Profile Picture submitted.
   */
  public static final tech.aroma.thrift.Dimension MAX_PROFILE_IMAGE_DIMENSION = new tech.aroma.thrift.Dimension();
  static {
    MAX_PROFILE_IMAGE_DIMENSION.setWidth(1024);
    MAX_PROFILE_IMAGE_DIMENSION.setHeight(1024);
  }

  /**
   * The Maximum Filesize for an Icon submitted with an Application.
   */
  public static final int MAX_APPLICATION_ICON_SIZE_IN_KILOBYTES = 100;

  /**
   * The Maximum Filesize for a Profile Picture submitted.
   */
  public static final int MAX_PROFILE_PICTURE_SIZE_IN_KILOBYTES = 100;

  /**
   * The Maximum number of messages included in a Message Object.
   * If truncated, the full message can be loaded using the
   * getFullMessage() operation.
   */
  public static final int MAX_MESSAGE_LENGTH = 5000;

  /**
   * The default amount of time to save messages in a User's Inbox.
   */
  public static final tech.aroma.thrift.LengthOfTime DEFAULT_INBOX_LIFETIME = new tech.aroma.thrift.LengthOfTime();
  static {
    DEFAULT_INBOX_LIFETIME.setValue(3L);
    DEFAULT_INBOX_LIFETIME.setUnit(tech.aroma.thrift.TimeUnit.DAYS);
  }

  /**
   * The default amount of time to save events in a User's Activity Feed.
   */
  public static final tech.aroma.thrift.LengthOfTime DEFAULT_ACTIVITY_LIFETIME = new tech.aroma.thrift.LengthOfTime();
  static {
    DEFAULT_ACTIVITY_LIFETIME.setValue(4L);
    DEFAULT_ACTIVITY_LIFETIME.setUnit(tech.aroma.thrift.TimeUnit.DAYS);
  }

  /**
   * The Maximum number of characters that can be in the Application Name.
   */
  public static final int APPLICATION_NAME_MAX_LENGTH = 20;

  /**
   * The Maximum number of owners that an Application can have.
   */
  public static final int APPLICATION_MAX_OWNERS = 10;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy