PacketStatsCommand

public class PacketStatsCommand extends AbstractTargetPlayerCommand

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

java.lang.Object > AbstractTargetPlayerCommand > PacketStatsCommand

Field Summary

packetName

final String packetName

Field packetName.

packetHandler

final PacketHandler packetHandler

Field packetHandler.

recorder

final PacketStatsRecorder recorder

Field recorder.

entry

final PacketStatsRecorder.PacketStatsEntry entry

Field entry.

sentTotal

final Message sentTotal

Field sentTotal.

sentRecently

final PacketStatsRecorder.RecentStats sentRecently

Field sentRecently.

sentRecentlyCount

final int sentRecentlyCount

Field sentRecentlyCount.

sentRecent

final Message sentRecent

Field sentRecent.

receivedTotal

final Message receivedTotal

Field receivedTotal.

receivedRecently

final PacketStatsRecorder.RecentStats receivedRecently

Field receivedRecently.

receivedRecentlyCount

final int receivedRecentlyCount

Field receivedRecentlyCount.

receivedRecent

final Message receivedRecent

Field receivedRecent.

entryName

final String entryName

Field entryName.

list

final ObjectArrayList list

Field list.

name

final String name

Field name.

Method Detail

PacketStatsCommand

public public PacketStatsCommand ()

Method PacketStatsCommand.

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

findEntry

static PacketStatsRecorder.PacketStatsEntry findEntry (final PacketStatsRecorder recorder, final String name)

Method findEntry.

Parameters:
final PacketStatsRecorder recorder
final String name

getEntryNames

static List getEntryNames (final PacketStatsRecorder recorder)

Method getEntryNames.

Parameters:
final PacketStatsRecorder recorder