com.jrockit.mc.flightrecorder.provider
Class Track

java.lang.Object
  extended by com.jrockit.mc.flightrecorder.provider.Track
All Implemented Interfaces:
ITrack

public final class Track
extends java.lang.Object
implements ITrack

A time-line where events could be place up on. The current implementation doesn't allow events of the same type to overlap on the same track.

Author:
Erik Gahlin

Method Summary
 void addEvent(IEvent event)
           
 java.lang.String getDescription()
           
 java.lang.Integer getId()
          Returns an unique identifier for the track.
 java.util.Collection<java.lang.String> getKeys()
          Returns a collection of the property keys available
 java.lang.String getName()
          A human readable name of the track
 java.lang.Object getProperty(java.lang.String key)
          Returns property value for the track
 ITimeRange getRange()
          Return the range the range spans.
 java.util.Collection<EventStorage> getSTorages()
           
 java.lang.String getSymbolName()
          Returns a symbolic name for the track.
 void setDescription(java.lang.String description)
           
 void setEndTime(long endTimestamp)
           
 void setName(java.lang.String name)
           
 void setProperty(java.lang.String key, java.lang.Object value)
           
 void setStartTime(long startTimestamp)
           
 void setSymbolicName(java.lang.String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getName

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

Specified by:
getName in interface ITrack
Returns:
the name

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String description)

getId

public java.lang.Integer getId()
Description copied from interface: ITrack
Returns an unique identifier for the track. This identifier can be used to identify the track.

Specified by:
getId in interface ITrack
Returns:
the track identifier.

getSymbolName

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

Specified by:
getSymbolName in interface ITrack
Returns:
the symbol name for the track
See Also:
Character.isJavaIdentifierPart(char), Character.isJavaIdentifierStart(char)

getRange

public ITimeRange getRange()
Description copied from interface: ITrack
Return the range the range spans.

Specified by:
getRange in interface ITrack
Returns:
the name

getProperty

public java.lang.Object getProperty(java.lang.String key)
Description copied from interface: ITrack
Returns property value for the track

Specified by:
getProperty in interface ITrack
Parameters:
key - the key for the property
Returns:
the value or null if not available.

getSTorages

public java.util.Collection<EventStorage> getSTorages()

addEvent

public void addEvent(IEvent event)

setName

public void setName(java.lang.String name)

setSymbolicName

public void setSymbolicName(java.lang.String path)

setStartTime

public void setStartTime(long startTimestamp)

setEndTime

public void setEndTime(long endTimestamp)

getKeys

public java.util.Collection<java.lang.String> getKeys()
Description copied from interface: ITrack
Returns a collection of the property keys available

Specified by:
getKeys in interface ITrack
Returns:
a collection of keys that can be used with ITrack.getProperty(String)

setProperty

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


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