StressTestStartCommand

public class StressTestStartCommand extends AbstractAsyncWorldCommand

Command for stressteststar operations. Registered with the command system and callable by players.

java.lang.Object > AbstractAsyncWorldCommand > StressTestStartCommand

Field Summary

DUMP_TYPE

static DumpType DUMP_TYPE

Field DUMP_TYPE.

DATE_PATH

static Path DATE_PATH

Field DATE_PATH.

STRESS_TEST_BOT_TASK

static ScheduledFuture STRESS_TEST_BOT_TASK

Field STRESS_TEST_BOT_TASK.

STRESS_TEST_DUMP_TASK

static ScheduledFuture STRESS_TEST_DUMP_TASK

Field STRESS_TEST_DUMP_TASK.

spawnProvider

final ISpawnProvider spawnProvider

Field spawnProvider.

spawn

final Transform spawn

Field spawn.

name

final String name

Field name.

viewRadius

final int viewRadius

Field viewRadius.

radius

final double radius

Field radius.

yheight

final double yheight

Field yheight.

yheightMax

final double yheightMax

Field yheightMax.

flySpeed

final double flySpeed

Field flySpeed.

config

final BotConfig config

Field config.

initCount

final int initCount

Field initCount.

interval

final double interval

Field interval.

dumpType

final DumpType dumpType

Field dumpType.

dumpInterval

final double dumpInterval

Field dumpInterval.

thresholdNanos

final int thresholdNanos

Field thresholdNanos.

percentile

final double percentile

Field percentile.

shutdown

final boolean shutdown

Field shutdown.

holder

final Holder holder

Field holder.

playerRefComponent

final PlayerRef playerRefComponent

Field playerRefComponent.

manager

final InteractionManager manager

Field manager.

percentileDisplay

final String percentileDisplay

Field percentileDisplay.

resultsPath

final Path resultsPath

Field resultsPath.

tickStepNanos

final int tickStepNanos

Field tickStepNanos.

counter

final AtomicInteger counter

Field counter.

dumpIntervalMillis

final int dumpIntervalMillis

Field dumpIntervalMillis.

path

final Path path

Field path.

intervalMillis

final int intervalMillis

Field intervalMillis.

path2

final Path path2

Field path2.

historicMetric

final HistoricMetric historicMetric

Field historicMetric.

periodIndex

final int periodIndex

Field periodIndex.

avg

final double avg

Field avg.

min

final long min

Field min.

max

final long max

Field max.

values

final long[] values

Field values.

p25

final double p25

Field p25.

p26

final double p26

Field p26.

p27

final double p27

Field p27.

bots

final int bots

Field bots.

p28

final double p28

Field p28.

Method Detail

StressTestStartCommand

public public StressTestStartCommand ()

Method StressTestStartCommand.

executeAsync

protected CompletableFuture executeAsync (@Nonnull final CommandContext context, @Nonnull final World world)

Method executeAsync.

Parameters:
@Nonnull final CommandContext context
@Nonnull final World world

BotConfig

public new BotConfig (radius, new Vector2d(yheight, yheightMax)

Method BotConfig.

Parameters:
radius radius
new Vector2d(yheight
yheightMax yheightMax

start

static void start (@Nullable final String name, @Nonnull final World world, @Nonnull final BotConfig config, final int initCount, final double interval, final DumpType dumpType, final double dumpInterval, final long thresholdNanos, final double percentile, final boolean shutdown)

Method start.

Parameters:
@Nullable final String name
@Nonnull final World world
@Nonnull final BotConfig config
final int initCount
final double interval
final DumpType dumpType
final double dumpInterval
final long thresholdNanos
final double percentile
final boolean shutdown

TransformComponent

public new TransformComponent (config.spawn.getPosition()

Method TransformComponent.

Parameters:
config.spawn.getPosition( config.spawn.getPosition(

Bot

public new Bot ("bot-" + counter.getAndIncrement()

Method Bot.

Parameters:
"bot-" + counter.getAndIncrement(

stop

static void stop ()

Method stop.