public enum MetricsDescriptor extends Enum<MetricsDescriptor>
Time metrics frame
0 1 2 3 4 5 6
0 2 4 6 8 0 2 4 6 8 0 2 4 6 8 0 2 4 6 8 0 2 4 6 8 0 2 4 6 8 0 2 4
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|Version| Flags | Index | Source |
+-------+-------+-------+-------+-------+-------+-------+-------+
| Sequence |
+-------+-------+-------+-------+-------+-------+-------+-------+
| Time |
+-------+-------+-------+-------+-------+-------+-------+-------+
| Time 0 |
| Time 1 |
| ... |
Frequency counter metrics frame
0 1 2 3 4 5 6
0 2 4 6 8 0 2 4 6 8 0 2 4 6 8 0 2 4 6 8 0 2 4 6 8 0 2 4 6 8 0 2 4
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|Version|Flags=0| Choice | Repetition |
+-------+-------+-------+-------+-------+-------+-------+-------+
| Interval |
+-------+-------+-------+-------+-------+-------+-------+-------+
| Time |
+-------+-------+-------+-------+-------+-------+-------+-------+
| Count 0 |
| Count 1 |
| ... |
| Modifier and Type | Field and Description |
|---|---|
static int |
CHOICE_LENGTH |
static int |
CHOICE_OFFSET |
static int |
FLAGS_LENGTH |
static int |
FLAGS_OFFSET |
static int |
HEADER_LENGTH |
static int |
HEADER_OFFSET |
static int |
INDEX_LENGTH |
static int |
INDEX_OFFSET |
static int |
INTERVAL_LENGTH |
static int |
INTERVAL_OFFSET |
static int |
PAYLOAD_OFFSET |
static int |
REPETITION_LENGTH |
static int |
REPETITION_OFFSET |
static int |
SEQUENCE_LENGTH |
static int |
SEQUENCE_OFFSET |
static int |
SOURCE_LENGTH |
static int |
SOURCE_OFFSET |
static int |
TIME_LENGTH |
static int |
TIME_OFFSET |
static byte |
VERSION |
static int |
VERSION_LENGTH |
static int |
VERSION_OFFSET |
| Modifier and Type | Method and Description |
|---|---|
static short |
choice(DirectBuffer buffer) |
static long |
counter(int index,
DirectBuffer buffer) |
static byte |
flags(DirectBuffer buffer) |
static short |
index(DirectBuffer buffer) |
static long |
interval(DirectBuffer buffer) |
static boolean |
isFrequencyMetrics(DirectBuffer buffer) |
static boolean |
isTimeMetrics(DirectBuffer buffer) |
static int |
repetition(DirectBuffer buffer) |
static long |
sequence(DirectBuffer buffer) |
static int |
source(DirectBuffer buffer) |
static long |
time(DirectBuffer buffer) |
static long |
time(int index,
DirectBuffer buffer) |
static MetricsDescriptor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MetricsDescriptor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static byte |
version(DirectBuffer buffer) |
public static final byte VERSION
public static final int VERSION_OFFSET
public static final int VERSION_LENGTH
public static final int FLAGS_OFFSET
public static final int FLAGS_LENGTH
public static final int INDEX_OFFSET
public static final int INDEX_LENGTH
public static final int SOURCE_OFFSET
public static final int SOURCE_LENGTH
public static final int SEQUENCE_OFFSET
public static final int SEQUENCE_LENGTH
public static final int TIME_OFFSET
public static final int TIME_LENGTH
public static final int CHOICE_OFFSET
public static final int CHOICE_LENGTH
public static final int REPETITION_OFFSET
public static final int REPETITION_LENGTH
public static final int INTERVAL_OFFSET
public static final int INTERVAL_LENGTH
public static final int HEADER_OFFSET
public static final int HEADER_LENGTH
public static final int PAYLOAD_OFFSET
public static MetricsDescriptor[] values()
for (MetricsDescriptor c : MetricsDescriptor.values()) System.out.println(c);
public static MetricsDescriptor 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 byte version(DirectBuffer buffer)
public static byte flags(DirectBuffer buffer)
public static boolean isTimeMetrics(DirectBuffer buffer)
public static boolean isFrequencyMetrics(DirectBuffer buffer)
public static short index(DirectBuffer buffer)
public static int source(DirectBuffer buffer)
public static long sequence(DirectBuffer buffer)
public static long time(DirectBuffer buffer)
public static short choice(DirectBuffer buffer)
public static int repetition(DirectBuffer buffer)
public static long interval(DirectBuffer buffer)
public static long time(int index,
DirectBuffer buffer)
public static long counter(int index,
DirectBuffer buffer)
Copyright © 2020 tools4j.org (Marco Terzer, Anton Anufriev). All Rights Reserved.