Object

com.ubirch.client.storage

ChainStorageServiceClient

Related Doc: package storage

Permalink

object ChainStorageServiceClient extends ExplorerStorage with MinerStorage with LazyLogging

Created by derMicha on 13/08/16.

Linear Supertypes
MinerStorage, ExplorerStorage, LazyLogging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ChainStorageServiceClient
  2. MinerStorage
  3. ExplorerStorage
  4. LazyLogging
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def deleteHash(hash: String): Future[Boolean]

    Permalink

    deletes a hash from the list of unmined hashes.

    deletes a hash from the list of unmined hashes.

    hash

    the hash to delete

    Definition Classes
    ChainStorageServiceClient → ExplorerStorage
  7. def deleteHashes(hashes: Set[String]): Future[Boolean]

    Permalink

    deletes a set of hash from the list of unmined hashes.

    deletes a set of hash from the list of unmined hashes.

    hashes

    set of hashes to delete

    Definition Classes
    ChainStorageServiceClient → ExplorerStorage
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def getBlockByEventHash(eventHash: HashedData): Future[Option[BlockInfo]]

    Permalink

    Gives us the block that the input hash is included in.

    Gives us the block that the input hash is included in.

    eventHash

    hash based on which we look for the related block

    returns

    block matching the input hash

    Definition Classes
    ChainStorageServiceClient → ExplorerStorage
  12. def getBlockInfo(blockHash: HashedData): Future[Option[BlockInfo]]

    Permalink

    Gives us basic information about a block (without all it's hashes).

    Gives us basic information about a block (without all it's hashes).

    blockHash

    hash of the requested block

    returns

    block matching the input hash

    Definition Classes
    ChainStorageServiceClient → ExplorerStorage
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def getFullBlock(blockHash: String): Future[Option[FullBlock]]

    Permalink

    Gives us a block including all it's hashes.

    Gives us a block including all it's hashes.

    blockHash

    hash of the requested block

    returns

    block matching the input hash

    Definition Classes
    ChainStorageServiceClient → ExplorerStorage
  15. def getGenesisBlock: Future[Option[GenesisBlock]]

    Permalink

    returns

    the genesis block; None if none exists

    Definition Classes
    ChainStorageServiceClient → ExplorerStorage
  16. def getNextBlockInfo(blockHash: HashedData): Future[Option[BlockInfo]]

    Permalink

    Gives us basic information about a block (without all it's hashes) based on the blockHash of it's predecessor.

    Gives us basic information about a block (without all it's hashes) based on the blockHash of it's predecessor.

    blockHash

    blockHash predecessor block

    returns

    block whose predecessor has the specified blockHash

    Definition Classes
    ChainStorageServiceClient → ExplorerStorage
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. def insertUnminedBlock(): Future[BlockInfo]

    Permalink

    Insert an unmined block.

    Insert an unmined block.

    returns

    BlockInfo of the inserted block

    Definition Classes
    ChainStorageServiceClient → MinerStorage
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. lazy val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    LazyLogging
  21. def mostRecentBlock(): Future[Option[BlockInfo]]

    Permalink
    Definition Classes
    ChainStorageServiceClient → ExplorerStorage
  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. def saveGenesisBlock(genesis: GenesisBlock): Future[Option[GenesisBlock]]

    Permalink
    Definition Classes
    ChainStorageServiceClient → ExplorerStorage
  26. def storeHash(hash: HashedData): Future[Option[HashedData]]

    Permalink

    Adds a hash to the list of unmined hashes.

    Adds a hash to the list of unmined hashes.

    hash

    the hash to store

    Definition Classes
    ChainStorageServiceClient → MinerStorage
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  29. def unminedBlock(): Future[BlockInfo]

    Permalink

    There's always exactly one unmined block which through mining becomes the newest block in the chain.

    There's always exactly one unmined block which through mining becomes the newest block in the chain.

    returns

    the unmined block

    Definition Classes
    ChainStorageServiceClient → MinerStorage
  30. def unminedHashes(): Future[UnminedHashes]

    Permalink

    Gives us a list of hashes that haven't been mined yet.

    Gives us a list of hashes that haven't been mined yet.

    returns

    list of unmined hashes

    Definition Classes
    ChainStorageServiceClient → ExplorerStorage
  31. def upsertBlock(block: BlockInfo): Future[Option[BlockInfo]]

    Permalink

    Saves or updates a block.

    Saves or updates a block.

    block

    block info to store

    Definition Classes
    ChainStorageServiceClient → ExplorerStorage
  32. def upsertFullBlock(fullBlock: FullBlock): Future[Option[FullBlock]]

    Permalink

    Saves or updates a block.

    Saves or updates a block.

    fullBlock

    block info to store

    Definition Classes
    ChainStorageServiceClient → ExplorerStorage
  33. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from MinerStorage

Inherited from ExplorerStorage

Inherited from LazyLogging

Inherited from AnyRef

Inherited from Any

Ungrouped