com.sun.sgs.profile
Enum ProfileConsumer.ProfileDataType

java.lang.Object
  extended by java.lang.Enum<ProfileConsumer.ProfileDataType>
      extended by com.sun.sgs.profile.ProfileConsumer.ProfileDataType
All Implemented Interfaces:
Serializable, Comparable<ProfileConsumer.ProfileDataType>
Enclosing interface:
ProfileConsumer

public static enum ProfileConsumer.ProfileDataType
extends Enum<ProfileConsumer.ProfileDataType>

The valid types of profile operations, counters and samples that can be created with the profile data factory methods.


Enum Constant Summary
AGGREGATE
          Data that is aggregated until it is explicitly cleared.
TASK
          Task local data reported through the ProfileReport to ProfileListeners on a per-task basis.
TASK_AND_AGGREGATE
          Data that is both aggregated and reported on a per-task basis.
 
Method Summary
static ProfileConsumer.ProfileDataType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ProfileConsumer.ProfileDataType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

TASK

public static final ProfileConsumer.ProfileDataType TASK
Task local data reported through the ProfileReport to ProfileListeners on a per-task basis.


AGGREGATE

public static final ProfileConsumer.ProfileDataType AGGREGATE
Data that is aggregated until it is explicitly cleared.


TASK_AND_AGGREGATE

public static final ProfileConsumer.ProfileDataType TASK_AND_AGGREGATE
Data that is both aggregated and reported on a per-task basis.

Method Detail

values

public static ProfileConsumer.ProfileDataType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ProfileConsumer.ProfileDataType c : ProfileConsumer.ProfileDataType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ProfileConsumer.ProfileDataType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

RedDwarf, Version 0.10.1
2010-03-14 10:56:12

Copyright © 2010 The RedDwarf Authors. All rights reserved
Copyright © 2007-2010 Sun Microsystems, Inc. All rights reserved