public static enum ProfilingStatus.Level extends Enum<ProfilingStatus.Level>
| Enum Constant and Description |
|---|
ALL
Profile all operations.
|
NONE
Profile no operations.
|
SLOW_ONLY
Only profile slow operations.
|
| Modifier and Type | Method and Description |
|---|---|
static ProfilingStatus.Level |
fromValue(int value)
Returns the
ProfilingStatus.Level for the specified value. |
int |
getValue()
Returns the profile level value to send to MongoDB.
|
static ProfilingStatus.Level |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProfilingStatus.Level[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProfilingStatus.Level ALL
public static final ProfilingStatus.Level NONE
public static final ProfilingStatus.Level SLOW_ONLY
public static ProfilingStatus.Level[] values()
for (ProfilingStatus.Level c : ProfilingStatus.Level.values()) System.out.println(c);
public static ProfilingStatus.Level valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static ProfilingStatus.Level fromValue(int value)
ProfilingStatus.Level for the specified value.value - The value of the profile level.public int getValue()
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.