org.jgroups.protocols
Class PerfHeader
- Cloneable, Externalizable
Inserted by PERF into each message. Records the time taken by each protocol to process the message to
which this header is attached. Travels down through the stack and up the other stack with the message.
- Bela Ban
PerfHeader
public PerfHeader()
PerfHeader
public PerfHeader(Object sender,
Object receiver)
addEntry
public void addEntry(String prot_name)
Adds a new entry to both hashtables
main
public static void main(String[] args)
printContents
public String printContents(boolean detailed)
printContents
public String printContents(boolean detailed,
Vector prots)
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
setDone
public void setDone(String prot_name,
int type)
setEndTime
public void setEndTime()
setNetworkReceived
public void setNetworkReceived()
setNetworkSent
public void setNetworkSent()
setReceived
public void setReceived(String prot_name,
int type)
size
public long size()
- size in interface Header
toString
public String toString()
- toString in interface Header
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
Copyright B) 2001,2002 www.jgroups.com . All Rights Reserved.