Class TPSBuilder
- java.lang.Object
-
- com.djrapitops.plan.gathering.domain.builders.TPSBuilder
-
public class TPSBuilder extends java.lang.Object
Builder for TPS to make it easier to manage.
-
-
Field Summary
Fields Modifier and Type Field Description protected int
chunksLoaded
protected double
cpuUsage
protected long
date
protected int
entityCount
protected long
freeDiskSpace
protected int
players
protected double
ticksPerSecond
protected long
usedMemory
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TPSBuilder
chunksLoaded(int chunksLoaded)
TPSBuilder
date(long date)
TPSBuilder
entities(int count)
TPSBuilder
freeDiskSpace(long freeDiskSpace)
static TPSBuilder
get()
TPSBuilder
playersOnline(int online)
TPS
toTPS()
TPSBuilder
tps(double tps)
TPSBuilder
usedCPU(double cpu)
TPSBuilder
usedMemory(long ram)
-
-
-
Field Detail
-
date
protected long date
-
ticksPerSecond
protected double ticksPerSecond
-
players
protected int players
-
cpuUsage
protected double cpuUsage
-
usedMemory
protected long usedMemory
-
entityCount
protected int entityCount
-
chunksLoaded
protected int chunksLoaded
-
freeDiskSpace
protected long freeDiskSpace
-
-
Method Detail
-
get
public static TPSBuilder get()
-
toTPS
public TPS toTPS()
-
date
public TPSBuilder date(long date)
-
tps
public TPSBuilder tps(double tps)
-
playersOnline
public TPSBuilder playersOnline(int online)
-
usedCPU
public TPSBuilder usedCPU(double cpu)
-
usedMemory
public TPSBuilder usedMemory(long ram)
-
entities
public TPSBuilder entities(int count)
-
chunksLoaded
public TPSBuilder chunksLoaded(int chunksLoaded)
-
freeDiskSpace
public TPSBuilder freeDiskSpace(long freeDiskSpace)
-
-