Uses of Class
com.exonum.binding.common.runtime.ServiceArtifactId
Package | Description |
---|---|
com.exonum.binding.common.runtime | |
com.exonum.binding.core.runtime | |
com.exonum.binding.testkit |
-
Uses of ServiceArtifactId in com.exonum.binding.common.runtime
Methods in com.exonum.binding.common.runtime that return ServiceArtifactId Modifier and Type Method Description static ServiceArtifactId
ServiceArtifactId. fromProto(Base.ArtifactId artifactId)
Creates a new service artifact from the given artifact id message.static ServiceArtifactId
ServiceArtifactId. newJavaId(java.lang.String name, java.lang.String version)
Creates a new service artifact id of a Java artifact.static ServiceArtifactId
ServiceArtifactId. parseFrom(java.lang.String serviceArtifactId)
Parses a service id in format "runtimeId:serviceName:version" astoString()
produces.static ServiceArtifactId
ServiceArtifactId. valueOf(int runtimeId, java.lang.String name, java.lang.String version)
Creates a new service artifact id. -
Uses of ServiceArtifactId in com.exonum.binding.core.runtime
Methods in com.exonum.binding.core.runtime that return ServiceArtifactId Modifier and Type Method Description abstract ServiceArtifactId
ServiceInstanceSpec. getArtifactId()
Returns the service artifact id.Methods in com.exonum.binding.core.runtime with parameters of type ServiceArtifactId Modifier and Type Method Description void
ServiceRuntime. deployArtifact(ServiceArtifactId id, java.lang.String filename)
Loads a Java service artifact from the specified file.boolean
ServiceRuntime. isArtifactDeployed(ServiceArtifactId id)
Returns true if an artifact with the given id is currently deployed in this runtime.static ServiceInstanceSpec
ServiceInstanceSpec. newInstance(java.lang.String name, int id, ServiceArtifactId artifactId)
-
Uses of ServiceArtifactId in com.exonum.binding.testkit
Methods in com.exonum.binding.testkit with parameters of type ServiceArtifactId Modifier and Type Method Description static TestKit
TestKit. forService(ServiceArtifactId artifactId, java.lang.String artifactFilename, java.lang.String serviceName, int serviceId, java.nio.file.Path artifactsDirectory)
Deploys and creates a single service with no configuration and with a single validator node in this TestKit network.TestKit.Builder
TestKit.Builder. withDeployedArtifact(ServiceArtifactId serviceArtifactId, java.lang.String artifactFilename)
Adds a service artifact which would be deployed by the TestKit.TestKit.Builder
TestKit.Builder. withService(ServiceArtifactId serviceArtifactId, java.lang.String serviceName, int serviceId)
Adds a service specification with which the TestKit would create the corresponding service instance with no configuration.TestKit.Builder
TestKit.Builder. withService(ServiceArtifactId serviceArtifactId, java.lang.String serviceName, int serviceId, com.google.protobuf.MessageLite configuration)
Adds a service specification with which the TestKit would create the corresponding service instance.