org.jgroups.protocols

Class PerfHeader

Implemented Interfaces:
Externalizable

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

Field Summary

Fields inherited from class org.jgroups.Header

HDR_OVERHEAD

Constructor Summary

PerfHeader()
PerfHeader(Object sender, Object receiver)

Method Summary

void
addEntry(String prot_name)
Adds a new entry to both hashtables
static void
main(String[] args)
String
printContents(boolean detailed)
String
printContents(boolean detailed, Vector prots)
void
readExternal(ObjectInput in)
void
setDone(String prot_name, int type)
void
setEndTime()
void
setNetworkReceived()
void
setNetworkSent()
void
setReceived(String prot_name, int type)
long
size()
String
toString()
void
writeExternal(ObjectOutput out)

Methods inherited from class org.jgroups.Header

size, toString

Constructor Details

PerfHeader

public PerfHeader()

PerfHeader

public PerfHeader(Object sender,
                  Object receiver)

Method Details

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()
Overrides:
size in interface Header

toString

public String toString()
Overrides:
toString in interface Header

writeExternal

public void writeExternal(ObjectOutput out)
            throws IOException

Copyright B) 1998-2005 Bela Ban. All Rights Reserved.