@Singleton public class BukkitTPSCountTimer extends TPSCountTimer
Modifier and Type | Field and Description |
---|---|
protected Plan |
plugin |
dbSystem, errorHandler, history, latestPlayersOnline, logger, serverInfo
Constructor and Description |
---|
BukkitTPSCountTimer(Plan plugin,
DBSystem dbSystem,
ServerInfo serverInfo,
ServerProperties serverProperties,
com.djrapitops.plugin.logging.console.PluginLogger logger,
com.djrapitops.plugin.logging.error.ErrorHandler errorHandler) |
Modifier and Type | Method and Description |
---|---|
void |
addNewTPSEntry(long nanoTime,
long now) |
protected int |
getEntityCount()
Gets the amount of entities on the server for Bukkit / Spigot
|
protected TPS |
getTPS(long diff,
long now,
double cpuUsage,
long usedMemory,
int entityCount,
int chunksLoaded,
int playersOnline,
long freeDiskSpace) |
getCPUUsage, getFreeDiskSpace, getLatestPlayersOnline, getUsedMemory, run
protected final Plan plugin
@Inject public BukkitTPSCountTimer(Plan plugin, DBSystem dbSystem, ServerInfo serverInfo, ServerProperties serverProperties, com.djrapitops.plugin.logging.console.PluginLogger logger, com.djrapitops.plugin.logging.error.ErrorHandler errorHandler)
public void addNewTPSEntry(long nanoTime, long now)
addNewTPSEntry
in class TPSCountTimer
protected TPS getTPS(long diff, long now, double cpuUsage, long usedMemory, int entityCount, int chunksLoaded, int playersOnline, long freeDiskSpace)
protected int getEntityCount()