com.jrockit.mc.flightrecorder.provider
Class DurationField

java.lang.Object
  extended by com.jrockit.mc.flightrecorder.provider.Field
      extended by com.jrockit.mc.flightrecorder.provider.DurationField
All Implemented Interfaces:
IField

public final class DurationField
extends Field

Field that extract the duration from an event.

Author:
Erik Gahlin

Field Summary
static java.lang.String IDENTIFIER
          The identifier for the field
 
Constructor Summary
DurationField(IEventType type)
          Constructs a duration field that can return the duration of an event
 
Method Summary
 java.lang.Object getValue(IEvent event)
          Returns a field value for an event
 
Methods inherited from class com.jrockit.mc.flightrecorder.provider.Field
equals, getContentType, getDescription, getEventTypePath, getIdentifier, getName, getPropertyKeys, getPropertyValue, getRelationalKey, getType, hashCode, isRelational, isSynthetic, isVisible, setContentType, setDescription, setFieldType, setName, setPath, setProperty, setRelationalKey, setSynthetic, setVisible
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IDENTIFIER

public static final java.lang.String IDENTIFIER
The identifier for the field

See Also:
Constant Field Values
Constructor Detail

DurationField

public DurationField(IEventType type)
Constructs a duration field that can return the duration of an event

Parameters:
type - the event type
Method Detail

getValue

public java.lang.Object getValue(IEvent event)
Description copied from interface: IField
Returns a field value for an event

Specified by:
getValue in interface IField
Specified by:
getValue in class Field
Parameters:
event - the event
Returns:
value the value


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