com.poscoict.glueframework.cache.remote
Class GlueCacheClearServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.poscoict.glueframework.cache.remote.GlueCacheClearServlet
All Implemented Interfaces:
GlueCacheEventReceiver, Serializable, Servlet, ServletConfig

public class GlueCacheClearServlet
extends HttpServlet
implements GlueCacheEventReceiver

GlueCacheClearServlet[CacheEventReceiver]´Â cache event¸¦ ¼ö½ÅÇÏ¿©, cacheManagerÀÇ cache data¸¦ »èÁ¦ÇÏ´Â ServletÀÌ´Ù.

 web.xml ÆÄÀÏ ³»¿ë
 <servlet>
     <servlet-name>cache</servlet-name>
     <servlet-class>com.poscoict.glueframework.cache.remote.GlueCacheClearServlet</servlet-class>
     <init-param>
         <param-name>UD_SC_SUCCESS</param-name>
         <param-value>700</param-value>
     </init-param>
     <init-param>
         <param-name>UD_SC_FAILURE</param-name>
         <param-value>800</param-value>
     </init-param>
     <load-on-startup>2</load-on-startup>
 </servlet>
 <servlet-mapping>
     <servlet-name>cache</servlet-name>
     <url-pattern>*.cache</url-pattern>
 </servlet-mapping>
  
 url & parameter
 http://://cache.remove
    __region_name__, __cache_key__, __requestor__ ·Î
      com.poscoict.glueframework.cache.remote.GlueCacheEvent ÀÇ »ý¼ºÀÚ°ªÀ¸·Î »ç¿ëÇÔ. 
 
 init-param
 GlueCacheClearServlet servletÀÇ init-paramÀº ´ÙÀ½°ú °°´Ù. 
 - UD_SC_SUCCESS : HttpResponse Á¤»ó »óÅÂÄÚµå Á¤ÀÇ, default 700 
 - UD_SC_FAILURE : HttpResponse ¿¡·¯ »óÅÂÄÚµå Á¤ÀÇ, default 800
 

See Also:
Serialized Form

Constructor Summary
GlueCacheClearServlet()
           
 
Method Summary
 void destroy()
           
protected  GlueCacheEventProcessor getCacheEventProcessor()
          getter method.
 void init(ServletConfig config)
           
 int removeCachedObject(String region, String key)
           
 int removeCachedObject(String region, String[] keys)
           
protected  void service(HttpServletRequest request, HttpServletResponse response)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlueCacheClearServlet

public GlueCacheClearServlet()
Method Detail

getCacheEventProcessor

protected GlueCacheEventProcessor getCacheEventProcessor()
getter method.

Returns:
GlueCacheEventProcessor

init

public void init(ServletConfig config)
          throws ServletException
Specified by:
init in interface Servlet
Overrides:
init in class GenericServlet
Throws:
ServletException

service

protected void service(HttpServletRequest request,
                       HttpServletResponse response)
                throws ServletException,
                       IOException
Overrides:
service in class HttpServlet
Throws:
ServletException
IOException

destroy

public void destroy()
Specified by:
destroy in interface Servlet
Overrides:
destroy in class GenericServlet

removeCachedObject

public int removeCachedObject(String region,
                              String key)
Specified by:
removeCachedObject in interface GlueCacheEventReceiver

removeCachedObject

public int removeCachedObject(String region,
                              String[] keys)
Specified by:
removeCachedObject in interface GlueCacheEventReceiver


Copyright © 2013–2014 POSCO ICT SWÁ¦Ç°±â¼úÆÀ. All rights reserved.