pfg.gca.collector
Class CollectorFactory
java.lang.Object
|
+--pfg.gca.collector.CollectorFactory
- Direct Known Subclasses:
- RegExpCollectorFactory
- public abstract class CollectorFactory
- extends java.lang.Object
A factory for generating GC record collectors. Different JVMs
sometimes format their verbose GC records differently. This
requires that the type of collector be determined during runtime.
- Author:
- Paul Glezen
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CollectorFactory
public CollectorFactory()
getCollector
public abstract ICollector getCollector(java.lang.String jdk)
- Return a collector compatible with the specified JDK.
- Parameters:
jdk
- the vendor and version of the JDK
getCollectorDescription
public abstract java.lang.String getCollectorDescription(java.lang.String jdkString)
- Return the description of a particular collector. This
is provided since certain verbose GC formats applied across
several JDKs. A single small string wasn't sufficient to
convey all this information. So the collector description
briefly lists the applicable JDKs. This description will
appear JDK list panel.
- Parameters:
jdkString
- the tag by which the collector is known- Returns:
- a description of the JDKs supported by this collector
getInstance
public static CollectorFactory getInstance()
- Return an instance of the default factory. A new instance
is created with each call. This is not a singleton pattern.
getSupportedJDKs
public abstract java.lang.String[] getSupportedJDKs()
- Return an array of JDK strings supported by the factory.
Generated: February 24 2005