tapestry.patchwork
Class Period
java.lang.Object
|
+--tapestry.patchwork.Period
- public class Period
- extends Object
Representing a periodic function, used for corresponding probing levels
and nodes to probing periods.
- Version:
- $Id: Period.java,v 1.1.1.1 2004/03/26 19:57:10 hweather Exp $
- Author:
- Jeremy Stribling
Constructor Summary |
Period(NodeId self_node_id,
int basePeriod,
String op,
int factor,
long timeout)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Period
public Period(NodeId self_node_id,
int basePeriod,
String op,
int factor,
long timeout)
getBasePeriod
public int getBasePeriod()
getOp
public int getOp()
getFactor
public int getFactor()
setPeriod
public void setPeriod(int basePeriod,
String op,
int factor)
setPeriod
public void setPeriod(int basePeriod,
int op,
int factor)
changePeriod
public boolean changePeriod(NodeId node,
int level)
removeNode
public void removeNode(NodeId node)
getPeriod
public long getPeriod(NodeId node)
getPeriod
public long getPeriod(int level)
getTimeout
public long getTimeout(NodeId node)
- Get what the timeout value should be for a node.
NOTE: Each instance of a Period shares its table of timeouts
with all other Periods used by the same NodeId. That
means, for example, a LossPatch and LatencyPatch within
the same Patchwork look at the same timeout values.
setTimeout
public void setTimeout(NodeId node,
long value)
- Set what the timeout value should be for a node.
NOTE: Each instance of a Period shares its table of timeouts
with all other Periods used by the same NodeId. That
means, for example, a LossPatch and LatencyPatch within
the same Patchwork look at the same timeout values.
THIS MEANS IF YOU SET IT, ALL OTHER PATCHES ON YOUR NODE
WILL SEE IT.