ostore.network.patchwork
Class FaultAdmin

java.lang.Object
  |
  +--ostore.network.patchwork.FaultAdmin

public class FaultAdmin
extends Object

This is a data structure that decides whether or not a message should be dropped on its way to a stage.

Version:
$Id: FaultAdmin.java,v 1.1 2003/02/08 00:49:37 strib Exp $
Author:
Jeremy Stribling

Constructor Summary
FaultAdmin(boolean accept_faults)
           
 
Method Summary
 boolean dropMessage(NetworkMessage inbound)
          Decide whether or not to drop a message, based on previously received loss rates.
 void updateFaults(InjectFaultMsg msg)
          Called when a new InjectFaultMsg is received by a stage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FaultAdmin

public FaultAdmin(boolean accept_faults)
Parameters:
accept_faults - only accept faults iff true (i.e. pass a value from a config file here)
Method Detail

updateFaults

public void updateFaults(InjectFaultMsg msg)
Called when a new InjectFaultMsg is received by a stage.

dropMessage

public boolean dropMessage(NetworkMessage inbound)
Decide whether or not to drop a message, based on previously received loss rates.