|
GCA 0.4.0 | |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--pfg.gca.collector.CollectorFactory | +--pfg.gca.collector.regexp.RegExpCollectorFactory
This factory determines a collector among regular expression collectors based on the JDK version.
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 |
public RegExpCollectorFactory()
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 |
public ICollector getCollector(java.lang.String jdk)
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.
getCollector
in class CollectorFactory
jdk
- case insensitive jdk stringpublic java.lang.String getCollectorDescription(java.lang.String jdkString)
getCollectorDescription
in class CollectorFactory
a
- tag identifying the collectorpublic java.lang.String[] getSupportedJDKs()
getSupportedJDKs
in class CollectorFactory
|
Paul Glezen http://glezen.org/gca/> |
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |