public class MultiFileLogNodeManager extends Object implements WriteLogNodeManager, IService
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Close all nodes.
|
void |
closeNode(String identifier) |
void |
deleteNode(String identifier,
Consumer<ByteBuffer[]> consumer)
Delete a log node.
|
ServiceType |
getID()
Get the name of the the service.
|
static MultiFileLogNodeManager |
getInstance() |
WriteLogNode |
getNode(String identifier,
Supplier<ByteBuffer[]> supplier)
Get a WriteLogNode by a identifier like "{storageGroupName}-{BufferWrite/Overflow}-{
nameOfTsFile}".
|
void |
start()
Start current service.
|
void |
stop()
Stop current service.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitshutdown, waitAndStoppublic static MultiFileLogNodeManager getInstance()
public WriteLogNode getNode(String identifier, Supplier<ByteBuffer[]> supplier)
WriteLogNodeManagergetNode 在接口中 WriteLogNodeManageridentifier - -identifier, the format: "{storageGroupName}-{BufferWrite/Overflow}-{
nameOfTsFile}"public void deleteNode(String identifier, Consumer<ByteBuffer[]> consumer) throws IOException
WriteLogNodeManagerdeleteNode 在接口中 WriteLogNodeManageridentifier - -identifierIOExceptionpublic void closeNode(String identifier) throws IOException
IOExceptionpublic void close()
WriteLogNodeManagerclose 在接口中 WriteLogNodeManagerpublic void start()
throws StartupException
IServicestart 在接口中 IServiceStartupExceptionpublic void stop()
IServicepublic ServiceType getID()
IServiceCopyright © 2022 The Apache Software Foundation. All rights reserved.