Class DBEventLogManager

    • Field Detail

      • PROCESS_MESSAGE_URL

        public static final java.lang.String PROCESS_MESSAGE_URL
        See Also:
        Constant Field Values
      • DB_EVENT_LOG_TIMER

        public static final java.lang.String DB_EVENT_LOG_TIMER
        See Also:
        Constant Field Values
      • DB_EVENT_LOG_ALARM_MGR

        public static final java.lang.String DB_EVENT_LOG_ALARM_MGR
        See Also:
        Constant Field Values
      • DB_EVENT_LOG_CONSUMER

        public static final java.lang.String DB_EVENT_LOG_CONSUMER
        See Also:
        Constant Field Values
      • QUERY_LIMIT_PROP

        public static final java.lang.String QUERY_LIMIT_PROP
        See Also:
        Constant Field Values
      • NOTIFICATION_ENABLED_PROP

        public static final java.lang.String NOTIFICATION_ENABLED_PROP
        See Also:
        Constant Field Values
      • NOTIFICATION_DELAY_PROP

        public static final java.lang.String NOTIFICATION_DELAY_PROP
        See Also:
        Constant Field Values
      • NOTIFICATION_MAX_RESCHEDULE_PROP

        public static final java.lang.String NOTIFICATION_MAX_RESCHEDULE_PROP
        See Also:
        Constant Field Values
      • EXCLUDED_CLASSES

        public static final java.lang.String EXCLUDED_CLASSES
        See Also:
        Constant Field Values
      • PROCESS_COMMIT_BATCH_SIZE_PROP

        public static final java.lang.String PROCESS_COMMIT_BATCH_SIZE_PROP
        See Also:
        Constant Field Values
      • EXPIRATION_DELAY_PROP

        public static final java.lang.String EXPIRATION_DELAY_PROP
        See Also:
        Constant Field Values
    • Method Detail

      • propertiesChange

        public void propertiesChange​(JProperties properties)
        Description copied from interface: JPropertiesListener
        Invoked after properties have been modified in JCMS and save on disk.

        You cannot alter the value received in parameters.

        Note that properties parameter may be null, a limited set of site properties, or all site properties.

        To check that a property has been modified, reload the "current" property instead using channel.getProperties or channel.getProperty.

        Specified by:
        propertiesChange in interface JPropertiesListener
        Parameters:
        properties - the properties which have been submitted to change
      • onPostDelete

        public void onPostDelete​(DBData data,
                                 org.hibernate.event.PostDeleteEvent event,
                                 boolean firstTime)
        Description copied from interface: DBListener
        This method is called after a DBData has been deleted.
        Specified by:
        onPostDelete in interface DBListener
        Overrides:
        onPostDelete in class BasicDBListener
        Parameters:
        data - the deleted DBData. WARNING! In a JSync Cluster, when firstTime is false, this data will be null. In this case, to get information about this deleted data, you must use the event and in particular event.getId(), which returns the JPlatform ID of the data, and event.getDeletedState() which returns the attributes of the data.
        event - the event
        firstTime - true on the JSync replica on which the operation took place and false on the other replicas.
        See Also:
        DBListener.onPostDelete(DBData, PostDeleteEvent, boolean)
      • getReplicaUridSet

        public java.util.Set<java.lang.String> getReplicaUridSet()
      • handleAlarm

        public void handleAlarm​(AlarmEntry entry)
        Description copied from interface: AlarmListener
        Invoked when an alarm is triggered.
        Specified by:
        handleAlarm in interface AlarmListener
        Parameters:
        entry - the AlarmEntry which has been triggered.
      • processNewDBEventLogs

        public void processNewDBEventLogs​(java.lang.String sender)
      • getNewDBEventLogList

        @Deprecated
        protected java.util.List<DBEventLog> getNewDBEventLogList()
        Deprecated.
        This method should not be used any more as it's limited in size, other db event log will be not read after this limit before full scan
        Returns all the DBEventLog not yet processed by this replica.
        Returns:
        all the DBEventLog not yet processed by this replica (never return null). (size limited by QUERY_LIMIT_PROP)
        Since:
        jcms-6.0.0
      • getDBEventLogsSummary

        public java.util.List<DBEventLogSummary> getDBEventLogsSummary()
      • deleteDBEventLog

        public boolean deleteDBEventLog​(java.lang.String source,
                                        java.lang.String target)
      • getNewDBEventLogScrollResult

        protected org.hibernate.ScrollableResults getNewDBEventLogScrollResult()
        Returns all the DBEventLog not yet processed by this replica.
        Returns:
        all the DBEventLog not yet processed by this replica (never return null).
        Since:
        jcms-10.0.8
      • resetNotificationTimerThreadLocal

        public void resetNotificationTimerThreadLocal()