Class DispatchLockJpaImpl

java.lang.Object
org.opencastproject.serviceregistry.impl.jpa.DispatchLockJpaImpl

@Entity(name="DispatchLock") public class DispatchLockJpaImpl extends Object
A single-row lease used to elect exactly one active job dispatcher across a cluster of candidate nodes. There is always exactly one row, with a fixed id, representing the current lease holder and when that lease expires.
  • Field Details

    • SINGLETON_ID

      public static final long SINGLETON_ID
      The fixed id of the single lock row used cluster-wide.
      See Also:
  • Constructor Details

    • DispatchLockJpaImpl

      public DispatchLockJpaImpl()
    • DispatchLockJpaImpl

      public DispatchLockJpaImpl(long id)
  • Method Details

    • getId

      public Long getId()
    • getOwner

      public String getOwner()
    • setOwner

      public void setOwner(String owner)
    • getLeaseExpires

      public Date getLeaseExpires()
    • setLeaseExpires

      public void setLeaseExpires(Date leaseExpires)