GCA 0.4.0

pfg.gca.collector.regexp
Class RegExpCollectorFactory

java.lang.Object
  |
  +--pfg.gca.collector.CollectorFactory
        |
        +--pfg.gca.collector.regexp.RegExpCollectorFactory

public class RegExpCollectorFactory
extends CollectorFactory

This factory determines a collector among regular expression collectors based on the JDK version.

Author:
Paul Glezen

Constructor Summary
RegExpCollectorFactory()
          Populates a HashMap with collector instances.
 
Method Summary
 ICollector getCollector(java.lang.String jdk)
          Retrieve a collector from a hashtable based on the jdk string.
 java.lang.String getCollectorDescription(java.lang.String jdkString)
          Return a description of which JDKs are supported by a collector.
 java.lang.String[] getSupportedJDKs()
          Return an array of supported JDK strings.
 
Methods inherited from class pfg.gca.collector.CollectorFactory
getInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegExpCollectorFactory

public RegExpCollectorFactory()
Populates a HashMap with collector instances. The keys constitute the valid JDK versions. Presently, these are

Since the IBM 1.4.1 and 1.4.2 JDKs have the same verbose GC format as the IBM 1.3.1 JDK, the ibm131a collector is used for all three.

Method Detail

getCollector

public ICollector getCollector(java.lang.String jdk)
Retrieve a collector from a hashtable based on the jdk string. The input argument is automatically lower-cased to avoid case-sensitivity problems. See RegExpCollectorFactory() for valid values.

The same collector instance is returned on each call for a given jdk type. If you need more than one instance of the same collector type, use mulitple collector factories.

Overrides:
getCollector in class CollectorFactory
Parameters:
jdk - case insensitive jdk string

getCollectorDescription

public java.lang.String getCollectorDescription(java.lang.String jdkString)
Return a description of which JDKs are supported by a collector.

Overrides:
getCollectorDescription in class CollectorFactory
Parameters:
a - tag identifying the collector
Returns:
a description of supported JDKs for this collector

getSupportedJDKs

public java.lang.String[] getSupportedJDKs()
Return an array of supported JDK strings.
Overrides:
getSupportedJDKs in class CollectorFactory

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

Generated: February 24 2005