public abstract class TPSCountTimer
extends com.djrapitops.plugin.task.AbsRunnable
Modifier and Type | Field and Description |
---|---|
protected DBSystem |
dbSystem |
protected com.djrapitops.plugin.logging.error.ErrorHandler |
errorHandler |
protected java.util.List<TPS> |
history |
protected int |
latestPlayersOnline |
protected com.djrapitops.plugin.logging.console.PluginLogger |
logger |
protected ServerInfo |
serverInfo |
Constructor and Description |
---|
TPSCountTimer(DBSystem dbSystem,
ServerInfo serverInfo,
com.djrapitops.plugin.logging.console.PluginLogger logger,
com.djrapitops.plugin.logging.error.ErrorHandler errorHandler) |
Modifier and Type | Method and Description |
---|---|
abstract void |
addNewTPSEntry(long nanoTime,
long now) |
protected double |
getCPUUsage() |
protected long |
getFreeDiskSpace() |
int |
getLatestPlayersOnline() |
protected long |
getUsedMemory() |
void |
run() |
protected final java.util.List<TPS> history
protected final DBSystem dbSystem
protected final ServerInfo serverInfo
protected final com.djrapitops.plugin.logging.console.PluginLogger logger
protected final com.djrapitops.plugin.logging.error.ErrorHandler errorHandler
protected int latestPlayersOnline
public TPSCountTimer(DBSystem dbSystem, ServerInfo serverInfo, com.djrapitops.plugin.logging.console.PluginLogger logger, com.djrapitops.plugin.logging.error.ErrorHandler errorHandler)
public void run()
public abstract void addNewTPSEntry(long nanoTime, long now)
public int getLatestPlayersOnline()
protected long getUsedMemory()
protected double getCPUUsage()
protected long getFreeDiskSpace()