public class MonitoringController extends Object
Constructor and Description |
---|
MonitoringController(Collector collector,
CollectorServer collectorServer) |
public MonitoringController(Collector collector, CollectorServer collectorServer)
public String executeActionIfNeeded(HttpServletRequest httpRequest) throws IOException
IOException
public static void checkCsrfToken(HttpServletRequest httpRequest)
public void doActionIfNeededAndReport(HttpServletRequest httpRequest, HttpServletResponse httpResponse, ServletContext servletContext) throws IOException, ServletException
IOException
ServletException
public void doReport(HttpServletRequest httpRequest, HttpServletResponse httpResponse, List<JavaInformations> javaInformationsList) throws IOException, ServletException
IOException
ServletException
public void doPrometheus(HttpServletResponse httpResponse, List<JavaInformations> javaInformationsList, boolean includeLastValue) throws IOException
IOException
public static void noCache(HttpServletResponse httpResponse)
public void addPdfContentTypeAndDisposition(HttpServletRequest httpRequest, HttpServletResponse httpResponse)
public void writeHtmlToLastShutdownFile()
public void doCompressedSerializable(HttpServletRequest httpRequest, HttpServletResponse httpResponse, Serializable serializable) throws IOException
IOException
public static void doResource(HttpServletResponse httpResponse, String resource) throws IOException
IOException
public static void addHeadersForResource(HttpServletResponse httpResponse, String resource)
public static boolean isJavaInformationsNeeded(HttpServletRequest httpRequest)
Copyright © 2008–2019 Emeric Vernat. All rights reserved.