lumis.portal.page.cache
Class PageCacheConfig

Package class diagram package PageCacheConfig
java.lang.Object
  extended by lumis.portal.page.cache.PageCacheConfig

@StableMinor(version="4.1",
             sinceVersion="4.0")
public class PageCacheConfig
extends Object

Stores information about the caching of a page.

Since:
4.0.0

Field Summary
static int MAX_INITIAL_PRIORITY
          Maximum priority value for getInitialPriority().
static int MIN_INITIAL_PRIORITY
          Minimum priority value for getInitialPriority().
static int STATUS_DISABLED
          Status that indicates the cache is disabled.
static int STATUS_GENERATING
          Status that indicates the cache being generated.
static int STATUS_GENERATING_OUTDATED
          Status that indicates the cache is being generated, but the generation result will be outdated, because something changed after the generation started.
static int STATUS_OUTDATED
          Status that indicates the cache is outdated.
static int STATUS_OUTDATED_WITH_ERROR
          Status that indicates the cache is outdated and has quit generating due to errors.
static int STATUS_UPDATED
          Status that indicates the cache is updated.
 
Constructor Summary
PageCacheConfig()
           
 
Method Summary
 String getId()
           
 int getInitialPriority()
          Returns the initial priority value for this page cache.
 String getLanguageId()
           
 int getNumErrors()
          Returns the number of consecutive generation errors for this page cache.
 int getNumParameters()
          Returns the number of parameters that exist in the HTTP request this cache represents.
 String getPageId()
           
 String getPageUrl()
           
 int getPriority()
          Returns the current priority value for this page cache.
 int getStatus()
           
 boolean isNewPage()
           
 void setId(String id)
           
 void setInitialPriority(int initialPriority)
          Sets the initial priority value for this page cache.
 void setLanguageId(String languageId)
           
 void setNewPage(boolean isNewPage)
           
 void setPageId(String pageId)
           
 void setPageUrl(String pageUrl)
           
 void setStatus(int status)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MIN_INITIAL_PRIORITY

public static final int MIN_INITIAL_PRIORITY
Minimum priority value for getInitialPriority().

Since:
4.1.0
See Also:
Constant Field Values

MAX_INITIAL_PRIORITY

public static final int MAX_INITIAL_PRIORITY
Maximum priority value for getInitialPriority().

Since:
4.1.0
See Also:
Constant Field Values

STATUS_OUTDATED

public static final int STATUS_OUTDATED
Status that indicates the cache is outdated.

Since:
4.1.0
See Also:
Constant Field Values

STATUS_GENERATING

public static final int STATUS_GENERATING
Status that indicates the cache being generated.

Since:
4.1.0
See Also:
Constant Field Values

STATUS_GENERATING_OUTDATED

public static final int STATUS_GENERATING_OUTDATED
Status that indicates the cache is being generated, but the generation result will be outdated, because something changed after the generation started.

Since:
4.1.0
See Also:
Constant Field Values

STATUS_UPDATED

public static final int STATUS_UPDATED
Status that indicates the cache is updated.

Since:
4.1.0
See Also:
Constant Field Values

STATUS_OUTDATED_WITH_ERROR

public static final int STATUS_OUTDATED_WITH_ERROR
Status that indicates the cache is outdated and has quit generating due to errors.

Since:
4.1.0
See Also:
Constant Field Values

STATUS_DISABLED

public static final int STATUS_DISABLED
Status that indicates the cache is disabled.

Since:
4.1.0
See Also:
Constant Field Values
Constructor Detail

PageCacheConfig

public PageCacheConfig()
Method Detail

getId

public String getId()

setId

public void setId(String id)

getPageId

public String getPageId()

setPageId

public void setPageId(String pageId)

getPageUrl

public String getPageUrl()

setPageUrl

public void setPageUrl(String pageUrl)

getLanguageId

public String getLanguageId()

setLanguageId

public void setLanguageId(String languageId)

getStatus

public int getStatus()

setStatus

public void setStatus(int status)

isNewPage

public boolean isNewPage()

setNewPage

public void setNewPage(boolean isNewPage)

getInitialPriority

public int getInitialPriority()
Returns the initial priority value for this page cache.

Returns:
the initial priority value.
Since:
4.1.0

setInitialPriority

public void setInitialPriority(int initialPriority)
Sets the initial priority value for this page cache.

Parameters:
initialPriority - the value to set.
Since:
4.1.0

getPriority

public int getPriority()
Returns the current priority value for this page cache.

Returns:
the current priority value.
Since:
4.1.0

getNumParameters

public int getNumParameters()
Returns the number of parameters that exist in the HTTP request this cache represents.

Returns:
the number of parameters.
Since:
4.1.0

getNumErrors

public int getNumErrors()
Returns the number of consecutive generation errors for this page cache.

Returns:
the the number of consecutive generation errors for this page cache.
Since:
4.1.0


Lumisportal  4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.