org.hopto.pentaj.jexin.stacktrace
Class StackTraceManagerImpl

java.lang.Object
  extended by org.hopto.pentaj.jexin.stacktrace.StackTraceManagerImpl
All Implemented Interfaces:
StackTraceManager

public class StackTraceManagerImpl
extends java.lang.Object
implements StackTraceManager


Constructor Summary
StackTraceManagerImpl()
           
 
Method Summary
 StackTraceTemplate createTemplate(int stackTraceId)
          Creates a new template from the StackTrace with the specified id
 CompletedStackTrace getStackTrace(int id)
           
 java.util.Collection<CompletedStackTrace> getStackTraces()
           
 StackTraceTemplate getTemplate(int id)
           
 java.util.Collection<StackTraceTemplate> getTemplates()
           
 void processCompletedStackTrace(CompletedStackTrace completedStackTrace)
          Called by the StackFrameProcessor to submit completed traces to the manager.
 void removeStackTrace(int id)
          Removes the StackTrace with the specified id
 void removeTemplate(int id)
          Removes the StackTraceTemplate with the specified id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StackTraceManagerImpl

public StackTraceManagerImpl()
Method Detail

processCompletedStackTrace

public void processCompletedStackTrace(CompletedStackTrace completedStackTrace)
Description copied from interface: StackTraceManager
Called by the StackFrameProcessor to submit completed traces to the manager. This method must be as quick as possible.

Specified by:
processCompletedStackTrace in interface StackTraceManager
See Also:
StackTraceManager.processCompletedStackTrace(org.hopto.pentaj.jexin.stacktrace.CompletedStackTrace)

getStackTraces

public java.util.Collection<CompletedStackTrace> getStackTraces()
Specified by:
getStackTraces in interface StackTraceManager
Returns:
The StackTraces.
See Also:
StackTraceManager.getStackTraces()

getStackTrace

public CompletedStackTrace getStackTrace(int id)
Specified by:
getStackTrace in interface StackTraceManager
Returns:
The StackTrace with the specified id. Null if it does not exist
See Also:
StackTraceManager.getStackTrace(int)

removeStackTrace

public void removeStackTrace(int id)
Description copied from interface: StackTraceManager
Removes the StackTrace with the specified id

Specified by:
removeStackTrace in interface StackTraceManager
See Also:
StackTraceManager.removeStackTrace(int)

createTemplate

public StackTraceTemplate createTemplate(int stackTraceId)
Description copied from interface: StackTraceManager
Creates a new template from the StackTrace with the specified id

Specified by:
createTemplate in interface StackTraceManager
Returns:
The new StackTraceTemplate. Null if there is no StackTraceManager with the specified ID
See Also:
StackTraceManager.createTemplate(int)

removeTemplate

public void removeTemplate(int id)
Description copied from interface: StackTraceManager
Removes the StackTraceTemplate with the specified id

Specified by:
removeTemplate in interface StackTraceManager
See Also:
StackTraceManager.removeTemplate(int)

getTemplate

public StackTraceTemplate getTemplate(int id)
Specified by:
getTemplate in interface StackTraceManager
Returns:
The StackTraceTemplate with the specified id. Null if one does not exist.
See Also:
StackTraceManager.getTemplate(int)

getTemplates

public java.util.Collection<StackTraceTemplate> getTemplates()
Specified by:
getTemplates in interface StackTraceManager
Returns:
The StackTraceTemplates
See Also:
StackTraceManager.getTemplates()