ClusterNodeInfo { LeaseCheckMode getLeaseCheckMode() { return leaseCheckMode; } private  ClusterNodeInfo(int id, DocumentStore store, String machineId,
                            String instanceId, boolean newEntry, boolean invisible); int getId(); static ClusterNodeInfo getReadOnlyInstance(DocumentStore store); static ClusterNodeInfo getInstance(DocumentStore store,
        RecoveryHandler recoveryHandler,
        String machineId,
        String instanceId,
        int configuredClusterId); static ClusterNodeInfo getInstance(DocumentStore store,
                                              RecoveryHandler recoveryHandler,
                                              String machineId,
                                              String instanceId,
                                              int configuredClusterId,
                                              boolean invisible); void performLeaseCheck(); boolean renewLease(); void setInfo(Map<String, String> info); long getLeaseTime(); long getLeaseEndTime(); void setLeaseFailureHandler(LeaseFailureHandler leaseFailureHandler); void dispose(); @Override String toString(); static final String LEASE_END_KEY; static final String START_TIME_KEY; static final String LAST_WRITTEN_ROOT_REV_KEY; static final String STATE; static final String BROADCAST_ID; static final String BROADCAST_LISTENER; static final String REV_RECOVERY_LOCK; static final String REV_RECOVERY_BY; static final String INVISIBLE; static final int DEFAULT_LEASE_DURATION_MILLIS; static final int DEFAULT_LEASE_UPDATE_INTERVAL_MILLIS; static final int DEFAULT_LEASE_FAILURE_MARGIN_MILLIS; static final boolean DEFAULT_LEASE_CHECK_DISABLED; }
@Test public void defaultLeaseCheckMode() { assertEquals(LeaseCheckMode.STRICT, newClusterNodeInfo(0).getLeaseCheckMode()); }