com.jrockit.mc.flightrecorder.spi
Interface IFeatures

All Known Implementing Classes:
Features

public interface IFeatures

Interface for an features. Features gives access to feature sets, which is a way to mark events so they can be filtered on later on. Typically a feature set is implemented using a bit set on the underlying event, which makes it it very cheap to check and filter out if it's been marked. It's however possible to implement IFeatureSet using HashSet or disk/database providers that wants to hold on to very large number of events.

Author:
Erik Gahlin

Method Summary
 IFeatureSet createFeature()
          Creates a a IFeatureSet.
 void destroyFeaure(IFeatureSet featureSet)
          Destroys a feature and all resources allocated for the IFeatureSet.
 java.util.List<IFeatureSet> getFeatures()
          Returns a list of all the available features.
 

Method Detail

getFeatures

java.util.List<IFeatureSet> getFeatures()
Returns a list of all the available features.

Returns:
a list of features.

createFeature

IFeatureSet createFeature()
Creates a a IFeatureSet. Users should destroy the IFeatureSet when they no longer needed it since the may allocate resources.

Returns:
a feature set, or null if it could not be created.

destroyFeaure

void destroyFeaure(IFeatureSet featureSet)
Destroys a feature and all resources allocated for the IFeatureSet.

Parameters:
featureSet - the IFeatureSet to destroy


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