Class ServerData


  • public final class ServerData
    extends Object
    Created by Andrey Titov on 16.06.16. Class contains all interesting data about the server
    • Constructor Detail

      • ServerData

        public ServerData​(@NotNull
                          MemoryUsageMonitor memoryUsageMonitor,
                          @Nullable
                          javax.servlet.http.HttpServletRequest request)
    • Method Detail

      • isMemoryDumpAvailable

        public boolean isMemoryDumpAvailable()
      • getAvailableLoggingPresets

        @NotNull
        public List<String> getAvailableLoggingPresets()
      • getCurrentLoggingPreset

        @NotNull
        public String getCurrentLoggingPreset()
      • getHeapMemoryUsage

        @NotNull
        public MemoryUsage getHeapMemoryUsage()
      • getPermGenPoolMemoryUsage

        @Nullable
        public MemoryUsage getPermGenPoolMemoryUsage()
      • getAvailableProcessors

        public int getAvailableProcessors()
      • getServerInfo

        @Nullable
        public String getServerInfo()
      • toJsonElement

        @NotNull
        public com.google.gson.JsonElement toJsonElement()
      • fromJson

        @NotNull
        public static ServerData fromJson​(@NotNull
                                          String data)
      • toJson

        @NotNull
        public String toJson()