public class EndMetricEvent extends AMetricEvent
EndMetricEvent should be published to clese a previous StartMetricEvent| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_RESULT_SIZE |
StartMetricEvent |
startEvent |
eventId, INSTANCE_UUID, LOGGER, names, source, SOURCE_CLASSES| Modifier | Constructor and Description |
|---|---|
protected |
EndMetricEvent(StartMetricEvent startEvent)
Generally called by EndMetricEvent.post
|
| Modifier and Type | Method and Description |
|---|---|
static EndMetricEvent |
buildEndEvent(StartMetricEvent start) |
long |
durationInMs()
return now minus startTime in milliseconds
|
static EndMetricEvent |
postEndEvent(Consumer<? super AMetricEvent> eventBus,
StartMetricEvent startEvent) |
getEncounteredSourceClasses, getSourceClasses, logNoEventBus, post, toStringpublic static final String KEY_RESULT_SIZE
public final StartMetricEvent startEvent
protected EndMetricEvent(StartMetricEvent startEvent)
startEvent - public long durationInMs()
public static EndMetricEvent postEndEvent(Consumer<? super AMetricEvent> eventBus, StartMetricEvent startEvent)
public static EndMetricEvent buildEndEvent(StartMetricEvent start)
start - Copyright © 2014–2017 Pivotal Software, Inc.. All rights reserved.