GCA 0.4.0

pfg.gca
Class Context

java.lang.Object
  |
  +--pfg.gca.Context

public class Context
extends java.lang.Object

This class keeps track of GC information in the context of a single loaded trace file.

Author:
Paul Glezen

Field Summary
static java.lang.String PROP_TITLE
           
static java.lang.String PROP_VERSION
           
 
Constructor Summary
Context()
           
 
Method Summary
 void addProps(java.util.Properties newProps)
           
 CollectorFactory getCollectorFactory()
           
 java.lang.String getCurrentTraceFilename()
          Get the name of the current verbose GC log file.
 java.util.List getGCList()
           
 java.lang.String getJdktype()
          Get the current JDK type.
 java.lang.String getProperty(java.lang.String propName)
           
 void setCollectorFactory(CollectorFactory factory)
           
 void setCurrentTraceFilename(java.lang.String currentTraceFilename)
          Set the verbose GC file to use.
 void setGCList(java.util.List l)
           
 void setJdktype(java.lang.String jdktype)
          Set the JDK type to use.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROP_TITLE

public static final java.lang.String PROP_TITLE

PROP_VERSION

public static final java.lang.String PROP_VERSION
Constructor Detail

Context

public Context()
Method Detail

addProps

public void addProps(java.util.Properties newProps)

getCollectorFactory

public CollectorFactory getCollectorFactory()

getCurrentTraceFilename

public java.lang.String getCurrentTraceFilename()
Get the name of the current verbose GC log file. This property is stored using PersistProps so that its value persists across program invocations.

getGCList

public java.util.List getGCList()

getJdktype

public java.lang.String getJdktype()
Get the current JDK type. This property is stored using PersistProps so that its value persists across program invocations.

getProperty

public java.lang.String getProperty(java.lang.String propName)

setCollectorFactory

public void setCollectorFactory(CollectorFactory factory)

setCurrentTraceFilename

public void setCurrentTraceFilename(java.lang.String currentTraceFilename)
Set the verbose GC file to use. This property is persisted via PersistProps each time it is set. This allows it to persist across program invocations.

setGCList

public void setGCList(java.util.List l)

setJdktype

public void setJdktype(java.lang.String jdktype)
Set the JDK type to use. This property is persisted via PersistProps each time it is set. This allows it to persist across program invocations.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Paul Glezen
http://glezen.org/gca/

Generated: February 24 2005