Class ServiceInstanceSpec


  • public abstract class ServiceInstanceSpec
    extends Object
    A specification of a service instance.
    • Constructor Detail

      • ServiceInstanceSpec

        public ServiceInstanceSpec()
    • Method Detail

      • getName

        public abstract 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 abstract 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()
      • getArtifactId

        public abstract com.exonum.binding.common.runtime.ServiceArtifactId getArtifactId()
        Returns the service artifact id.
      • newInstance

        public static ServiceInstanceSpec newInstance​(String name,
                                                      int id,
                                                      com.exonum.binding.common.runtime.ServiceArtifactId artifactId)