public class TPSTable extends Table
db, tableName, usingMySQL
Modifier and Type | Method and Description |
---|---|
void |
clean()
Clean the TPS Table of old data.
|
void |
createTable() |
Optional<TPS> |
getAllTimePeak() |
Optional<TPS> |
getAllTimePeak(UUID serverUUID) |
Map<UUID,List<TPS>> |
getAllTPS() |
List<TPS> |
getNetworkOnlineData() |
Optional<TPS> |
getPeakPlayerCount(long afterDate) |
Optional<TPS> |
getPeakPlayerCount(UUID serverUUID,
long afterDate) |
List<TPS> |
getTPSData() |
void |
insertAllTPS(Map<UUID,List<TPS>> allTPS) |
void |
insertTPS(TPS tps) |
addColumns, close, commit, createTable, equals, execute, executeUnsafe, getConnection, getDb, getTableName, getVersion, hashCode, removeAllData, removeColumns, toString
public TPSTable(SQLDB db, boolean usingMySQL)
public void createTable() throws DBCreateTableException
createTable
in class Table
DBCreateTableException
public List<TPS> getTPSData() throws SQLException
SQLException
public void insertTPS(TPS tps) throws SQLException
SQLException
public void clean() throws SQLException
SQLException
- DB Errorpublic Optional<TPS> getAllTimePeak(UUID serverUUID) throws SQLException
SQLException
public Optional<TPS> getAllTimePeak() throws SQLException
SQLException
public Optional<TPS> getPeakPlayerCount(long afterDate) throws SQLException
SQLException
public Optional<TPS> getPeakPlayerCount(UUID serverUUID, long afterDate) throws SQLException
SQLException
public Map<UUID,List<TPS>> getAllTPS() throws SQLException
SQLException
public void insertAllTPS(Map<UUID,List<TPS>> allTPS) throws SQLException
SQLException
public List<TPS> getNetworkOnlineData() throws SQLException
SQLException
Copyright © 2017. All rights reserved.