Class SpaceDatabaseDataExporter

  • All Implemented Interfaces:
    Exporter

    public class SpaceDatabaseDataExporter
    extends Object
    implements Exporter
    Extract space and send data to the backup writer.
    Since:
    7.20.0
    • Method Detail

      • onMonitoredObjectsExport

        public void onMonitoredObjectsExport​(Class<?> exportedClass,
                                             Collection<Object> idList)
        Description copied from interface: Exporter
        It is called when the collection of objects was exported. This is called only for objects that this class is watching. See getWatchingEntityClasses()
        Specified by:
        onMonitoredObjectsExport in interface Exporter
        Parameters:
        exportedClass - the exported class
        idList - the list of ids of exported objects
      • getEntityInfo

        public ExportableEntityInfo getEntityInfo()
        Description copied from interface: Exporter
        Returns default entity info for persister. Will fail if the persister has to work with multiple hibernate entitites.
        Specified by:
        getEntityInfo in interface Exporter
      • export

        public String export​(long spaceId)
                      throws BackupRestoreException
        It accepts the space id, finds the space, send space data to writer and notify other persisters about the space. Other persisters (content, space permissions, notification etc) will handle this event and export their corresponding data.
        Parameters:
        spaceId - space id
        Returns:
        spaceKey
        Throws:
        BackupRestoreException