Package io.trino.hdfs.rubix
Class DummyBookKeeper
java.lang.Object
io.trino.hdfs.rubix.DummyBookKeeper
- All Implemented Interfaces:
com.qubole.rubix.spi.thrift.BookKeeperService.Iface
public class DummyBookKeeper
extends Object
implements com.qubole.rubix.spi.thrift.BookKeeperService.Iface
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.qubole.rubix.spi.thrift.CacheStatusResponsegetCacheStatus(com.qubole.rubix.spi.thrift.CacheStatusRequest cacheStatusRequest) com.qubole.rubix.spi.thrift.FileInfogetFileInfo(String remotePath) voidhandleHeartbeat(String workerHostname, com.qubole.rubix.spi.thrift.HeartbeatStatus heartbeatStatus) voidinvalidateFileMetadata(String remotePath) booleancom.qubole.rubix.spi.thrift.ReadResponsereadData(String remotePath, long offset, int length, long fileSize, long lastModified, int clusterType) voidsetAllCached(String remotePath, long fileLength, long lastModified, long startBlock, long endBlock, int generationNumber)
-
Constructor Details
-
DummyBookKeeper
public DummyBookKeeper()
-
-
Method Details
-
getCacheStatus
public com.qubole.rubix.spi.thrift.CacheStatusResponse getCacheStatus(com.qubole.rubix.spi.thrift.CacheStatusRequest cacheStatusRequest) - Specified by:
getCacheStatusin interfacecom.qubole.rubix.spi.thrift.BookKeeperService.Iface
-
setAllCached
public void setAllCached(String remotePath, long fileLength, long lastModified, long startBlock, long endBlock, int generationNumber) - Specified by:
setAllCachedin interfacecom.qubole.rubix.spi.thrift.BookKeeperService.Iface
-
getCacheMetrics
- Specified by:
getCacheMetricsin interfacecom.qubole.rubix.spi.thrift.BookKeeperService.Iface
-
getReadRequestChainStats
- Specified by:
getReadRequestChainStatsin interfacecom.qubole.rubix.spi.thrift.BookKeeperService.Iface- Throws:
org.apache.thrift.shaded.TException
-
readData
public com.qubole.rubix.spi.thrift.ReadResponse readData(String remotePath, long offset, int length, long fileSize, long lastModified, int clusterType) - Specified by:
readDatain interfacecom.qubole.rubix.spi.thrift.BookKeeperService.Iface
-
handleHeartbeat
public void handleHeartbeat(String workerHostname, com.qubole.rubix.spi.thrift.HeartbeatStatus heartbeatStatus) - Specified by:
handleHeartbeatin interfacecom.qubole.rubix.spi.thrift.BookKeeperService.Iface
-
getFileInfo
- Specified by:
getFileInfoin interfacecom.qubole.rubix.spi.thrift.BookKeeperService.Iface
-
isBookKeeperAlive
public boolean isBookKeeperAlive()- Specified by:
isBookKeeperAlivein interfacecom.qubole.rubix.spi.thrift.BookKeeperService.Iface
-
invalidateFileMetadata
- Specified by:
invalidateFileMetadatain interfacecom.qubole.rubix.spi.thrift.BookKeeperService.Iface
-