com.jrockit.mc.flightrecorder.provider
Class Repository

java.lang.Object
  extended by com.jrockit.mc.flightrecorder.provider.Repository
All Implemented Interfaces:
IRepository

public final class Repository
extends java.lang.Object
implements IRepository

An in-memory storage repository.

Author:
Erik Gahlin

Field Summary
static int AUTO_GENERATE
           
 
Constructor Summary
Repository(java.lang.String name)
           
Repository(java.lang.String name, IEventFilter filter)
           
 
Method Summary
 void addBroken(IEvent event)
           
 java.util.Iterator<IEvent> brokenIterator(ITimeRange range)
           
 TrackGroup createGroup(java.lang.String name)
           
 Producer createProducer(int identifier)
           
 IView createView()
          Returns a IView which can be sued to extract event from the recording
 java.util.Collection<IEventType> getEventTypes()
           
 IFeatures getFeatures()
          Returns IFeatures, which is a way to describe group events.
 java.util.Collection<IProducer> getProducers()
          Return the producers in the repository.
 ITrackGroup getRootGroup()
          Returns the top node for groups in the repository.
 ITimeRange getTimeRange()
          Returns the time range the repository spans.
 void setTimeRange(ITimeRange range)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AUTO_GENERATE

public static final int AUTO_GENERATE
See Also:
Constant Field Values
Constructor Detail

Repository

public Repository(java.lang.String name,
                  IEventFilter filter)

Repository

public Repository(java.lang.String name)
Method Detail

getEventTypes

public java.util.Collection<IEventType> getEventTypes()

getProducers

public java.util.Collection<IProducer> getProducers()
Description copied from interface: IRepository
Return the producers in the repository.

Specified by:
getProducers in interface IRepository
Returns:
a collection of producers

getTimeRange

public ITimeRange getTimeRange()
Description copied from interface: IRepository
Returns the time range the repository spans.

Specified by:
getTimeRange in interface IRepository
Returns:
the range the repository spans

createView

public IView createView()
Description copied from interface: IRepository
Returns a IView which can be sued to extract event from the recording

Specified by:
createView in interface IRepository
Returns:
a view

getFeatures

public IFeatures getFeatures()
Description copied from interface: IRepository
Returns IFeatures, which is a way to describe group events.

Specified by:
getFeatures in interface IRepository
Returns:
an IFeatures

createProducer

public Producer createProducer(int identifier)

createGroup

public TrackGroup createGroup(java.lang.String name)

addBroken

public void addBroken(IEvent event)

brokenIterator

public java.util.Iterator<IEvent> brokenIterator(ITimeRange range)

getRootGroup

public ITrackGroup getRootGroup()
Description copied from interface: IRepository
Returns the top node for groups in the repository.

Specified by:
getRootGroup in interface IRepository
Returns:
the root group

setTimeRange

public void setTimeRange(ITimeRange range)


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