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
Field DUMP_TYPE.
DATE_PATH
Field DATE_PATH.
STRESS_TEST_BOT_TASK
Field STRESS_TEST_BOT_TASK.
STRESS_TEST_DUMP_TASK
Field STRESS_TEST_DUMP_TASK.
spawnProvider
Field spawnProvider.
spawn
Field spawn.
name
Field name.
viewRadius
Field viewRadius.
radius
Field radius.
yheight
Field yheight.
yheightMax
Field yheightMax.
flySpeed
Field flySpeed.
config
Field config.
initCount
Field initCount.
interval
Field interval.
dumpType
Field dumpType.
dumpInterval
Field dumpInterval.
thresholdNanos
Field thresholdNanos.
percentile
Field percentile.
shutdown
Field shutdown.
holder
Field holder.
playerRefComponent
Field playerRefComponent.
manager
Field manager.
percentileDisplay
Field percentileDisplay.
resultsPath
Field resultsPath.
tickStepNanos
Field tickStepNanos.
counter
Field counter.
dumpIntervalMillis
Field dumpIntervalMillis.
path
Field path.
intervalMillis
Field intervalMillis.
path2
Field path2.
historicMetric
Field historicMetric.
periodIndex
Field periodIndex.
avg
Field avg.
min
Field min.
max
Field max.
values
Field values.
p25
Field p25.
p26
Field p26.
p27
Field p27.
bots
Field bots.
p28
Field p28.
Method Detail
StressTestStartCommand
public
StressTestStartCommand
()
Method StressTestStartCommand.
executeAsync
CompletableFuture
executeAsync
(@Nonnull final CommandContext context, @Nonnull final World world)
Method executeAsync.
- Parameters:
@Nonnull final CommandContextcontext@Nonnull final Worldworld
BotConfig
new
BotConfig
(radius, new Vector2d(yheight, yheightMax)
Method BotConfig.
- Parameters:
radiusradiusnewVector2d(yheightyheightMaxyheightMax
start
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 Stringname@Nonnull final Worldworld@Nonnull final BotConfigconfigfinal intinitCountfinal doubleintervalfinal DumpTypedumpTypefinal doubledumpIntervalfinal longthresholdNanosfinal doublepercentilefinal booleanshutdown
TransformComponent
new
TransformComponent
(config.spawn.getPosition()
Method TransformComponent.
- Parameters:
config.spawn.getPosition(config.spawn.getPosition(
Bot
new
Bot
("bot-" + counter.getAndIncrement()
Method Bot.
- Parameters:
"bot-" +counter.getAndIncrement(
stop
void
stop
()
Method stop.