Dashboard Builder Commons 6.0.0.Beta3

org.jboss.dashboard.profiler
Class CodeBlockTrace

java.lang.Object
  extended by org.jboss.dashboard.profiler.CodeBlockTrace
Direct Known Subclasses:
ErrorTrace

public abstract class CodeBlockTrace
extends Object

A code block trace is the way that the platform has to register the execution of a given portion of code (code block). Such registry contains:


Field Summary
protected  Set<CodeBlockType> ancestorTypes
           
protected  long beginTimeMillis
           
protected  CodeBlockTraces children
           
protected  long childrenElapsedTimeMillis
           
protected static DateFormat dateFormat
           
protected  long endTimeMillis
           
protected  String id
           
protected  CodeBlockTrace parent
           
 
Constructor Summary
CodeBlockTrace(String id)
           
 
Method Summary
 void addChild(CodeBlockTrace child)
           
 CodeBlockTrace begin()
           
 void end()
           
 boolean equals(Object obj)
           
 Set<CodeBlockType> getAncestorTypes()
           
 long getBeginTimeMillis()
           
 CodeBlockTraces getChildren()
           
 long getChildrenElapsedTimeMillis()
           
abstract  Map<String,Object> getContext()
           
 CodeBlockTraces getDescendants()
           
abstract  String getDescription()
           
 long getElapsedTimeMillis()
           
 long getEndTimeMillis()
           
 String getId()
           
 int getLevel()
           
 CodeBlockTrace getParent()
           
 long getSelfTimeMillis()
           
 ThreadProfile getThreadProfile()
           
abstract  CodeBlockType getType()
           
 int hashCode()
           
 boolean isDescendantOfType(CodeBlockType type)
           
 boolean isRunning()
           
 String printContext(boolean includeParent)
           
 String printContext(boolean includeParent, String valueSeparator, String rowSeparator)
           
 String printContext(boolean includeParent, String valueSeparator, String rowSeparator, int indent)
           
 void printIndent(StringBuffer buf, int indent)
           
 String printMap(Map m, String valueSeparator, String rowSeparator)
           
 String printMap(Map m, String valueSeparator, String rowSeparator, int indent)
           
 void removeChild(CodeBlockTrace child)
           
 void setAncestorTypes(Set<CodeBlockType> ancestorTypes)
           
 void setBeginTimeMillis(long beginTimeMillis)
           
 void setChildren(CodeBlockTraces children)
           
 void setEndTimeMillis(long endTimeMillis)
           
 void setId(String id)
           
 void setParent(CodeBlockTrace parent)
           
 void setThreadProfile(ThreadProfile threadProfile)
           
 CodeBlockTraces toPlainList()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

dateFormat

protected static DateFormat dateFormat

parent

protected CodeBlockTrace parent

children

protected CodeBlockTraces children

id

protected String id

beginTimeMillis

protected long beginTimeMillis

endTimeMillis

protected long endTimeMillis

childrenElapsedTimeMillis

protected long childrenElapsedTimeMillis

ancestorTypes

protected Set<CodeBlockType> ancestorTypes
Constructor Detail

CodeBlockTrace

public CodeBlockTrace(String id)
Method Detail

getType

public abstract CodeBlockType getType()

getDescription

public abstract String getDescription()

getContext

public abstract Map<String,Object> getContext()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getThreadProfile

public ThreadProfile getThreadProfile()

setThreadProfile

public void setThreadProfile(ThreadProfile threadProfile)

getParent

public CodeBlockTrace getParent()

setParent

public void setParent(CodeBlockTrace parent)

getChildren

public CodeBlockTraces getChildren()

setChildren

public void setChildren(CodeBlockTraces children)

getAncestorTypes

public Set<CodeBlockType> getAncestorTypes()

setAncestorTypes

public void setAncestorTypes(Set<CodeBlockType> ancestorTypes)

isDescendantOfType

public boolean isDescendantOfType(CodeBlockType type)

addChild

public void addChild(CodeBlockTrace child)

removeChild

public void removeChild(CodeBlockTrace child)

getDescendants

public CodeBlockTraces getDescendants()

getLevel

public int getLevel()

toPlainList

public CodeBlockTraces toPlainList()

getId

public String getId()

setId

public void setId(String id)

getBeginTimeMillis

public long getBeginTimeMillis()

setBeginTimeMillis

public void setBeginTimeMillis(long beginTimeMillis)

getEndTimeMillis

public long getEndTimeMillis()

setEndTimeMillis

public void setEndTimeMillis(long endTimeMillis)

getElapsedTimeMillis

public long getElapsedTimeMillis()

getSelfTimeMillis

public long getSelfTimeMillis()

getChildrenElapsedTimeMillis

public long getChildrenElapsedTimeMillis()

isRunning

public boolean isRunning()

begin

public CodeBlockTrace begin()

end

public void end()

toString

public String toString()
Overrides:
toString in class Object

printContext

public String printContext(boolean includeParent)

printContext

public String printContext(boolean includeParent,
                           String valueSeparator,
                           String rowSeparator)

printContext

public String printContext(boolean includeParent,
                           String valueSeparator,
                           String rowSeparator,
                           int indent)

printIndent

public void printIndent(StringBuffer buf,
                        int indent)

printMap

public String printMap(Map m,
                       String valueSeparator,
                       String rowSeparator)

printMap

public String printMap(Map m,
                       String valueSeparator,
                       String rowSeparator,
                       int indent)

Dashboard Builder Commons 6.0.0.Beta3

Copyright © 2012-2013 JBoss by Red Hat. All Rights Reserved.