org.jboss.ha.timestamp
Interface TimestampDiscrepancyObserver

All Known Implementing Classes:
TimestampDiscrepancyValidationService

public interface TimestampDiscrepancyObserver

An object that observes changes in a TimestampDiscrepancyService.

Version:
$Revision: $
Author:
Brian Stansberry

Method Summary
 boolean canRemoveDeadEntry(org.jboss.ha.framework.interfaces.ClusterNode dead, long lastChecked)
          Callback allowing the observer to veto the removal by the TimestampDiscrepancyService of discrepancy data for a node that is no longer active in the cluster.
 void timestampDiscrepancyChanged(org.jboss.ha.framework.interfaces.ClusterNode node, TimestampDiscrepancy discrepancy)
          Notification from TimestampDiscrepancyService when it has changed the TimestampDiscrepancy associated with a particular node.
 

Method Detail

timestampDiscrepancyChanged

void timestampDiscrepancyChanged(org.jboss.ha.framework.interfaces.ClusterNode node,
                                 TimestampDiscrepancy discrepancy)
Notification from TimestampDiscrepancyService when it has changed the TimestampDiscrepancy associated with a particular node.

Parameters:
node - the node
discrepancy - the new discrepancy

canRemoveDeadEntry

boolean canRemoveDeadEntry(org.jboss.ha.framework.interfaces.ClusterNode dead,
                           long lastChecked)
Callback allowing the observer to veto the removal by the TimestampDiscrepancyService of discrepancy data for a node that is no longer active in the cluster. Allows the observer to request that data for historically relevant nodes be retained.

Parameters:
dead - the node
lastChecked - the time (in ms since the epoch) the caller was last able to obtain timestamp information from the caller
Returns:
true if the data can be removed, false if it must be retained.


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.