com.jalios.jcms
Class JcmsCleanFilter

java.lang.Object
  extended by com.jalios.jcms.JcmsCleanFilter
All Implemented Interfaces:
CleanFilter, StoreConstants

public class JcmsCleanFilter
extends Object
implements CleanFilter, StoreConstants


Field Summary
protected  Stamp beginStamp
           
protected  long beginTime
           
protected  Channel channel
           
protected  Set<String> createSet
           
protected  Stamp endStamp
           
protected  long endTime
           
protected  boolean mergeMajorUpdate
           
protected  boolean mergeMetadataUpdate
           
protected  boolean mergeMinorUpdate
           
static HashSet metadataAttributeSet
           
protected  boolean removeDeleted
           
protected  boolean removeMilestone
           
static String REVISION
           
protected  Set uridSet
           
protected  Map<String,Workspace> wsMap
           
protected  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, MAP_ASSIGN, MAP_CHARS_TO_ESCAPE, MAP_CLASS_SEPARATOR, MAP_FLAG, NAMESPACE, SH_SUFFIX, STORING_STATE, UPDATE_OP
 
Constructor Summary
JcmsCleanFilter()
           
 
Method Summary
 void cleanMergeMap(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, 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(Set uridSet)
           
 void setWorkspaceSet(Set wsSet)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values

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 Set uridSet

removeMilestone

protected boolean removeMilestone

wsSet

protected Set<Workspace> wsSet

wsMap

protected Map<String,Workspace> wsMap

createSet

protected Set<String> createSet

metadataAttributeSet

public static final HashSet metadataAttributeSet
Constructor Detail

JcmsCleanFilter

public JcmsCleanFilter()
Method Detail

isCleanable

public boolean isCleanable(StorableLogEntry entry,
                           Class clazz)
Description copied from interface: CleanFilter
Returns true if the entry can be cleaned or false otherwise.

Specified by:
isCleanable in interface CleanFilter
Parameters:
entry - the entry to be checked
clazz - the class of which this entry is applied
Returns:
true if the entry can be cleaned or false otherwise

cleanMergeMap

public void cleanMergeMap(Map mergeMap)
Description copied from interface: CleanFilter
This method is called to clean the merge map.

Specified by:
cleanMergeMap in interface CleanFilter
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 interface CleanFilter
Parameters:
entry - the entry to be checked
Returns:
true if the entry can be cleaned or false otherwise

toString

public String toString()
Overrides:
toString in class 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(Set uridSet)

setRemoveMilestone

public void setRemoveMilestone(boolean v)

setWorkspaceSet

public void setWorkspaceSet(Set wsSet)


Copyright © 2001-2010 Jalios SA. All Rights Reserved.