Uses of Class
com.exonum.binding.core.runtime.ServiceArtifactId
| Package | Description |
|---|---|
| com.exonum.binding.core.runtime | |
| com.exonum.binding.testkit |
-
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 ServiceArtifactIdServiceInstanceSpec. getArtifactId()Returns the service artifact id.static ServiceArtifactIdServiceArtifactId. newJavaId(String name)Creates a new service artifact id of a Java artifact.static ServiceArtifactIdServiceArtifactId. parseFrom(String serviceArtifactId)Parses a service id in format "runtimeId:serviceName" astoString()produces.static ServiceArtifactIdServiceArtifactId. valueOf(int runtimeId, String name)Creates a new service artifact id.Methods in com.exonum.binding.core.runtime with parameters of type ServiceArtifactId Modifier and Type Method Description voidServiceRuntime. deployArtifact(ServiceArtifactId id, String filename)Loads a Java service artifact from the specified file.booleanServiceRuntime. isArtifactDeployed(ServiceArtifactId id)Returns true if an artifact with the given id is currently deployed in this runtime.static ServiceInstanceSpecServiceInstanceSpec. newInstance(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 TestKitTestKit. forService(ServiceArtifactId artifactId, String artifactFilename, String serviceName, int serviceId, Path artifactsDirectory)Deploys and creates a single service with no configuration and with a single validator node in this TestKit network.TestKit.BuilderTestKit.Builder. withDeployedArtifact(ServiceArtifactId serviceArtifactId, String artifactFilename)Adds a service artifact which would be deployed by the TestKit.TestKit.BuilderTestKit.Builder. withService(ServiceArtifactId serviceArtifactId, String serviceName, int serviceId)Adds a service specification with which the TestKit would create the corresponding service instance with no configuration.TestKit.BuilderTestKit.Builder. withService(ServiceArtifactId serviceArtifactId, String serviceName, int serviceId, com.google.protobuf.MessageLite configuration)Adds a service specification with which the TestKit would create the corresponding service instance.