Class MCRTilingAction

java.lang.Object
org.mycore.iview2.services.MCRTilingAction
All Implemented Interfaces:
Runnable

public class MCRTilingAction extends Object implements Runnable
A slave thread of MCRImageTiler This class can be extended. Any extending class should provide and implementation for getMCRImage(). To get the extending class invoked, one need to define a MyCoRe property, which defaults to: MCR.Module-iview2.MCRTilingActionImpl=org.mycore.iview2.services.MCRTilingAction
Author:
Thomas Scheffler (yagee)
  • Field Details

  • Constructor Details

    • MCRTilingAction

      public MCRTilingAction(MCRTileJob image)
  • Method Details

    • run

      public void run()
      takes a MCRTileJob and tiles the referenced MCRImage instance. Also this updates tileJob properties of MCRTileJob in the database.
      Specified by:
      run in interface Runnable
    • getMCRImage

      protected org.mycore.imagetiler.MCRImage getMCRImage() throws IOException
      Returns:
      MCRImage instance based on the information provided by tileJob
      Throws:
      IOException - thrown by MCRImage.getInstance(Path, String, String)
    • toString

      public String toString()
      Overrides:
      toString in class Object