PingCommand

public class PingCommand extends AbstractTargetPlayerCommand

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

java.lang.Object > AbstractTargetPlayerCommand > PingCommand

Field Summary

msg

final Message msg

Field msg.

values

final PongType[] values

Field values.

pingType

final PongType pingType

Field pingType.

pingInfo

final PacketHandler.PingInfo pingInfo

Field pingInfo.

historicMetric

final HistoricMetric historicMetric

Field historicMetric.

periods

final long[] periods

Field periods.

length

final String length

Field length.

average

final double average

Field average.

max

final long max

Field max.

min

final long min

Field min.

value

final String value

Field value.

width

final int width

Field width.

height

final int height

Field height.

startNanos

final long startNanos

Field startNanos.

message

final Message message

Field message.

pingMetricSet

final HistoricMetric pingMetricSet

Field pingMetricSet.

period

final long period

Field period.

historyTimestamps

final long[] historyTimestamps

Field historyTimestamps.

historyValues

final long[] historyValues

Field historyValues.

historyLengthFormatted

final String historyLengthFormatted

Field historyLengthFormatted.

sb

final StringBuilder sb

Field sb.

Method Detail

PingCommand

public public PingCommand ()

Method PingCommand.

Clear

public new Clear ()

Method Clear.

Graph

public new Graph ()

Method Graph.

execute

protected void execute (@Nonnull final CommandContext context, @Nullable final Ref sourceRef, @Nonnull final Ref ref, @Nonnull final PlayerRef playerRef, @Nonnull final World world, @Nonnull final Store store)

Method execute.

Parameters:
@Nonnull final CommandContext context
@Nullable final Ref sourceRef
@Nonnull final Ref ref
@Nonnull final PlayerRef playerRef
@Nonnull final World world
@Nonnull final Store store

sendDetailedMessage

private void sendDetailedMessage (@Nonnull final CommandContext context, @Nonnull final PlayerRef playerRef)

Method sendDetailedMessage.

Parameters:
@Nonnull final CommandContext context
@Nonnull final PlayerRef playerRef

sendShortMessage

private void sendShortMessage (@Nonnull final CommandContext context, @Nonnull final PlayerRef playerRef)

Method sendShortMessage.

Parameters:
@Nonnull final CommandContext context
@Nonnull final PlayerRef playerRef