2019-08-30 22:48:36 +02:00
|
|
|
/*
|
|
|
|
* This file is part of Player Analytics (Plan).
|
|
|
|
*
|
|
|
|
* Plan is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License v3 as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* Plan is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* along with Plan. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
package com.djrapitops.plan.delivery.webserver.cache;
|
|
|
|
|
2021-03-12 17:03:00 +01:00
|
|
|
import com.djrapitops.plan.identification.ServerUUID;
|
2019-08-30 22:48:36 +02:00
|
|
|
|
|
|
|
/**
|
2021-02-12 09:56:48 +01:00
|
|
|
* Enum for different JSON data entries that can be stored in cache.
|
2019-08-30 22:48:36 +02:00
|
|
|
*
|
2021-02-13 14:16:03 +01:00
|
|
|
* @author AuroraLS3
|
2019-08-30 22:48:36 +02:00
|
|
|
*/
|
|
|
|
public enum DataID {
|
|
|
|
PLAYERS,
|
|
|
|
SESSIONS,
|
|
|
|
SERVERS,
|
|
|
|
KILLS,
|
|
|
|
PING_TABLE,
|
|
|
|
GRAPH_PERFORMANCE,
|
2021-01-24 16:40:30 +01:00
|
|
|
GRAPH_OPTIMIZED_PERFORMANCE,
|
2019-08-30 22:48:36 +02:00
|
|
|
GRAPH_ONLINE,
|
|
|
|
GRAPH_UNIQUE_NEW,
|
2020-05-15 20:48:35 +02:00
|
|
|
GRAPH_HOURLY_UNIQUE_NEW,
|
2019-08-30 22:48:36 +02:00
|
|
|
GRAPH_CALENDAR,
|
|
|
|
GRAPH_WORLD_PIE,
|
|
|
|
GRAPH_WORLD_MAP,
|
|
|
|
GRAPH_ACTIVITY,
|
|
|
|
GRAPH_PING,
|
2019-08-30 23:20:50 +02:00
|
|
|
GRAPH_SERVER_PIE,
|
2021-03-09 09:01:09 +01:00
|
|
|
GRAPH_HOSTNAME_PIE,
|
2019-08-30 22:48:36 +02:00
|
|
|
GRAPH_PUNCHCARD,
|
|
|
|
SERVER_OVERVIEW,
|
|
|
|
ONLINE_OVERVIEW,
|
|
|
|
SESSIONS_OVERVIEW,
|
|
|
|
PVP_PVE,
|
|
|
|
PLAYERBASE_OVERVIEW,
|
|
|
|
PERFORMANCE_OVERVIEW,
|
2019-09-28 09:56:03 +02:00
|
|
|
EXTENSION_NAV,
|
2021-07-17 11:19:33 +02:00
|
|
|
EXTENSION_TABS,
|
2022-08-21 09:35:29 +02:00
|
|
|
EXTENSION_JSON,
|
2022-09-05 15:56:59 +02:00
|
|
|
LIST_SERVERS,
|
|
|
|
JOIN_ADDRESSES_BY_DAY;
|
2019-08-30 22:48:36 +02:00
|
|
|
|
2021-03-12 17:03:00 +01:00
|
|
|
public String of(ServerUUID serverUUID) {
|
2023-01-22 09:18:14 +01:00
|
|
|
if (serverUUID == null) return name();
|
2019-08-30 22:48:36 +02:00
|
|
|
return name() + '-' + serverUUID;
|
|
|
|
}
|
|
|
|
}
|