Compiere 3.1

org.compiere.cm
Class CacheHandler

java.lang.Object
  extended by org.compiere.cm.CacheHandler

public class CacheHandler
extends Object

The CacheHandler handles deployment and clean of internal and external caches

Version:
$Id$
Author:
Yves Sandfort

Field Summary
protected  String[] cacheURLs
           
protected  CLogger log
           
 
Constructor Summary
CacheHandler(String[] thisURLs, CLogger tLog)
          CacheHandler form multiple URLs
CacheHandler(String thisURL, CLogger tLog, Ctx ctx, String trxName)
          CacheHandler for single URL environment
 
Method Summary
 void cleanContainer(Integer ID)
          Clean ContainerCache for this ID
 void cleanContainer(String ID)
          Clean ContainerCache for this ID
 void cleanContainerElement(Integer ID)
          Clean Container Element for this ID
 void cleanContainerElement(String ID)
          Clean Container Element for this ID
 void cleanContainerTree(Integer ID)
          Clean ContainerTreeCache for this WebProjectID
 void cleanContainerTree(String ID)
          Clean ContainerTreeCache for this WebProjectID
 void cleanTemplate(Integer ID)
          Clean Template cache for this ID
 void cleanTemplate(String ID)
          Clean Template cache for this ID
static String convertJNPURLToCacheURL(String JNPURL)
          Converts JNP URL to http URL for cache cleanup
 void emptyTemplate()
          Empty all Template Caches
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cacheURLs

protected String[] cacheURLs

log

protected CLogger log
Constructor Detail

CacheHandler

public CacheHandler(String thisURL,
                    CLogger tLog,
                    Ctx ctx,
                    String trxName)
CacheHandler for single URL environment

Parameters:
thisURL - URL of this Server
tLog - thisLogger
ctx - Propertie Context
trxName - Transaction

CacheHandler

public CacheHandler(String[] thisURLs,
                    CLogger tLog)
CacheHandler form multiple URLs

Parameters:
thisURLs - Array of Cache Server URLs
tLog - Logger
Method Detail

cleanTemplate

public void cleanTemplate(Integer ID)
Clean Template cache for this ID

Parameters:
ID - ID of template to clean

cleanTemplate

public void cleanTemplate(String ID)
Clean Template cache for this ID

Parameters:
ID - ID of template to clean

emptyTemplate

public void emptyTemplate()
Empty all Template Caches


cleanContainer

public void cleanContainer(Integer ID)
Clean ContainerCache for this ID

Parameters:
ID - for Container to clean

cleanContainer

public void cleanContainer(String ID)
Clean ContainerCache for this ID

Parameters:
ID - for container to clean

cleanContainerTree

public void cleanContainerTree(Integer ID)
Clean ContainerTreeCache for this WebProjectID

Parameters:
ID - for Container to clean

cleanContainerTree

public void cleanContainerTree(String ID)
Clean ContainerTreeCache for this WebProjectID

Parameters:
ID - for container to clean

cleanContainerElement

public void cleanContainerElement(Integer ID)
Clean Container Element for this ID

Parameters:
ID - for container element to clean

cleanContainerElement

public void cleanContainerElement(String ID)
Clean Container Element for this ID

Parameters:
ID - for container element to clean

convertJNPURLToCacheURL

public static String convertJNPURLToCacheURL(String JNPURL)
Converts JNP URL to http URL for cache cleanup

Parameters:
JNPURL - String with JNP URL from Context
Returns:
clean servername

Compiere 3.1

Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.