edu.internet2.middleware.grouper.changeLog
Class ChangeLogConsumerBaseImpl

java.lang.Object
  extended by edu.internet2.middleware.grouper.changeLog.ChangeLogConsumerBase
      extended by edu.internet2.middleware.grouper.changeLog.ChangeLogConsumerBaseImpl
Direct Known Subclasses:
PrintChangeLogConsumer

public class ChangeLogConsumerBaseImpl
extends ChangeLogConsumerBase

Default @ChangeLogConsumerBase implementation. This class gets instantiated by grouper for every run of processChangeLogEntries().


Field Summary
static String CONFIG_FOLDER_NAME
           
static String CONSUMER_CLASS_NAME
          Property name for subclassed target consumer defined in changeLog.consumer..class
static String SYNC_ATTRIBUTE_NAME
          Property name for marker attribute defined in changeLog.consumer..syncAttributeName
 
Constructor Summary
ChangeLogConsumerBaseImpl()
           
 
Method Summary
 String getConsumerName()
           
 long processChangeLogEntries(List<ChangeLogEntry> changeLogEntryList, ChangeLogProcessorMetadata changeLogProcessorMetadata)
          Process the list of changeLogEntries since the last time this consumer was run.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_FOLDER_NAME

public static String CONFIG_FOLDER_NAME

SYNC_ATTRIBUTE_NAME

public static String SYNC_ATTRIBUTE_NAME
Property name for marker attribute defined in changeLog.consumer..syncAttributeName


CONSUMER_CLASS_NAME

public static String CONSUMER_CLASS_NAME
Property name for subclassed target consumer defined in changeLog.consumer..class

Constructor Detail

ChangeLogConsumerBaseImpl

public ChangeLogConsumerBaseImpl()
Method Detail

getConsumerName

public String getConsumerName()

processChangeLogEntries

public long processChangeLogEntries(List<ChangeLogEntry> changeLogEntryList,
                                    ChangeLogProcessorMetadata changeLogProcessorMetadata)
Process the list of changeLogEntries since the last time this consumer was run. This method will be called by grouper daemon (aka grouper loader).

Specified by:
processChangeLogEntries in class ChangeLogConsumerBase
Parameters:
changeLogEntryList -
changeLogProcessorMetadata -
Returns:
last processed changeLogEntry Id