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 java.lang.String ATTRIBUTE_CONFIG_FOLDER_NAME
           
static java.lang.String CONFIG_FOLDER_NAME
           
static java.lang.String CONSUMER_CLASS_NAME
          Property name for subclassed target consumer defined in changeLog.consumer.
static java.lang.String SYNC_ATTRIBUTE_NAME
          Property name for marker attribute defined in changeLog.consumer.
 
Constructor Summary
ChangeLogConsumerBaseImpl()
           
 
Method Summary
 java.lang.String getConsumerName()
           
 long processChangeLogEntries(java.util.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

ATTRIBUTE_CONFIG_FOLDER_NAME

public static java.lang.String ATTRIBUTE_CONFIG_FOLDER_NAME

CONFIG_FOLDER_NAME

public static java.lang.String CONFIG_FOLDER_NAME

SYNC_ATTRIBUTE_NAME

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


CONSUMER_CLASS_NAME

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

Constructor Detail

ChangeLogConsumerBaseImpl

public ChangeLogConsumerBaseImpl()
Method Detail

getConsumerName

public java.lang.String getConsumerName()

processChangeLogEntries

public long processChangeLogEntries(java.util.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