org.jgroups.protocols

Class PerfHeader

public class PerfHeader extends Header

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.

Author: Bela Ban

Constructor Summary
PerfHeader()
PerfHeader(Object sender, Object receiver)
Method Summary
voidaddEntry(String prot_name)
Adds a new entry to both hashtables
static voidmain(String[] args)
StringprintContents(boolean detailed)
StringprintContents(boolean detailed, Vector prots)
voidreadExternal(ObjectInput in)
voidsetDone(String prot_name, int type)
voidsetEndTime()
voidsetNetworkReceived()
voidsetNetworkSent()
voidsetReceived(String prot_name, int type)
longsize()
StringtoString()
voidwriteExternal(ObjectOutput out)

Constructor Detail

PerfHeader

public PerfHeader()

PerfHeader

public PerfHeader(Object sender, Object receiver)

Method Detail

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)

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()

toString

public String toString()

writeExternal

public void writeExternal(ObjectOutput out)
Copyright ? 1998-2005 Bela Ban. All Rights Reserved.