org.hopto.pentaj.jexin.stacktrace
Interface StackTraceManager

All Known Implementing Classes:
StackTraceManagerImpl

public interface StackTraceManager

Maintains the completed stack traces and StackTraceTemplates.


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
 

Method Detail

processCompletedStackTrace

void processCompletedStackTrace(CompletedStackTrace completedStackTrace)
Called by the StackFrameProcessor to submit completed traces to the manager. This method must be as quick as possible.

Parameters:
completedStackTrace -

getStackTrace

CompletedStackTrace getStackTrace(int id)
Parameters:
id -
Returns:
The StackTrace with the specified id. Null if it does not exist

getStackTraces

java.util.Collection<CompletedStackTrace> getStackTraces()
Returns:
The StackTraces.

removeStackTrace

void removeStackTrace(int id)
Removes the StackTrace with the specified id

Parameters:
id -

getTemplate

StackTraceTemplate getTemplate(int id)
Parameters:
id -
Returns:
The StackTraceTemplate with the specified id. Null if one does not exist.

getTemplates

java.util.Collection<StackTraceTemplate> getTemplates()
Returns:
The StackTraceTemplates

createTemplate

StackTraceTemplate createTemplate(int stackTraceId)
Creates a new template from the StackTrace with the specified id

Parameters:
stackTraceId -
Returns:
The new StackTraceTemplate. Null if there is no StackTraceManager with the specified ID

removeTemplate

void removeTemplate(int id)
Removes the StackTraceTemplate with the specified id

Parameters:
id -