/*
 * Copyright 2014 Real Logic Ltd.
 *
 * Licensed 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 uk.co.real_logic.aeron.util;

/**
 * Location of configuration that is common between the client and the media driver.
 */
public class CommonConfiguration
{
    /** Directory of the data buffers */
    public static final String DATA_DIR_PROPERTY_NAME = "aeron.data.dir";
    /** Default directory for data buffers */
    public static final String DATA_DIR_PROPERTY_NAME_DEFAULT = IoUtil.tmpDir() + "/aeron/data";

    /** Directory of the conductor buffers */
    public static final String ADMIN_DIR_PROPERTY_NAME = "aeron.conductor.dir";
    /** Default directory for conductor buffers */
    public static final String ADMIN_DIR_PROPERTY_NAME_DEFAULT = IoUtil.tmpDir() + "/aeron/conductor";

    /** Length of the maximum transport unit of the media driver's protocol */
    private static final java.lang.String MTU_LENGTH_NAME = "aeron.mtu.length";
    private static final int MTU_LENGTH_DEFAULT = 1280;

    public static final String DATA_DIR = System.getProperty(DATA_DIR_PROPERTY_NAME, DATA_DIR_PROPERTY_NAME_DEFAULT);
    public static final String ADMIN_DIR = System.getProperty(ADMIN_DIR_PROPERTY_NAME, ADMIN_DIR_PROPERTY_NAME_DEFAULT);
    public static final int MTU_LENGTH = Integer.getInteger(MTU_LENGTH_NAME, MTU_LENGTH_DEFAULT);
}

@@ -956,37 +956,32 @@
 TA_DIR_PROPERTY_
-NAME_
 DEFAULT = IoUtil
@@ -1227,36 +1227,304 @@
 IN_DIR_PROPERTY_
-NAME
+DEFAULT = IoUtil.tmpDir() + %22/aeron/conductor%22;%0A%0A    /** Directory for the counters */%0A    public static final String COUNTERS_DIR_PROPERTY_NAME = %22aeron.counters.dir%22;%0A    /** Default directory for conductor buffers */%0A    public static final String COUNTERS_DIR_PROPERTY
 _DEFAULT = IoUti
@@ -1538,39 +1538,38 @@
 r() + %22/aeron/co
-nductor
+unters
 %22;%0A%0A    /** Leng
@@ -1867,37 +1867,32 @@
 TA_DIR_PROPERTY_
-NAME_
 DEFAULT);%0A    pu
@@ -1991,20 +1991,140 @@
 ROPERTY_
-NAME
+DEFAULT);%0A    public static final String COUNTERS_DIR = System.getProperty(COUNTERS_DIR_PROPERTY_NAME, COUNTERS_DIR_PROPERTY
 _DEFAULT

add in directory for stashing counter buffers