com.jrockit.mc.flightrecorder.provider
Class View

java.lang.Object
  extended by com.jrockit.mc.flightrecorder.provider.View
All Implemented Interfaces:
IView, java.lang.Iterable<IEvent>

public final class View
extends java.lang.Object
implements IView

View that allows iterator access to subset of events from a recording.

Author:
Erik Gahlin

Constructor Summary
View(StorageHelper storageHelper)
          Sets up a view with default storages, event types and tracks.
View(StorageHelper helper, java.util.List<IEventType> eventTypes, java.util.List<ITrack> tracks, java.util.List<EventStorage> eventStorages, java.util.List<EventStorage> trackStorages)
           
 
Method Summary
 IView copy()
          Creates a copy of the view
 java.util.Collection<IEventType> getEventTypes()
          Returns the event types for the view.
 IEventFilter getFilter()
          Gets the filter in use.
 EventOrder getOrder()
          The order in which events are extracted.
 ITimeRange getRange()
          Returns the range for the view
 java.util.Collection<ITrack> getTracks()
          Return the collection of tracks that make up the view.
 IValues getValues()
          Return event values belong to the event defined by the view
 java.util.Iterator<IEvent> iterator()
           
 void setEventTypes(java.util.Collection<IEventType> eventTypes)
          Set the event types for the view
 void setExpansion(Expansion expanded)
          How to select events.
 void setFilter(IEventFilter filter)
          Sets the filter to use.
 void setOrder(EventOrder order)
          Sets the order the vents should fetched in.
 void setRange(ITimeRange range)
          Set the range the view should span-
 void setTracks(java.util.Collection<ITrack> tracks)
          The tracks to include in the view
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

View

public View(StorageHelper storageHelper)
Sets up a view with default storages, event types and tracks.

Parameters:
storageHelper -

View

public View(StorageHelper helper,
            java.util.List<IEventType> eventTypes,
            java.util.List<ITrack> tracks,
            java.util.List<EventStorage> eventStorages,
            java.util.List<EventStorage> trackStorages)
Method Detail

getEventTypes

public java.util.Collection<IEventType> getEventTypes()
Description copied from interface: IView
Returns the event types for the view.

Specified by:
getEventTypes in interface IView

getTracks

public java.util.Collection<ITrack> getTracks()
Description copied from interface: IView
Return the collection of tracks that make up the view.

Specified by:
getTracks in interface IView
Returns:
a collection track descriptors.

setEventTypes

public void setEventTypes(java.util.Collection<IEventType> eventTypes)
Description copied from interface: IView
Set the event types for the view

Specified by:
setEventTypes in interface IView
Parameters:
eventTypes - the event type to accept in the view

setTracks

public void setTracks(java.util.Collection<ITrack> tracks)
Description copied from interface: IView
The tracks to include in the view

Specified by:
setTracks in interface IView

getRange

public ITimeRange getRange()
Returns the range for the view

Specified by:
getRange in interface IView
Returns:
the range

setOrder

public void setOrder(EventOrder order)
Sets the order the vents should fetched in.

Specified by:
setOrder in interface IView
Parameters:
order - the order

setFilter

public void setFilter(IEventFilter filter)
Sets the filter to use.

Specified by:
setFilter in interface IView
Parameters:
filter - the filter

setRange

public void setRange(ITimeRange range)
Description copied from interface: IView
Set the range the view should span-

Specified by:
setRange in interface IView
Parameters:
range - the range

iterator

public java.util.Iterator<IEvent> iterator()
Specified by:
iterator in interface java.lang.Iterable<IEvent>

getFilter

public IEventFilter getFilter()
Description copied from interface: IView
Gets the filter in use.

Specified by:
getFilter in interface IView
Returns:
the filter

getOrder

public EventOrder getOrder()
Description copied from interface: IView
The order in which events are extracted.

Specified by:
getOrder in interface IView
Returns:
the order.

setExpansion

public void setExpansion(Expansion expanded)
Description copied from interface: IView
How to select events.

Specified by:
setExpansion in interface IView

getValues

public IValues getValues()
Description copied from interface: IView
Return event values belong to the event defined by the view

Specified by:
getValues in interface IView
Returns:
event values

copy

public IView copy()
Description copied from interface: IView
Creates a copy of the view

Specified by:
copy in interface IView
Returns:
a copy


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