@Test public void testJCache() throws IOException { final String cacheName = "test 1"; final javax.cache.CacheManager jcacheManager = Caching.getCachingProvider() .getCacheManager(); final MutableConfiguration<Object, Object> conf = new MutableConfiguration<Object, Object>(); conf.setManagementEnabled(true); conf.setStatisticsEnabled(true); jcacheManager.createCache(cacheName, conf); jcacheManager.createCache("", conf); final String cacheName2 = "test 2"; try { final javax.cache.Cache<Object, Object> cache = jcacheManager.getCache(cacheName); cache.put(1, Math.random()); cache.get(1); cache.get(0); final MutableConfiguration<Object, Object> conf2 = new MutableConfiguration<Object, Object>(); conf2.setManagementEnabled(false); conf2.setStatisticsEnabled(false); jcacheManager.createCache(cacheName2, conf2); final List<JavaInformations> javaInformationsList2 = Collections .singletonList(new JavaInformations(null, true)); final HtmlReport htmlReport = new HtmlReport(collector, null, javaInformationsList2, Period.TOUT, writer); htmlReport.toHtml(null, null); assertNotEmptyAndClear(writer); setProperty(Parameter.SYSTEM_ACTIONS_ENABLED, "false"); htmlReport.toHtml(null, null); assertNotEmptyAndClear(writer); } finally { setProperty(Parameter.SYSTEM_ACTIONS_ENABLED, null); jcacheManager.destroyCache(cacheName); jcacheManager.destroyCache(cacheName2); } }
@Override void toHtml() throws IOException { writeHtmlHeader(); htmlCoreReport.toHtml(); writeHtmlFooter(); }
HtmlReport extends HtmlAbstractReport { @Override void toHtml() throws IOException { writeHtmlHeader(); htmlCoreReport.toHtml(); writeHtmlFooter(); } }
HtmlReport extends HtmlAbstractReport { @Override void toHtml() throws IOException { writeHtmlHeader(); htmlCoreReport.toHtml(); writeHtmlFooter(); } HtmlReport(Collector collector, CollectorServer collectorServer,
			List<JavaInformations> javaInformationsList, Range range, Writer writer);  HtmlReport(Collector collector, CollectorServer collectorServer,
			List<JavaInformations> javaInformationsList, Period period, Writer writer); }
HtmlReport extends HtmlAbstractReport { @Override void toHtml() throws IOException { writeHtmlHeader(); htmlCoreReport.toHtml(); writeHtmlFooter(); } HtmlReport(Collector collector, CollectorServer collectorServer,
			List<JavaInformations> javaInformationsList, Range range, Writer writer);  HtmlReport(Collector collector, CollectorServer collectorServer,
			List<JavaInformations> javaInformationsList, Period period, Writer writer); void toHtml(String message, String anchorNameForRedirect); void writeLastShutdown(); static void writeAddAndRemoveApplicationLinks(String currentApplication,
			Collection<String> applications, Writer writer); void writeAllCurrentRequestsAsPart(); void writeAllThreadsAsPart(); void writeThreadsDump(); void writeCounterSummaryPerClass(String counterName, String requestId); void writeSource(String className); void writeDependencies(); void writeSpringContext(); void writeHtmlHeader(); void writeHtmlFooter(); void writeMessageIfNotNull(String message, String partToRedirectTo); void writeRequestAndGraphDetail(String graphName); void writeRequestUsages(String graphName); void writeSessions(List<SessionInformations> sessionsInformations, String message,
			String sessionsPart); void writeSessionDetail(String sessionId, SessionInformations sessionInformations); void writeHotspots(List<SampledMethod> hotspots); void writeHeapHistogram(HeapHistogram heapHistogram, String message,
			String heapHistoPart); void writeProcesses(List<ProcessInformations> processInformationsList); void writeProcesses(Map<String, List<ProcessInformations>> processesByTitle); void writeDatabase(DatabaseInformations databaseInformations); void writeConnections(List<ConnectionInformations> connectionInformationsList,
			boolean withoutHeaders); void writeJndi(List<JndiBinding> jndiBindings, String path); void writeMBeans(List<MBeanNode> mbeans); void writeMBeans(Map<String, List<MBeanNode>> mbeansByTitle); void writeCacheWithKeys(String cacheId, CacheInformations cacheInformations,
			String message, String cacheKeyPart, boolean withoutHeaders); void writeJCacheWithKeys(String cacheId, JCacheInformations jcacheInformations,
			String message, String cacheKeyPart, boolean withoutHeaders); void writeCrashes(); void writeHashPassword(String algorithm, String password); }
HtmlReport extends HtmlAbstractReport { @Override void toHtml() throws IOException { writeHtmlHeader(); htmlCoreReport.toHtml(); writeHtmlFooter(); } HtmlReport(Collector collector, CollectorServer collectorServer,
			List<JavaInformations> javaInformationsList, Range range, Writer writer);  HtmlReport(Collector collector, CollectorServer collectorServer,
			List<JavaInformations> javaInformationsList, Period period, Writer writer); void toHtml(String message, String anchorNameForRedirect); void writeLastShutdown(); static void writeAddAndRemoveApplicationLinks(String currentApplication,
			Collection<String> applications, Writer writer); void writeAllCurrentRequestsAsPart(); void writeAllThreadsAsPart(); void writeThreadsDump(); void writeCounterSummaryPerClass(String counterName, String requestId); void writeSource(String className); void writeDependencies(); void writeSpringContext(); void writeHtmlHeader(); void writeHtmlFooter(); void writeMessageIfNotNull(String message, String partToRedirectTo); void writeRequestAndGraphDetail(String graphName); void writeRequestUsages(String graphName); void writeSessions(List<SessionInformations> sessionsInformations, String message,
			String sessionsPart); void writeSessionDetail(String sessionId, SessionInformations sessionInformations); void writeHotspots(List<SampledMethod> hotspots); void writeHeapHistogram(HeapHistogram heapHistogram, String message,
			String heapHistoPart); void writeProcesses(List<ProcessInformations> processInformationsList); void writeProcesses(Map<String, List<ProcessInformations>> processesByTitle); void writeDatabase(DatabaseInformations databaseInformations); void writeConnections(List<ConnectionInformations> connectionInformationsList,
			boolean withoutHeaders); void writeJndi(List<JndiBinding> jndiBindings, String path); void writeMBeans(List<MBeanNode> mbeans); void writeMBeans(Map<String, List<MBeanNode>> mbeansByTitle); void writeCacheWithKeys(String cacheId, CacheInformations cacheInformations,
			String message, String cacheKeyPart, boolean withoutHeaders); void writeJCacheWithKeys(String cacheId, JCacheInformations jcacheInformations,
			String message, String cacheKeyPart, boolean withoutHeaders); void writeCrashes(); void writeHashPassword(String algorithm, String password);  }