tapestry.patchwork
Class FaultAdmin
java.lang.Object
|
+--tapestry.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.1.1 2004/03/26 19:57:09 hweather Exp $
- Author:
- Jeremy Stribling
Constructor Summary |
FaultAdmin(boolean accept_faults)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FaultAdmin
public FaultAdmin(boolean accept_faults)
- Parameters:
accept_faults
- only accept faults iff true (i.e. pass a value
from a config file here)
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.