-
-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Change proxy server info storage to allow multiple proxies to exist in the database - Allow naming Proxies with Server.Name config setting - Server.IP is no longer required to be set during installation - Change logic reliant on single proxy server to consider multiple proxies - If multiple proxies have webserver or export enabled, the address given by commands can be any of them. - Network players online graph now stacks if redisbungee is not used. Individual players online graphs for different proxies can be viewed from Performance tab. - Last Peak and All Time Peak are not given for multi-proxy networks without redisbungee since it would be expensive to calculate. - Improved network performance tab considerably - /plan info displays the Server UUID of the current server - /plan server link goes to /server/UUID instead of /server/Name - Fix join address graphs not loading if strict GROUP BY is enabled in MySQL Affects issues: - Close #1454
- Loading branch information
Showing
43 changed files
with
649 additions
and
258 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 65 additions & 0 deletions
65
...rc/main/java/com/djrapitops/plan/delivery/domain/datatransfer/graphs/GraphCollection.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
/* | ||
* 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.domain.datatransfer.graphs; | ||
|
||
import java.util.List; | ||
import java.util.Objects; | ||
|
||
/** | ||
* Represents multiple graphs of same type. | ||
* | ||
* @author AuroraLS3 | ||
*/ | ||
public class GraphCollection<T> { | ||
|
||
private final List<T> graphs; | ||
private final String color; | ||
|
||
public GraphCollection(List<T> graphs, String color) { | ||
this.graphs = graphs; | ||
this.color = color; | ||
} | ||
|
||
public List<T> getGraphs() { | ||
return graphs; | ||
} | ||
|
||
public String getColor() { | ||
return color; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
GraphCollection<?> that = (GraphCollection<?>) o; | ||
return Objects.equals(getGraphs(), that.getGraphs()) && Objects.equals(getColor(), that.getColor()); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(getGraphs(), getColor()); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "GraphCollection{" + | ||
"graphs=" + graphs + | ||
", color='" + color + '\'' + | ||
'}'; | ||
} | ||
} |
67 changes: 67 additions & 0 deletions
67
...java/com/djrapitops/plan/delivery/domain/datatransfer/graphs/ServerSpecificLineGraph.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
/* | ||
* 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.domain.datatransfer.graphs; | ||
|
||
import com.djrapitops.plan.delivery.domain.datatransfer.ServerDto; | ||
|
||
import java.util.List; | ||
import java.util.Objects; | ||
|
||
/** | ||
* Represents a line graph of some server so that they can be stacked. | ||
* | ||
* @author AuroraLS3 | ||
*/ | ||
public class ServerSpecificLineGraph { | ||
|
||
private final List<Double[]> points; | ||
private final ServerDto server; | ||
|
||
public ServerSpecificLineGraph(List<Double[]> points, ServerDto server) { | ||
this.points = points; | ||
this.server = server; | ||
} | ||
|
||
public List<Double[]> getPoints() { | ||
return points; | ||
} | ||
|
||
public ServerDto getServer() { | ||
return server; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
ServerSpecificLineGraph that = (ServerSpecificLineGraph) o; | ||
return Objects.equals(getPoints(), that.getPoints()) && Objects.equals(getServer(), that.getServer()); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(getPoints(), getServer()); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "ServerSpecificLineGraph{" + | ||
"points=" + points + | ||
", server=" + server + | ||
'}'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.