Back to index

munin  2.0.1
Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
org.munin.plugin.jmx.LegacyPool Enum Reference

This enum represents the 4 pool type known by the 1.4 Munin JMX plugins. More...

List of all members.

Public Member Functions

String getName ()

Static Public Member Functions

static LegacyPool getLegacyPool (final String poolName)

Public Attributes

 SURVIVOR = ("Survivor", "survivor space")
 EDEN = ("Eden", "eden space")
 TENURED_GEN
 PERM_GEN

Private Member Functions

 LegacyPool (final String name, final String...matchStrings)

Private Attributes

final String name
final String[] matchStrings

Detailed Description

This enum represents the 4 pool type known by the 1.4 Munin JMX plugins.

The 1.4-era JMX Pluginwas hard-coded to those names and expected them at a specific location in the returned MBeans (which is not portable and has lead to several mis-represented values at best).

Generally speaking pool names hsould not be hard-coded at all in the JMX plugins, as they are not specified and can vary between JVMs, JVM versions and even based on the settings used to run the JVM (ConcurrentMarkSweep vs. "normal" GC, ...). This class can still be used to map known pool names to the 4 pools expected by the 1.4-era plugins.

Definition at line 15 of file LegacyPool.java.


Constructor & Destructor Documentation

org.munin.plugin.jmx.LegacyPool.LegacyPool ( final String  name,
final String...  matchStrings 
) [inline, private]

Definition at line 23 of file LegacyPool.java.

                                                                           {
              this.name = name;
              this.matchStrings = matchStrings;
       }

Member Function Documentation

static LegacyPool org.munin.plugin.jmx.LegacyPool.getLegacyPool ( final String  poolName) [inline, static]

Definition at line 32 of file LegacyPool.java.

                                                                     {
              String generalPoolName = poolName.toLowerCase().replaceFirst(
                            "^(cms|ps) ", "");
              for (LegacyPool pool : values()) {
                     for (String matchString : pool.matchStrings) {
                            if (generalPoolName.equals(matchString)) {
                                   return pool;
                            }
                     }
              }
              return null;
       }

Here is the caller graph for this function:

Definition at line 28 of file LegacyPool.java.

                               {
              return name;
       }

Here is the caller graph for this function:


Member Data Documentation

org.munin.plugin.jmx.LegacyPool.EDEN = ("Eden", "eden space")

Definition at line 16 of file LegacyPool.java.

Definition at line 21 of file LegacyPool.java.

final String org.munin.plugin.jmx.LegacyPool.name [private]

Definition at line 20 of file LegacyPool.java.

Initial value:
("PermGen",
                     "perm gen")

Definition at line 17 of file LegacyPool.java.

org.munin.plugin.jmx.LegacyPool.SURVIVOR = ("Survivor", "survivor space")

Definition at line 16 of file LegacyPool.java.

Initial value:
(
                     "TenuredGen", "old gen", "tenured gen")

Definition at line 16 of file LegacyPool.java.


The documentation for this enum was generated from the following file: