com.khubla.pragmatach.plugin.adminapp
Class ShowRouteCacheController

java.lang.Object
  extended by com.khubla.pragmatach.framework.controller.impl.AbstractController
      extended by com.khubla.pragmatach.framework.controller.impl.template.AbstractTemplateEngineController
          extended by com.khubla.pragmatach.framework.controller.impl.FormPostBeanBoundController
              extended by com.khubla.pragmatach.plugin.freemarker.FreemarkerController
                  extended by com.khubla.pragmatach.plugin.adminapp.BaseAdminController
                      extended by com.khubla.pragmatach.plugin.adminapp.SecuredAdminController
                          extended by com.khubla.pragmatach.plugin.adminapp.ShowRouteCacheController
All Implemented Interfaces:
BeanBoundController, PragmatachController

@Controller(name="pragmatachShowRouteCacheController")
@View(view="pragmatach/admin/routecache.html")
public class ShowRouteCacheController
extends SecuredAdminController

Author:
tome

Field Summary
 
Fields inherited from class com.khubla.pragmatach.plugin.adminapp.BaseAdminController
PASSWORD, USERID
 
Constructor Summary
ShowRouteCacheController()
           
 
Method Summary
 Response clearCache()
           
 float getHitRatio()
           
 long getSize()
           
 long getTotalHits()
           
 long getTotalRequests()
           
 Response render()
          check security
 void setHitRatio(float hitRatio)
           
 void setSize(long size)
           
 void setTotalHits(long totalHits)
           
 void setTotalRequests(long totalRequests)
           
 
Methods inherited from class com.khubla.pragmatach.plugin.adminapp.BaseAdminController
isLoggedIn, logout
 
Methods inherited from class com.khubla.pragmatach.plugin.freemarker.FreemarkerController
renderTemplate
 
Methods inherited from class com.khubla.pragmatach.framework.controller.impl.FormPostBeanBoundController
getPostFieldValues, populateController
 
Methods inherited from class com.khubla.pragmatach.framework.controller.impl.template.AbstractTemplateEngineController
getTemplate, getTemplateContext, getTemplateName, url_for
 
Methods inherited from class com.khubla.pragmatach.framework.controller.impl.AbstractController
bad, buildWildcardResourceURI, forward, getApplicationURL, getCacheHeaders, getConfigurationParameter, getControllerName, getControllerName, getPragmatachRoute, getRequest, getResource, getSessionScopedController, ok, redirect, setPragmatachRoute, setRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.khubla.pragmatach.framework.controller.PragmatachController
setPragmatachRoute, setRequest
 

Constructor Detail

ShowRouteCacheController

public ShowRouteCacheController()
Method Detail

clearCache

@Route(uri="/pragmatach/admin/routecache/clear",
       method=post)
public Response clearCache()
                    throws PragmatachException
Throws:
PragmatachException

getHitRatio

public float getHitRatio()

getSize

public long getSize()

getTotalHits

public long getTotalHits()

getTotalRequests

public long getTotalRequests()

render

@Route(uri="/pragmatach/admin/routecache")
public Response render()
                throws PragmatachException
Description copied from class: SecuredAdminController
check security

Overrides:
render in class SecuredAdminController
Throws:
PragmatachException

setHitRatio

public void setHitRatio(float hitRatio)

setSize

public void setSize(long size)

setTotalHits

public void setTotalHits(long totalHits)

setTotalRequests

public void setTotalRequests(long totalRequests)


Copyright © 2014 khubla.com. All rights reserved.