Package org.b3log.latke.servlet.renderer

Examples of org.b3log.latke.servlet.renderer.DoNothingRenderer


     *
     * @param context the specified context
     */
    @RequestProcessing(value = "/console/stat/onlineVisitorRefresh", method = HTTPRequestMethod.GET)
    public void onlineVisitorCountRefresher(final HTTPRequestContext context) {
        context.setRenderer(new DoNothingRenderer());

        statisticMgmtService.removeExpiredOnlineVisitor();
    }
View Full Code Here


     */
    @RequestProcessing(value = "/console/stat/onlineVisitorRefresh", method = HTTPRequestMethod.GET)
    public void onlineVisitorCountRefresher(final HTTPRequestContext context) {
        LOGGER.log(Level.INFO, "Refreshes online visitor count");

        context.setRenderer(new DoNothingRenderer());

        Statistics.removeExpiredOnlineVisitor();
    }
View Full Code Here

     */
    @RequestProcessing(value = "/console/stat/viewcnt", method = HTTPRequestMethod.GET)
    public void viewCounter(final HTTPRequestContext context) {
        LOGGER.log(Level.INFO, "Sync statistic from memcache to repository");

        context.setRenderer(new DoNothingRenderer());

        final JSONObject statistic = (JSONObject) statisticRepository.getCache().
                get(Statistics.REPOSITORY_CACHE_KEY_PREFIX + Statistic.STATISTIC);
        if (null == statistic) {
            LOGGER.log(Level.INFO, "Not found statistic in memcache, ignores sync");
View Full Code Here

                clearPageCache(uri);
            } else { // Clears all page caches
                clearAllPageCache();
            }

            context.setRenderer(new DoNothingRenderer());
        } catch (final Exception e) {
            LOGGER.log(Level.SEVERE, e.getMessage(), e);
        }
    }
View Full Code Here

TOP

Related Classes of org.b3log.latke.servlet.renderer.DoNothingRenderer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.