Class RepeatingPolicyRunner

java.lang.Object
org.opencastproject.lifecyclemanagement.impl.RepeatingPolicyRunner

public class RepeatingPolicyRunner extends Object
A special periodic checker for repeating policies. Repeating policies require date/time representation that is best reflected by a cron string. A quartz scheduler supports cron strings.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Quartz work horse.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    RepeatingPolicyRunner(org.opencastproject.lifecyclemanagement.api.LifeCyclePolicy policy, org.opencastproject.security.api.Organization organization, org.opencastproject.lifecyclemanagement.api.LifeCycleService lifeCycleService, org.opencastproject.security.api.SecurityService securityService, org.opencastproject.security.api.User systemAdminUser)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    org.opencastproject.lifecyclemanagement.api.LifeCyclePolicy
     
    org.opencastproject.lifecyclemanagement.api.LifeCycleService
     
    org.opencastproject.security.api.Organization
     
    org.opencastproject.security.api.SecurityService
     
    org.opencastproject.security.api.User
     
    void
     
    void
    Shutdown the scheduler.
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RepeatingPolicyRunner

      protected RepeatingPolicyRunner(org.opencastproject.lifecyclemanagement.api.LifeCyclePolicy policy, org.opencastproject.security.api.Organization organization, org.opencastproject.lifecyclemanagement.api.LifeCycleService lifeCycleService, org.opencastproject.security.api.SecurityService securityService, org.opencastproject.security.api.User systemAdminUser)
  • Method Details

    • getLifeCyclePolicy

      public org.opencastproject.lifecyclemanagement.api.LifeCyclePolicy getLifeCyclePolicy()
    • getLifeCycleService

      public org.opencastproject.lifecyclemanagement.api.LifeCycleService getLifeCycleService()
    • getOrganization

      public org.opencastproject.security.api.Organization getOrganization()
    • getSecurityService

      public org.opencastproject.security.api.SecurityService getSecurityService()
    • getSystemAdminUser

      public org.opencastproject.security.api.User getSystemAdminUser()
    • schedule

      public void schedule()
    • unschedule

      public void unschedule()
    • shutdown

      public void shutdown()
      Shutdown the scheduler.
    • finalize

      protected void finalize() throws Throwable
      Overrides:
      finalize in class Object
      Throws:
      Throwable