Class MemcachedTallyNode

java.lang.Object
io.datarouter.storage.node.BaseNode<PK,​D,​F>
io.datarouter.storage.node.type.physical.base.BasePhysicalNode<io.datarouter.storage.tally.TallyKey,​io.datarouter.storage.tally.Tally,​io.datarouter.storage.tally.Tally.TallyFielder>
io.datarouter.client.memcached.node.MemcachedTallyNode
All Implemented Interfaces:
io.datarouter.storage.node.Node<io.datarouter.storage.tally.TallyKey,​io.datarouter.storage.tally.Tally,​io.datarouter.storage.tally.Tally.TallyFielder>, io.datarouter.storage.node.op.NodeOps<io.datarouter.storage.tally.TallyKey,​io.datarouter.storage.tally.Tally>, io.datarouter.storage.node.op.raw.TallyStorage, io.datarouter.storage.node.op.raw.TallyStorage.PhysicalTallyStorageNode, io.datarouter.storage.node.op.raw.TallyStorage.TallyStorageNode, io.datarouter.storage.node.type.physical.PhysicalNode<io.datarouter.storage.tally.TallyKey,​io.datarouter.storage.tally.Tally,​io.datarouter.storage.tally.Tally.TallyFielder>, Comparable<io.datarouter.storage.node.Node<io.datarouter.storage.tally.TallyKey,​io.datarouter.storage.tally.Tally,​io.datarouter.storage.tally.Tally.TallyFielder>>

public class MemcachedTallyNode
extends io.datarouter.storage.node.type.physical.base.BasePhysicalNode<io.datarouter.storage.tally.TallyKey,​io.datarouter.storage.tally.Tally,​io.datarouter.storage.tally.Tally.TallyFielder>
implements io.datarouter.storage.node.op.raw.TallyStorage.PhysicalTallyStorageNode
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.datarouter.storage.node.op.raw.TallyStorage

    io.datarouter.storage.node.op.raw.TallyStorage.PhysicalTallyStorageNode, io.datarouter.storage.node.op.raw.TallyStorage.TallyStorageNode
  • Field Summary

    Fields inherited from interface io.datarouter.storage.node.op.raw.TallyStorage

    OP_deleteTally, OP_findTallyCount, OP_getMultiTallyCount, OP_incrementAndGetCount, OP_vacuum
  • Constructor Summary

    Constructors
    Constructor Description
    MemcachedTallyNode​(io.datarouter.storage.node.NodeParams<io.datarouter.storage.tally.TallyKey,​io.datarouter.storage.tally.Tally,​io.datarouter.storage.tally.Tally.TallyFielder> params, io.datarouter.storage.client.ClientType<?,​?> clientType, MemcachedTallyCodec tallyCodec, Supplier<DatarouterMemcachedClient> lazyClient)  
  • Method Summary

    Modifier and Type Method Description
    void deleteTally​(String tallyStringKey, io.datarouter.storage.config.Config config)  
    Optional<Long> findTallyCount​(String key, io.datarouter.storage.config.Config config)  
    Map<String,​Long> getMultiTallyCount​(Collection<String> tallyStringKeys, io.datarouter.storage.config.Config config)  
    Long incrementAndGetCount​(String tallyStringKey, int delta, io.datarouter.storage.config.Config config)  
    void vacuum​(io.datarouter.storage.config.Config config)  

    Methods inherited from class io.datarouter.storage.node.type.physical.base.BasePhysicalNode

    getChildNodes, getClientId, getClientIds, getClientType, getFieldInfo, getName, getPhysicalNodes, getPhysicalNodesForClient, toString, usesClient

    Methods inherited from class io.datarouter.storage.node.BaseNode

    compareTo

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.lang.Comparable

    compareTo

    Methods inherited from interface io.datarouter.storage.node.Node

    getChildNodes, getClientIds, getName, getPhysicalNodes, getPhysicalNodesForClient, usesClient

    Methods inherited from interface io.datarouter.storage.node.type.physical.PhysicalNode

    getClientId, getClientType, getFieldInfo

    Methods inherited from interface io.datarouter.storage.node.op.raw.TallyStorage

    deleteTally, findTallyCount, getMultiTallyCount, incrementAndGetCount
  • Constructor Details

    • MemcachedTallyNode

      public MemcachedTallyNode​(io.datarouter.storage.node.NodeParams<io.datarouter.storage.tally.TallyKey,​io.datarouter.storage.tally.Tally,​io.datarouter.storage.tally.Tally.TallyFielder> params, io.datarouter.storage.client.ClientType<?,​?> clientType, MemcachedTallyCodec tallyCodec, Supplier<DatarouterMemcachedClient> lazyClient)
  • Method Details

    • incrementAndGetCount

      public Long incrementAndGetCount​(String tallyStringKey, int delta, io.datarouter.storage.config.Config config)
      Specified by:
      incrementAndGetCount in interface io.datarouter.storage.node.op.raw.TallyStorage
    • findTallyCount

      public Optional<Long> findTallyCount​(String key, io.datarouter.storage.config.Config config)
      Specified by:
      findTallyCount in interface io.datarouter.storage.node.op.raw.TallyStorage
    • getMultiTallyCount

      public Map<String,​Long> getMultiTallyCount​(Collection<String> tallyStringKeys, io.datarouter.storage.config.Config config)
      Specified by:
      getMultiTallyCount in interface io.datarouter.storage.node.op.raw.TallyStorage
    • deleteTally

      public void deleteTally​(String tallyStringKey, io.datarouter.storage.config.Config config)
      Specified by:
      deleteTally in interface io.datarouter.storage.node.op.raw.TallyStorage
    • vacuum

      public void vacuum​(io.datarouter.storage.config.Config config)
      Specified by:
      vacuum in interface io.datarouter.storage.node.op.raw.TallyStorage