Class EmulatedNode

java.lang.Object
com.exonum.binding.testkit.EmulatedNode

public class EmulatedNode
extends java.lang.Object
Context of the TestKit emulated node, i.e., on which it instantiates and executes services.
  • Constructor Summary

    Constructors 
    Constructor Description
    EmulatedNode​(int validatorId, KeyPair serviceKeyPair)
    Creates a context of an emulated node.
  • Method Summary

    Modifier and Type Method Description
    EmulatedNodeType getNodeType()
    Returns a node type - either EmulatedNodeType.VALIDATOR or EmulatedNodeType.AUDITOR.
    KeyPair getServiceKeyPair()
    Returns a service key pair of this node.
    java.util.OptionalInt getValidatorId()
    Returns a validator id if this node is a validator or OptionalInt.empty() if this is an auditor node.

    Methods inherited from class java.lang.Object

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