Class MCRImageTiler

java.lang.Object
org.mycore.iview2.services.MCRImageTiler
All Implemented Interfaces:
Comparable<MCRShutdownHandler.Closeable>, Runnable, MCRShutdownHandler.Closeable

public class MCRImageTiler extends Object implements Runnable, MCRShutdownHandler.Closeable
Master image tiler thread.
Author:
Thomas Scheffler (yagee)
  • Method Details

    • isRunning

      public static boolean isRunning()
      Returns:
      true if image tiler thread is running.
    • getInstance

      public static MCRImageTiler getInstance()
      Returns:
      an instance of this class.
    • run

      public void run()
      Starts local tiler threads ( MCRTilingAction) and gives MCRTileJob instances to them. Use property MCR.Module-iview2.TilingThreads to specify how many concurrent threads should be running.
      Specified by:
      run in interface Runnable
    • prepareClose

      public void prepareClose()
      stops transmitting MCRTileJob to MCRTilingAction and prepares shutdown.
      Specified by:
      prepareClose in interface MCRShutdownHandler.Closeable
    • close

      public void close()
      Shuts down this thread and every local tiling threads spawned by run().
      Specified by:
      close in interface MCRShutdownHandler.Closeable
    • getPriority

      public int getPriority()
      Description copied from interface: MCRShutdownHandler.Closeable
      Returns the priority. A Closeable with a higher priority will be closed before a Closeable with a lower priority. Default priority is 5.
      Specified by:
      getPriority in interface MCRShutdownHandler.Closeable