@InterfaceAudience.Private @InterfaceStability.Evolving public final class NamedQueueRecorder extends Object implements Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
addRecord(NamedQueuePayload namedQueuePayload)
Add various NamedQueue records to ringbuffer.
|
boolean |
clearNamedQueue(NamedQueuePayload.NamedQueueEvent namedQueueEvent)
clears queue records from ringbuffer
|
void |
close() |
static NamedQueueRecorder |
getInstance(org.apache.hadoop.conf.Configuration conf) |
NamedQueueGetResponse |
getNamedQueueRecords(NamedQueueGetRequest request)
Retrieve in memory queue records from ringbuffer
|
void |
persistAll(NamedQueuePayload.NamedQueueEvent namedQueueEvent)
Add all in memory queue records to system table.
|
public static NamedQueueRecorder getInstance(org.apache.hadoop.conf.Configuration conf)
public NamedQueueGetResponse getNamedQueueRecords(NamedQueueGetRequest request)
request - namedQueue request with event typepublic boolean clearNamedQueue(NamedQueuePayload.NamedQueueEvent namedQueueEvent)
namedQueueEvent - type of queue to clearpublic void addRecord(NamedQueuePayload namedQueuePayload)
namedQueuePayload - namedQueue payload sent by client of ring buffer
servicepublic void persistAll(NamedQueuePayload.NamedQueueEvent namedQueueEvent)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2007–2022 The Apache Software Foundation. All rights reserved.