Class CatalogRolloverAction

java.lang.Object
org.codice.alliance.video.stream.mpegts.rollover.CatalogRolloverAction
All Implemented Interfaces:
RolloverAction

public class CatalogRolloverAction extends Object
Stores the child content, links the child to the parent, and updates the parent's location with the union of the child's location.
  • Constructor Details

    • CatalogRolloverAction

      public CatalogRolloverAction(FilenameGenerator filenameGenerator, String filenameTemplate, ddf.catalog.CatalogFramework catalogFramework, ddf.catalog.filter.FilterBuilder filterBuilder, Context context, MetacardUpdater parentMetacardUpdater, org.codice.ddf.platform.util.uuidgenerator.UuidGenerator uuidGenerator, ddf.security.SubjectOperations subjectOperations)
      Parameters:
      filenameGenerator - must be non-null
      filenameTemplate - must be non-null
      catalogFramework - must be non-null
      context - must be non-null
      parentMetacardUpdater - must be non-null
  • Method Details

    • setCatalogUpdateRetry

      public void setCatalogUpdateRetry(CatalogUpdateRetry catalogUpdateRetry)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • doAction

      public ddf.catalog.data.impl.MetacardImpl doAction(ddf.catalog.data.impl.MetacardImpl metacard, File tempFile)
      Description copied from interface: RolloverAction
      Populate a metacard (if non-null) and return a new metacard (may be the same metacard).
      Parameters:
      metacard - the metacard being populated
      tempFile - the temp file that contain content
      Returns:
      a new metacard or the same metacard
    • doAction

      public final ddf.catalog.data.impl.MetacardImpl doAction(File tempFile) throws RolloverActionException
      Description copied from interface: RolloverAction
      Return a new metacard.
      Specified by:
      doAction in interface RolloverAction
      Parameters:
      tempFile - the temp file that contain content
      Returns:
      a new metacard or the same metacard
      Throws:
      RolloverActionException