com.jrockit.memleak
Enum Feature

java.lang.Object
  extended by java.lang.Enum<Feature>
      extended by com.jrockit.memleak.Feature
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Feature>

public enum Feature
extends java.lang.Enum<Feature>

Enumeration of optional API level features. Can be used to query an IMemLeak implementation of its supported features without actually trying to use those features.

Author:
mpersson

Enum Constant Summary
ALLOCATION_TRACES
          The ability to grab allocation traces.
CLASS_IDS
          The ability to obtain unique IDs for different types with the same class name (loaded by different class loaders).
CLASS_IDS_ARE_OBJECT_IDS
          The ability to use a class ID as the object ID of the corresponding instance of Class.
CLASS_LOADERS
          The ability to find out the class loader of a class.
CLASS_MODIFIERS
          The ability to find out modifiers for classes/interfaces.
CLASS_NAME_OF_OBJECT
          The ability to find out the class name of an object, given its ID.
DELETE_ALL_OBJECT_IDS
          The ability to delete all object IDs at once, without knowing them all.
DELETE_OBJECT_ID
          The ability to delete an object ID at all, so that it will be invalid until reused.
FIELD_MODIFIERS
          The ability to find out modifiers for static/instance fields.
GC_TRIGGER
          The ability to trigger a garbage collection.
INSTANCE_PATHS_TO_ROOT
          The ability to find the shortest path(s) from a given object to any GC root.
INSTANCES_OF_TYPE
          The ability to get all (possibly with a limit) instances of a given type.
METHOD_MODIFIERS
          The ability to find out modifiers for methods, where referenced.
TREND_ANALYSIS
          The ability to do trend analysis.
TYPED_SERVER_EXCEPTIONS
          The ability to find the type of server error that may have occurred.
 
Method Summary
static Feature valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Feature[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

TREND_ANALYSIS

public static final Feature TREND_ANALYSIS
The ability to do trend analysis.


ALLOCATION_TRACES

public static final Feature ALLOCATION_TRACES
The ability to grab allocation traces.


GC_TRIGGER

public static final Feature GC_TRIGGER
The ability to trigger a garbage collection.


DELETE_OBJECT_ID

public static final Feature DELETE_OBJECT_ID
The ability to delete an object ID at all, so that it will be invalid until reused.


DELETE_ALL_OBJECT_IDS

public static final Feature DELETE_ALL_OBJECT_IDS
The ability to delete all object IDs at once, without knowing them all.


INSTANCE_PATHS_TO_ROOT

public static final Feature INSTANCE_PATHS_TO_ROOT
The ability to find the shortest path(s) from a given object to any GC root.


INSTANCES_OF_TYPE

public static final Feature INSTANCES_OF_TYPE
The ability to get all (possibly with a limit) instances of a given type.


CLASS_NAME_OF_OBJECT

public static final Feature CLASS_NAME_OF_OBJECT
The ability to find out the class name of an object, given its ID.


CLASS_IDS

public static final Feature CLASS_IDS
The ability to obtain unique IDs for different types with the same class name (loaded by different class loaders).


CLASS_IDS_ARE_OBJECT_IDS

public static final Feature CLASS_IDS_ARE_OBJECT_IDS
The ability to use a class ID as the object ID of the corresponding instance of Class. That is, the class IDs and object IDs share the same value space.

This is an implementation detail that most often is irrelevant, but for some advanced usage it can be significant.


CLASS_LOADERS

public static final Feature CLASS_LOADERS
The ability to find out the class loader of a class.


CLASS_MODIFIERS

public static final Feature CLASS_MODIFIERS
The ability to find out modifiers for classes/interfaces.


FIELD_MODIFIERS

public static final Feature FIELD_MODIFIERS
The ability to find out modifiers for static/instance fields.


METHOD_MODIFIERS

public static final Feature METHOD_MODIFIERS
The ability to find out modifiers for methods, where referenced.


TYPED_SERVER_EXCEPTIONS

public static final Feature TYPED_SERVER_EXCEPTIONS
The ability to find the type of server error that may have occurred.

Method Detail

values

public static Feature[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Feature c : Feature.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Feature valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 1999, 2011, Oracle and/or its affiliates. All rights reserved.