com.jrockit.mc.flightrecorder.provider
Class TrackGroup

java.lang.Object
  extended by com.jrockit.mc.flightrecorder.provider.TrackGroup
All Implemented Interfaces:
ITrackGroup

public final class TrackGroup
extends java.lang.Object
implements ITrackGroup

A container that holds tracks.

Author:
Erik Gahlin

Method Summary
 void add(Track track)
           
 void add(TrackGroup group)
           
 TrackGroup createGroup(java.lang.String identifier)
           
 Track createTrack(java.lang.String identifier)
           
 java.util.List<ITrackGroup> getAllGroups()
          Return all groups and sub groups.
 java.util.Collection<ITrack> getAllTracks()
          Return all tracks that belong to the track group and it's children.
 java.lang.String getDescription()
          Returns a description of the track
 ITrackGroup getGroup(java.lang.String identifier)
          Returns a group given a symbolic name
 java.util.List<ITrackGroup> getGroups()
           
 java.lang.Integer getId()
          A machine identifier for the track
 java.lang.String getIdentifier()
          Returns a symbolic name for the track group.
 java.lang.String getName()
          A human readable name of the track
 ITrackGroup getParent()
          Returns the parent, or null if it's the root group
 java.lang.String getPath()
          Returns the path of the track
 java.lang.Object getProperty(java.lang.String key)
          Returns a property value for.
 ITimeRange getRange()
          The time range the track group spans.
 Track getTrack(java.lang.Integer id)
           
 java.util.List<ITrack> getTracks()
          Return all tracks that belong to the track group.
 void setDescription(java.lang.String description)
           
 void setEndTime(long endTimestamp)
           
 void setIdentifier(java.lang.String identifier)
           
 void setName(java.lang.String name)
           
 void setProperty(java.lang.String key, java.lang.Object value)
           
 void setStartTime(long startTimestamp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getParent

public ITrackGroup getParent()
Description copied from interface: ITrackGroup
Returns the parent, or null if it's the root group

Specified by:
getParent in interface ITrackGroup
Returns:
the parent group, or null if not available.

getName

public java.lang.String getName()
Description copied from interface: ITrackGroup
A human readable name of the track

Specified by:
getName in interface ITrackGroup
Returns:
the name, or null if not available.

getDescription

public java.lang.String getDescription()
Description copied from interface: ITrackGroup
Returns a description of the track

Specified by:
getDescription in interface ITrackGroup
Returns:
a description, or null if not available.

getGroups

public java.util.List<ITrackGroup> getGroups()
Specified by:
getGroups in interface ITrackGroup

setName

public void setName(java.lang.String name)

setDescription

public void setDescription(java.lang.String description)

getTrack

public Track getTrack(java.lang.Integer id)

add

public void add(TrackGroup group)

add

public void add(Track track)

getTracks

public java.util.List<ITrack> getTracks()
Description copied from interface: ITrackGroup
Return all tracks that belong to the track group.

Specified by:
getTracks in interface ITrackGroup
Returns:
the tracks.

getAllTracks

public java.util.Collection<ITrack> getAllTracks()
Description copied from interface: ITrackGroup
Return all tracks that belong to the track group and it's children.

Specified by:
getAllTracks in interface ITrackGroup
Returns:
all the track under the group.

getId

public java.lang.Integer getId()
Description copied from interface: ITrackGroup
A machine identifier for the track

Specified by:
getId in interface ITrackGroup
Returns:
the identifier.

getIdentifier

public java.lang.String getIdentifier()
Description copied from interface: ITrackGroup
Returns a symbolic name for the track group. You should not rely on that the symbol name is unique. See ITrackGroup.getId(). Valid character are those that make up a java identifier.

Specified by:
getIdentifier in interface ITrackGroup
Returns:
the symbol name for the track, or null if not available.
See Also:
Character.isJavaIdentifierPart(char), Character.isJavaIdentifierStart(char)

createGroup

public TrackGroup createGroup(java.lang.String identifier)

createTrack

public Track createTrack(java.lang.String identifier)

setIdentifier

public void setIdentifier(java.lang.String identifier)

getGroup

public ITrackGroup getGroup(java.lang.String identifier)
Description copied from interface: ITrackGroup
Returns a group given a symbolic name

Specified by:
getGroup in interface ITrackGroup
Returns:
the symbolic name for the group

getProperty

public java.lang.Object getProperty(java.lang.String key)
Description copied from interface: ITrackGroup
Returns a property value for.

Specified by:
getProperty in interface ITrackGroup
Parameters:
key - the key to look up the value with.
Returns:
the value, or null, if not available.

getAllGroups

public java.util.List<ITrackGroup> getAllGroups()
Description copied from interface: ITrackGroup
Return all groups and sub groups.

Specified by:
getAllGroups in interface ITrackGroup
Returns:
all the groups

setProperty

public void setProperty(java.lang.String key,
                        java.lang.Object value)

getRange

public ITimeRange getRange()
Description copied from interface: ITrackGroup
The time range the track group spans. It's valid for the time span to be shorter than of any track or track group belong to track.

Specified by:
getRange in interface ITrackGroup
Returns:
the time range

setStartTime

public void setStartTime(long startTimestamp)

setEndTime

public void setEndTime(long endTimestamp)

getPath

public java.lang.String getPath()
Description copied from interface: ITrackGroup
Returns the path of the track

Specified by:
getPath in interface ITrackGroup
Returns:
the path


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