| /* |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you under the Apache License, Version 2.0 (the |
| * "License"); you may not use this file except in compliance |
| * with the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| package org.apache.twill.internal; |
| |
| /** |
| * Defines keys and default values constants being used for configuration. |
| */ |
| public final class Configs { |
| |
| /** |
| * Defines keys being used in configuration. |
| */ |
| public static final class Keys { |
| /** |
| * Size in MB of reserved memory for Java process (non-heap memory). |
| */ |
| public static final String JAVA_RESERVED_MEMORY_MB = "twill.java.reserved.memory.mb"; |
| |
| /** |
| * Set this to false to disable the secure store updates done by default. |
| */ |
| public static final String SECURE_STORE_UPDATE_LOCATION_ENABLED = "twill.secure.store.update.location.enabled"; |
| |
| private Keys() { |
| } |
| } |
| |
| /** |
| * Defines default configuration values. |
| */ |
| public static final class Defaults { |
| // By default have 200MB reserved for Java process. |
| public static final int JAVA_RESERVED_MEMORY_MB = 200; |
| |
| private Defaults() { |
| } |
| } |
| |
| private Configs() { |
| } |
| } |