uk.co.real_logic.artio.stress.StressConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of artio-samples Show documentation
Show all versions of artio-samples Show documentation
High-Performance FIX Gateway
The newest version!
/*
* Copyright 2015-2024 Real Logic Limited.
*
* 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
*
* https://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.artio.stress;
final class StressConfiguration
{
static final int PORT = Integer.getInteger("fix.stress.port", 9999);
static final String ACCEPTOR_ID = "ACC";
static final String INITIATOR_ID = "INIT";
static final int NUM_SESSIONS = Integer.getInteger("fix.stress.sessions", 10);
static final int MESSAGES_EXCHANGED = Integer.getInteger("fix.stress.messages", 3);
static final boolean PRINT_EXCHANGE = Boolean.getBoolean("fix.stress.printExchange");
static final long SEED = Long.getLong("fix.stress.seed", 42424242L);
static final int MIN_LENGTH = Integer.getInteger("fix.stress.messages.minLength", 1);
static final int MAX_LENGTH = Integer.getInteger("fix.stress.messages.maxLength", 20);
static final int MESSAGE_POOL = Integer.getInteger("fix.stress.messages.pool", MESSAGES_EXCHANGED);
private static final int DO_NOT_PRINT = -1;
private static final long FAILED_SPINS_PRINT = Long.getLong("fix.stress.failedSpinsPrint", DO_NOT_PRINT);
static boolean printFailedSpints(final long failCount)
{
return FAILED_SPINS_PRINT != DO_NOT_PRINT && failCount > FAILED_SPINS_PRINT;
}
public static final String CONTROL_REQUEST_CHANNEL = "aeron:udp?endpoint=localhost:8010";
public static final String SERVER_CONTROL_RESPONSE_CHANNEL = "aeron:udp?endpoint=localhost:8020";
public static final String CLIENT_CONTROL_RESPONSE_CHANNEL = "aeron:udp?endpoint=localhost:8030";
public static final String REPLICATION_CHANNEL = "aeron:udp?endpoint=localhost:0";
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy