public class PageCacheConfig extends Object
Modifier and Type | Field and Description |
---|---|
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_NOT_PUBLISHED
Status that indicates the target page is not published (its target content is not published).
|
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 and Description |
---|
PageCacheConfig(WebResource webResource)
Creates a
PageCacheConfig for a web resource. |
Modifier and Type | Method and Description |
---|---|
String |
getFilePath()
Returns the path to the cache file, relative to the portal application
web root.
|
String |
getId() |
int |
getInitialPriority()
Returns the initial priority value for this page cache.
|
String |
getLanguageId()
Deprecated.
|
Date |
getNextGenerationDate()
Returns the date-time of the next generation of this page cache.
|
int |
getNumErrors()
Returns the number of consecutive generation errors for this page cache.
|
String |
getPageId()
Deprecated.
|
String |
getPageUrl()
Deprecated.
|
int |
getPriority()
Returns the current priority value for this page cache.
|
int |
getResourcePriority()
Returns the priority for generating the cache for the resource this cache
is of.
|
String |
getServerId()
Returns the identifier of the server that last generated this page cache.
|
int |
getStatus() |
WebResource |
getWebResource() |
void |
setFilePath(String filePath)
Sets the path to the cache file, relative to the portal application
web root.
|
void |
setInitialPriority(int initialPriority)
Sets the initial priority value for this page cache.
|
void |
setStatus(int status) |
String |
toString() |
public static final int MIN_INITIAL_PRIORITY
getInitialPriority()
.public static final int MAX_INITIAL_PRIORITY
getInitialPriority()
.public static final int STATUS_OUTDATED
public static final int STATUS_GENERATING
public static final int STATUS_GENERATING_OUTDATED
public static final int STATUS_UPDATED
public static final int STATUS_OUTDATED_WITH_ERROR
public static final int STATUS_DISABLED
public static final int STATUS_NOT_PUBLISHED
public PageCacheConfig(WebResource webResource)
PageCacheConfig
for a web resource.
The relationship on the this PageCacheConfig is set by this constructor,
but not on the web resource side.webResource
- the web resource.public String getId()
public WebResource getWebResource()
@Deprecated public String getPageUrl()
@Deprecated public String getLanguageId()
@Deprecated public String getPageId()
public int getStatus()
public void setStatus(int status)
public int getInitialPriority()
public void setInitialPriority(int initialPriority)
initialPriority
- the value to set.public int getPriority()
public int getResourcePriority()
priority
.public int getNumErrors()
public String getFilePath()
public void setFilePath(String filePath)
filePath
- the path, starting with '/'.public String getServerId()
public Date getNextGenerationDate()
null
, the next generation doesn't have a fixed time
to be started.LumisXP 12.2.0.200122 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.