Class 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 Detail

      • DummyBookKeeper

        public DummyBookKeeper()
    • Method Detail

      • getCacheStatus

        public com.qubole.rubix.spi.thrift.CacheStatusResponse getCacheStatus​(com.qubole.rubix.spi.thrift.CacheStatusRequest cacheStatusRequest)
        Specified by:
        getCacheStatus in interface com.qubole.rubix.spi.thrift.BookKeeperService.Iface
      • setAllCached

        public void setAllCached​(String remotePath,
                                 long fileLength,
                                 long lastModified,
                                 long startBlock,
                                 long endBlock,
                                 int generationNumber)
        Specified by:
        setAllCached in interface com.qubole.rubix.spi.thrift.BookKeeperService.Iface
      • getCacheMetrics

        public Map<String,​Double> getCacheMetrics()
        Specified by:
        getCacheMetrics in interface com.qubole.rubix.spi.thrift.BookKeeperService.Iface
      • getReadRequestChainStats

        public Map<String,​Long> getReadRequestChainStats()
                                                        throws org.apache.thrift.shaded.TException
        Specified by:
        getReadRequestChainStats in interface com.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:
        readData in interface com.qubole.rubix.spi.thrift.BookKeeperService.Iface
      • handleHeartbeat

        public void handleHeartbeat​(String workerHostname,
                                    com.qubole.rubix.spi.thrift.HeartbeatStatus heartbeatStatus)
        Specified by:
        handleHeartbeat in interface com.qubole.rubix.spi.thrift.BookKeeperService.Iface
      • getFileInfo

        public com.qubole.rubix.spi.thrift.FileInfo getFileInfo​(String remotePath)
        Specified by:
        getFileInfo in interface com.qubole.rubix.spi.thrift.BookKeeperService.Iface
      • isBookKeeperAlive

        public boolean isBookKeeperAlive()
        Specified by:
        isBookKeeperAlive in interface com.qubole.rubix.spi.thrift.BookKeeperService.Iface
      • invalidateFileMetadata

        public void invalidateFileMetadata​(String remotePath)
        Specified by:
        invalidateFileMetadata in interface com.qubole.rubix.spi.thrift.BookKeeperService.Iface