Class SyncItemCronJob

    • Constructor Detail

      • SyncItemCronJob

        public SyncItemCronJob()
        Deprecated.
    • Method Detail

      • createSessionForCronJob

        protected JaloSession createSessionForCronJob​(JaloSession jaloSession)
        Deprecated.
        Superclass method overridden to run this cronjob always as admin, regardless which user is set as cronjob user.
        Overrides:
        createSessionForCronJob in class CronJob
        Parameters:
        jaloSession - the JaloSession, which should be modified
        Returns:
        the modified JaloSession
      • getFinishedItemCopy

        protected Item getFinishedItemCopy​(Item source)
        Deprecated.
      • getFinishedItemPKMap

        protected java.util.Map<PK,​PK> getFinishedItemPKMap()
        Deprecated.
      • getPendingDescriptorFor

        protected ItemSyncDescriptor getPendingDescriptorFor​(Item item,
                                                             boolean asSource)
        Deprecated.
      • getPendingDescriptorsFor

        protected java.util.Map<PK,​ItemSyncDescriptor> getPendingDescriptorsFor​(java.util.List<PK[]> items,
                                                                                      boolean remove)
        Deprecated.
      • getPendingDescriptorFor

        protected ItemSyncDescriptor getPendingDescriptorFor​(PK item,
                                                             boolean asSource)
        Deprecated.
      • getPendingDescriptorsCount

        public int getPendingDescriptorsCount()
        Deprecated.
      • getPendingDescriptors

        protected java.util.List getPendingDescriptors​(int start,
                                                       int range)
        Deprecated.
      • getNextChangeNumber

        protected java.lang.Integer getNextChangeNumber​(ComposedType changeDescriptorType)
        Deprecated.
        Performance optimization: we cache the current sequence number in memory. When calling this method the first time we fetch the current (next) sequence number from database and store it inside this item instance.

        Of course this may lead to unwanted results if multiple thread try to schedule items so don't do that ;)

        Overrides:
        getNextChangeNumber in class CronJob
        Parameters:
        changeDescriptorType - the changeDescriptorType
        Returns:
        the next sequence number for the specified changeDescriptorType
      • addPendingItems

        public java.util.List<ItemSyncDescriptor> addPendingItems​(java.util.List<PK[]> items,
                                                                  boolean isRemoval)
        Deprecated.