001/*
002 * Licensed to the Apache Software Foundation (ASF) under one
003 * or more contributor license agreements.  See the NOTICE file
004 * distributed with this work for additional information
005 * regarding copyright ownership.  The ASF licenses this file
006 * to you under the Apache License, Version 2.0 (the
007 * "License"); you may not use this file except in compliance
008 * with the License.  You may obtain a copy of the License at
009 *
010 *   http://www.apache.org/licenses/LICENSE-2.0
011 *
012 * Unless required by applicable law or agreed to in writing,
013 * software distributed under the License is distributed on an
014 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015 * KIND, either express or implied.  See the License for the
016 * specific language governing permissions and limitations
017 * under the License.
018 */
019package org.apache.reef.runtime.hdinsight.client.yarnrest;
020
021/**
022 * Constants used in serializing/deserializing REST calls to HDInsight's
023 * Resource Manager.
024 * For detailed information, please refer to
025 * https://hadoop.apache.org/docs/r2.6.0/hadoop-yarn/hadoop-yarn-site/ResourceManagerRest.html
026 */
027public final class Constants {
028  public static final String ID = "id";
029  public static final String MAXIMUM_RESOURCE_CAPABILITY = "maximum-resource-capability";
030  public static final String APPLICATION_ID = "application-id";
031  public static final String APPLICATION_NAME = "application-name";
032  public static final String UNMANAGED_AM = "unmanaged-AM";
033  public static final String MAX_APP_ATTEMPTS = "max-app-attempts";
034  public static final String APPLICATION_TYPE = "application-type";
035  public static final String AM_CONTAINER_SPEC = "am-container-spec";
036  public static final String KEEP_CONTAINERS_ACROSS_APPLICATION_ATTEMPTS =
037      "keep-containers-across-application-attempts";
038  public static final String APPLICATION_TAGS = "application-tags";
039  public static final String QUEUE = "queue";
040  public static final String RESOURCE = "resource";
041  public static final String PRIORITY = "priority";
042  public static final String LOCAL_RESOURCES = "local-resources";
043  public static final String ENVIRONMENT = "environment";
044  public static final String COMMANDS = "commands";
045  public static final String COMMAND = "command";
046  public static final String ENTRY = "entry";
047  public static final String KEY = "key";
048  public static final String VALUE = "value";
049  public static final String APPLICATION_ACLS = "application-acls";
050  public static final String SERVICE_DATA = "service-data";
051  public static final String CREDENTIALS = "credentials";
052  public static final String SECRETS = "secrets";
053  public static final String TOKENS = "tokens";
054  public static final String TYPE = "type";
055  public static final String VISIBILITY = "visibility";
056  public static final String SIZE = "size";
057  public static final String TIMESTAMP = "timestamp";
058  public static final String MEMORY = "memory";
059  public static final String VCORES = "vCores";
060  public static final String APPS = "apps";
061  public static final String APP = "app";
062  public static final String FINISHED_TIME = "finishedTime";
063  public static final String AM_CONTAINER_LOGS = "amContainerLogs";
064  public static final String TRACKING_UI = "trackingUI";
065  public static final String RESPONSE_APPLICATION_TYPE = "applicationType";
066  public static final String STATE = "state";
067  public static final String USER = "user";
068  public static final String CLUSTER_ID = "clusterId";
069  public static final String FINAL_STATUS = "finalStatus";
070  public static final String AM_HOST_HTTP_ADDRESS = "amHostHttpAddress";
071  public static final String PROGRESS = "progress";
072  public static final String NAME = "name";
073  public static final String STARTED_TIME = "startedTime";
074  public static final String ELAPSED_TIME = "elapsedTime";
075  public static final String DIAGNOSTICS = "diagnostics";
076  public static final String TRACKING_URL = "trackingUrl";
077  public static final String ALLOCATED_MB = "allocatedMB";
078  public static final String ALLOCATED_VCORES = "allocatedVCores";
079  public static final String RUNNING_CONTAINERS = "runningContainers";
080  public static final String MEMORY_SECONDS = "memorySeconds";
081  public static final String VCORE_SECONDS = "vcoreSeconds";
082
083  private Constants() {
084  }
085}