Package org.opencms.file.collectors
Class CmsCollectorData
java.lang.Object
org.opencms.file.collectors.CmsCollectorData
- Direct Known Subclasses:
CmsExtendedCollectorData
Data structure for the collector, parsed from the collector parameters.
The input data String must have the following format:
"{VFS URI}|{Resource type}|{Count}|excludeTimerange"
.
The {Count}
and excludeTimerange
values are optional.
Example:
"/my/folder/|xmlcontent|5|excludeTimerange"
.
- Since:
- 6.0.0
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The value of the optional parameter to exclude the time range. -
Constructor Summary
ModifierConstructorDescriptionprotected
Required constructor for subclasses.CmsCollectorData
(String data) Creates a new extended collector data set. -
Method Summary
Modifier and TypeMethodDescriptionint
getCount()
Returns the count.Returns the file name.int
getType()
Returns the type.boolean
Returns the flag to exclude the time range in an offline project.protected void
setCount
(int count) Sets the count.void
setExcludeTimerange
(boolean excludeTimerange) Sets the flag to exclude the time range in an offline project.void
setFileName
(String fileName) Sets the fileName.void
setType
(int type) Sets the type.
-
Field Details
-
PARAM_EXCLUDETIMERANGE
The value of the optional parameter to exclude the time range.- See Also:
-
-
Constructor Details
-
CmsCollectorData
Creates a new extended collector data set.The input data String must have the following format:
"{VFS URI}|{Resource type}|{Count}|excludeTimerange"
, for example:
"/my/folder/|xmlcontent|5|excludeTimerange"
.- Parameters:
data
- the data to parse
-
CmsCollectorData
protected CmsCollectorData()Required constructor for subclasses.
-
-
Method Details
-
getCount
Returns the count.- Returns:
- the count
-
getFileName
Returns the file name.- Returns:
- the file name
-
getType
Returns the type.- Returns:
- the type
-
isExcludeTimerange
Returns the flag to exclude the time range in an offline project.- Returns:
- the flag to exclude the time range in an offline project
-
setExcludeTimerange
Sets the flag to exclude the time range in an offline project.- Parameters:
excludeTimerange
- the flag to exclude the time range in an offline project
-
setFileName
Sets the fileName.- Parameters:
fileName
- the file name to set
-
setType
Sets the type.- Parameters:
type
- the type to set
-
setCount
Sets the count.- Parameters:
count
- the count
-