systemic.sif.sbpframework.common.utils
Class DOCacheProperties

java.lang.Object
  extended by systemic.sif.sbpframework.common.utils.DOCacheProperties

public class DOCacheProperties
extends java.lang.Object

This class provides a number of handy methods to access the values of the DOCache.properties file. Name of the property file must be DOCache.properties. This is the file that holds all the configurable values for the Metadata cache that can overwrite behaviour as well as delays and execution frequencies of various task relating to the Dependent Object Cache. The property file must be on the classpath.

Author:
Joerg Huber

Field Summary
static java.lang.String EXPIRE
           
static java.lang.String REQUEST
           
 
Method Summary
static DOCacheProperties getDOCacheProperties()
           
 int getExpiryCheckFreqMinutes(java.lang.Integer defaultMinutes)
           
 int getExpiryCheckStartupDelayInSec(java.lang.Integer defaultSeconds)
           
 int getExpiryMinutes(java.lang.String sifObjectName, java.lang.Integer defaultMinutes)
           
 java.lang.String getExpiryStrategy(java.lang.String sifObjectName, java.lang.String defautltStrategy)
           
 boolean getIgnoreDependency(java.lang.String parentSifObjectName, java.lang.String childSifObjectName)
           
 int getNoneNullOrZeroInteger(java.lang.Integer intValue, int defaultValue)
           
 int getRequestFreqInSec(java.lang.Integer defaultSeconds)
           
 int getRequestStartupDelayInSec(java.lang.Integer defaultSeconds)
           
 int getResolvedFreqInSec(java.lang.Integer defaultSeconds)
           
 int getResolvedStartupDelayInSec(java.lang.Integer defaultSeconds)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXPIRE

public static final java.lang.String EXPIRE
See Also:
Constant Field Values

REQUEST

public static final java.lang.String REQUEST
See Also:
Constant Field Values
Method Detail

getDOCacheProperties

public static DOCacheProperties getDOCacheProperties()

getExpiryCheckFreqMinutes

public int getExpiryCheckFreqMinutes(java.lang.Integer defaultMinutes)

getExpiryCheckStartupDelayInSec

public int getExpiryCheckStartupDelayInSec(java.lang.Integer defaultSeconds)

getRequestFreqInSec

public int getRequestFreqInSec(java.lang.Integer defaultSeconds)

getRequestStartupDelayInSec

public int getRequestStartupDelayInSec(java.lang.Integer defaultSeconds)

getResolvedFreqInSec

public int getResolvedFreqInSec(java.lang.Integer defaultSeconds)

getResolvedStartupDelayInSec

public int getResolvedStartupDelayInSec(java.lang.Integer defaultSeconds)

getExpiryStrategy

public java.lang.String getExpiryStrategy(java.lang.String sifObjectName,
                                          java.lang.String defautltStrategy)

getExpiryMinutes

public int getExpiryMinutes(java.lang.String sifObjectName,
                            java.lang.Integer defaultMinutes)

getIgnoreDependency

public boolean getIgnoreDependency(java.lang.String parentSifObjectName,
                                   java.lang.String childSifObjectName)

getNoneNullOrZeroInteger

public int getNoneNullOrZeroInteger(java.lang.Integer intValue,
                                    int defaultValue)