com.jrockit.mc.flightrecorder.provider
Class Features

java.lang.Object
  extended by com.jrockit.mc.flightrecorder.provider.Features
All Implemented Interfaces:
IFeatures

public final class Features
extends java.lang.Object
implements IFeatures

Gives access to feature sets. This class is not thread safe.

Author:
Erik Gahlin

Constructor Summary
Features(IRepository repository)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Features

public Features(IRepository repository)
Method Detail

getFeatures

public java.util.List<IFeatureSet> getFeatures()
Description copied from interface: IFeatures
Returns a list of all the available features.

Specified by:
getFeatures in interface IFeatures
Returns:
a list of features.

createFeature

public IFeatureSet createFeature()
Description copied from interface: IFeatures
Creates a a IFeatureSet. Users should destroy the IFeatureSet when they no longer needed it since the may allocate resources.

Specified by:
createFeature in interface IFeatures
Returns:
a feature set, or null if it could not be created.

destroyFeaure

public void destroyFeaure(IFeatureSet featureSet)
Description copied from interface: IFeatures
Destroys a feature and all resources allocated for the IFeatureSet.

Specified by:
destroyFeaure in interface IFeatures
Parameters:
featureSet - the IFeatureSet to destroy


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