public class TPS extends java.lang.Object implements DateHolder
Constructor and Description |
---|
TPS(long date,
double ticksPerSecond,
int players,
double cpuUsage,
long usedMemory,
int entityCount,
int chunksLoaded,
long freeDiskSpace)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
getChunksLoaded()
Get the amount of chunks loaded for the time, when the data was fetched
|
double |
getCPUUsage()
Get the average CPU Usage for the minute
|
long |
getDate()
Get the date the object holds.
|
int |
getEntityCount()
Get the amount of entities for the time, when the data was fetched
|
long |
getFreeDiskSpace()
Get free megabytes of disk space on the server disk.
|
int |
getPlayers()
Get the player for the time, when the data was fetched.
|
double |
getTicksPerSecond()
Get the average ticksPerSecond for the minute.
|
long |
getUsedMemory()
Get the used memory for the time, when the data was fetched.
|
int |
hashCode() |
java.lang.String |
toString() |
public TPS(long date, double ticksPerSecond, int players, double cpuUsage, long usedMemory, int entityCount, int chunksLoaded, long freeDiskSpace)
date
- time of the TPS calculation.ticksPerSecond
- average ticksPerSecond for the last minute.players
- players for the minute.cpuUsage
- CPU usage for the minuteusedMemory
- used memory (megabytes) at the time of fetchingentityCount
- amount of entities at the time of fetchingchunksLoaded
- amount of chunks loaded at the time of fetchingfreeDiskSpace
- free megabytes in the partition the server is running in.public long getDate()
DateHolder
getDate
in interface DateHolder
public double getTicksPerSecond()
public int getPlayers()
public double getCPUUsage()
public long getUsedMemory()
public int getEntityCount()
public int getChunksLoaded()
public long getFreeDiskSpace()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object