Search in sources :

Example 1 with ServerImportData

use of com.djrapitops.plan.gathering.importing.data.ServerImportData in project Plan by plan-player-analytics.

the class BukkitImporter method processServerData.

private void processServerData() {
    ServerImportData serverImportData = getServerImportData();
    if (serverImportData == null) {
        return;
    }
    dbSystem.getDatabase().executeTransaction(new Transaction() {

        @Override
        protected void performOperations() {
            execute(LargeStoreQueries.storeAllTPSData(Collections.singletonMap(serverUUID.get(), serverImportData.getTpsData())));
        }
    });
}
Also used : Transaction(com.djrapitops.plan.storage.database.transactions.Transaction) ServerImportData(com.djrapitops.plan.gathering.importing.data.ServerImportData)

Aggregations

ServerImportData (com.djrapitops.plan.gathering.importing.data.ServerImportData)1 Transaction (com.djrapitops.plan.storage.database.transactions.Transaction)1