Package com.exonum.client.response
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
-
Constructor Details
-
ServiceInstanceInfo
public ServiceInstanceInfo(java.lang.String name, int id)
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-