Class Scheduler
- java.lang.Object
-
- com.netgrif.quartz.mongodb.cluster.Scheduler
-
public class Scheduler extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static longTIME_EPSILON
-
Constructor Summary
Constructors Constructor Description Scheduler(java.lang.String name, java.lang.String instanceId, long lastCheckinTime, long checkinInterval)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCheckinInterval()java.lang.StringgetInstanceId()longgetLastCheckinTime()java.lang.StringgetName()booleanisDefunct(long time)Return true if scheduler is defunct for given time.
-
-
-
Field Detail
-
TIME_EPSILON
public static final long TIME_EPSILON
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public java.lang.String getName()
-
getInstanceId
public java.lang.String getInstanceId()
-
getLastCheckinTime
public long getLastCheckinTime()
-
getCheckinInterval
public long getCheckinInterval()
-
isDefunct
public boolean isDefunct(long time)
Return true if scheduler is defunct for given time.- Parameters:
time- time to compare with- Returns:
-
-