Package com.jalios.jcms
Class JcmsCleanFilter
- java.lang.Object
-
- com.jalios.jcms.JcmsCleanFilter
-
- All Implemented Interfaces:
CleanFilter
,StoreConstants
public class JcmsCleanFilter extends java.lang.Object implements CleanFilter, StoreConstants
-
-
Field Summary
Fields Modifier and Type Field Description protected Stamp
beginStamp
protected long
beginTime
protected Channel
channel
protected java.util.Set<java.lang.String>
createSet
protected Stamp
endStamp
protected long
endTime
protected boolean
mergeMajorUpdate
protected boolean
mergeMetadataUpdate
protected boolean
mergeMinorUpdate
static java.util.HashSet
metadataAttributeSet
protected boolean
removeDeleted
protected boolean
removeMilestone
protected java.util.Set
uridSet
protected java.util.Map<java.lang.String,Workspace>
wsMap
protected java.util.Set<Workspace>
wsSet
-
Fields inherited from interface com.jalios.jstore.StoreConstants
ARRAY_FLAG, CLEANING_STATE, COLLECTION_FLAG, CREATE_OP, DELETE_OP, IDLE_STATE, INNER_LOGS, INNER_MILESTONE, INNER_PREFIX, INNER_SYNC, ITEM_ESCAPE_CHAR, ITEM_SEPARATOR, LOADING_STATE, LOG_DIR_LOG_PREFIX, LOG_DIR_LOG_WORK, MAP_ASSIGN, MAP_CHARS_TO_ESCAPE, MAP_CLASS_SEPARATOR, MAP_FLAG, NAMESPACE, SH_SUFFIX, STORING_STATE, UPDATE_OP
-
-
Constructor Summary
Constructors Constructor Description JcmsCleanFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanMergeMap(java.util.Map mergeMap)
This method is called to clean the merge map.boolean
isCleanable(InnerLogEntry entry)
Returns true if the entry can be cleaned or false otherwise.boolean
isCleanable(StorableLogEntry entry, java.lang.Class clazz)
Returns true if the entry can be cleaned or false otherwise.void
setBeginStamp(Stamp startStamp)
void
setBeginTime(long startTime)
void
setEndStamp(Stamp endStamp)
void
setEndTime(long endTime)
void
setMergeMajorUpdate(boolean v)
void
setMergeMetadataUpdate(boolean v)
void
setMergeMinorUpdate(boolean v)
void
setRemoveDeleted(boolean v)
void
setRemoveMilestone(boolean v)
void
setUridSet(java.util.Set uridSet)
void
setWorkspaceSet(java.util.Set wsSet)
java.lang.String
toString()
-
-
-
Field Detail
-
channel
protected Channel channel
-
beginTime
protected long beginTime
-
endTime
protected long endTime
-
beginStamp
protected Stamp beginStamp
-
endStamp
protected Stamp endStamp
-
removeDeleted
protected boolean removeDeleted
-
mergeMinorUpdate
protected boolean mergeMinorUpdate
-
mergeMetadataUpdate
protected boolean mergeMetadataUpdate
-
mergeMajorUpdate
protected boolean mergeMajorUpdate
-
uridSet
protected java.util.Set uridSet
-
removeMilestone
protected boolean removeMilestone
-
wsSet
protected java.util.Set<Workspace> wsSet
-
wsMap
protected java.util.Map<java.lang.String,Workspace> wsMap
-
createSet
protected java.util.Set<java.lang.String> createSet
-
metadataAttributeSet
public static final java.util.HashSet metadataAttributeSet
-
-
Method Detail
-
isCleanable
public boolean isCleanable(StorableLogEntry entry, java.lang.Class clazz)
Description copied from interface:CleanFilter
Returns true if the entry can be cleaned or false otherwise.- Specified by:
isCleanable
in interfaceCleanFilter
- Parameters:
entry
- the entry to be checkedclazz
- the class of which this entry is applied- Returns:
- true if the entry can be cleaned or false otherwise
-
cleanMergeMap
public void cleanMergeMap(java.util.Map mergeMap)
Description copied from interface:CleanFilter
This method is called to clean the merge map.- Specified by:
cleanMergeMap
in interfaceCleanFilter
- Parameters:
mergeMap
- the merge map
-
isCleanable
public boolean isCleanable(InnerLogEntry entry)
Description copied from interface:CleanFilter
Returns true if the entry can be cleaned or false otherwise.- Specified by:
isCleanable
in interfaceCleanFilter
- Parameters:
entry
- the entry to be checked- Returns:
- true if the entry can be cleaned or false otherwise
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
setBeginStamp
public void setBeginStamp(Stamp startStamp)
-
setBeginTime
public void setBeginTime(long startTime)
-
setEndStamp
public void setEndStamp(Stamp endStamp)
-
setEndTime
public void setEndTime(long endTime)
-
setRemoveDeleted
public void setRemoveDeleted(boolean v)
-
setMergeMinorUpdate
public void setMergeMinorUpdate(boolean v)
-
setMergeMetadataUpdate
public void setMergeMetadataUpdate(boolean v)
-
setMergeMajorUpdate
public void setMergeMajorUpdate(boolean v)
-
setUridSet
public void setUridSet(java.util.Set uridSet)
-
setRemoveMilestone
public void setRemoveMilestone(boolean v)
-
setWorkspaceSet
public void setWorkspaceSet(java.util.Set wsSet)
-
-