Class ServiceInstanceInfo

java.lang.Object
com.exonum.client.response.ServiceInstanceInfo

public final class ServiceInstanceInfo
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    ServiceInstanceInfo​(java.lang.String name, int id)  
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object o)  
    int getId()
    Returns the numeric id of the service instance.
    java.lang.String getName()
    Returns the name of the service instance.
    int hashCode()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • getName

      public java.lang.String getName()
      Returns the name of the service instance. It serves as the primary identifier of this service in most operations. It is assigned by the network administrators.
    • getId

      public int getId()
      Returns the numeric id of the service instance. Exonum assigns it to the service on instantiation. It is mainly used to route the transaction messages belonging to this instance.
      See Also:
      TransactionMessage.getServiceId()
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object