java.lang.Object
com.djrapitops.plan.delivery.domain.mutators.TPSMutator

public class TPSMutator extends Object
Mutator for a list of TPS data.

Can be used to get properties of a large number of TPS entries easily.

  • Constructor Details

    • TPSMutator

      public TPSMutator(List<TPS> tpsData)
  • Method Details

    • copyOf

      public static TPSMutator copyOf(TPSMutator mutator)
    • filterBy

      public TPSMutator filterBy(Predicate<TPS> filter)
    • filterDataBetween

      public TPSMutator filterDataBetween(long after, long before)
    • filterTPSBetween

      public TPSMutator filterTPSBetween(double above, double below)
    • all

      public List<TPS> all()
    • playersOnlinePoints

      public List<Point> playersOnlinePoints()
    • tpsPoints

      public List<Point> tpsPoints()
    • cpuPoints

      public List<Point> cpuPoints()
    • ramUsagePoints

      public List<Point> ramUsagePoints()
    • entityPoints

      public List<Point> entityPoints()
    • chunkPoints

      public List<Point> chunkPoints()
    • freeDiskPoints

      public List<Point> freeDiskPoints()
    • serverDownTime

      public long serverDownTime()
    • serverOccupiedTime

      public long serverOccupiedTime()
    • percentageTPSAboveThreshold

      public double percentageTPSAboveThreshold(int threshold)
    • lowTpsSpikeCount

      public int lowTpsSpikeCount(double threshold)
    • averagePlayers

      public int averagePlayers()
    • averageTPS

      public double averageTPS()
    • averageCPU

      public double averageCPU()
    • averageRAM

      public double averageRAM()
    • averageEntities

      public double averageEntities()
    • averageChunks

      public double averageChunks()
    • averageFreeDisk

      public double averageFreeDisk()
    • maxFreeDisk

      public long maxFreeDisk()
    • minFreeDisk

      public long minFreeDisk()
    • averagePlayersOnline

      public double averagePlayersOnline()
    • getLast

      public Optional<TPS> getLast()
    • toArrays

      public List<Number[]> toArrays(LineGraph.GapStrategy gapStrategy)