Package com.exonum.messages.core.runtime
Interface Lifecycle.InstanceStateOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Lifecycle.InstanceState
,Lifecycle.InstanceState.Builder
- Enclosing class:
- Lifecycle
public static interface Lifecycle.InstanceStateOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and Type Method Description java.lang.String
getDataVersion()
Version of the service data.com.google.protobuf.ByteString
getDataVersionBytes()
Version of the service data.Lifecycle.InstanceStatus
getPendingStatus()
Pending status of the instance.Lifecycle.InstanceStatusOrBuilder
getPendingStatusOrBuilder()
Pending status of the instance.Base.InstanceSpec
getSpec()
Service instance specification.Base.InstanceSpecOrBuilder
getSpecOrBuilder()
Service instance specification.Lifecycle.InstanceStatus
getStatus()
Service instance activity status.Lifecycle.InstanceStatusOrBuilder
getStatusOrBuilder()
Service instance activity status.boolean
hasPendingStatus()
Pending status of the instance.boolean
hasSpec()
Service instance specification.boolean
hasStatus()
Service instance activity status.Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasSpec
boolean hasSpec()Service instance specification.
.exonum.runtime.InstanceSpec spec = 1;
- Returns:
- Whether the spec field is set.
-
getSpec
Base.InstanceSpec getSpec()Service instance specification.
.exonum.runtime.InstanceSpec spec = 1;
- Returns:
- The spec.
-
getSpecOrBuilder
Base.InstanceSpecOrBuilder getSpecOrBuilder()Service instance specification.
.exonum.runtime.InstanceSpec spec = 1;
-
hasStatus
boolean hasStatus()Service instance activity status. Status can be `NONE` only during the block execution if instance was created, but activation routine for it is not yet completed, and this value can occur no more than once in a service lifetime. If this field is set to `NONE`, the pending_status must have value `ACTIVE`.
.exonum.runtime.InstanceStatus status = 2;
- Returns:
- Whether the status field is set.
-
getStatus
Lifecycle.InstanceStatus getStatus()Service instance activity status. Status can be `NONE` only during the block execution if instance was created, but activation routine for it is not yet completed, and this value can occur no more than once in a service lifetime. If this field is set to `NONE`, the pending_status must have value `ACTIVE`.
.exonum.runtime.InstanceStatus status = 2;
- Returns:
- The status.
-
getStatusOrBuilder
Lifecycle.InstanceStatusOrBuilder getStatusOrBuilder()Service instance activity status. Status can be `NONE` only during the block execution if instance was created, but activation routine for it is not yet completed, and this value can occur no more than once in a service lifetime. If this field is set to `NONE`, the pending_status must have value `ACTIVE`.
.exonum.runtime.InstanceStatus status = 2;
-
hasPendingStatus
boolean hasPendingStatus()Pending status of the instance. Pending state can be not `NONE` if core is in process of changing service status, e.g. service initialization, resuming or migration. If this field was set to value other than `NONE`, it always will be reset to `NONE` in the next block. The purpose of this field is to keep information about further service status during the block execution because the service status can be changed only after that block is committed. This approach is needed because there is no guarantee that the executed block will be committed.
.exonum.runtime.InstanceStatus pending_status = 3;
- Returns:
- Whether the pendingStatus field is set.
-
getPendingStatus
Lifecycle.InstanceStatus getPendingStatus()Pending status of the instance. Pending state can be not `NONE` if core is in process of changing service status, e.g. service initialization, resuming or migration. If this field was set to value other than `NONE`, it always will be reset to `NONE` in the next block. The purpose of this field is to keep information about further service status during the block execution because the service status can be changed only after that block is committed. This approach is needed because there is no guarantee that the executed block will be committed.
.exonum.runtime.InstanceStatus pending_status = 3;
- Returns:
- The pendingStatus.
-
getPendingStatusOrBuilder
Lifecycle.InstanceStatusOrBuilder getPendingStatusOrBuilder()Pending status of the instance. Pending state can be not `NONE` if core is in process of changing service status, e.g. service initialization, resuming or migration. If this field was set to value other than `NONE`, it always will be reset to `NONE` in the next block. The purpose of this field is to keep information about further service status during the block execution because the service status can be changed only after that block is committed. This approach is needed because there is no guarantee that the executed block will be committed.
.exonum.runtime.InstanceStatus pending_status = 3;
-
getDataVersion
java.lang.String getDataVersion()Version of the service data. The empty value means that the data version is the same as the `spec.artifact`. Non-empty value means that one or more data migrations have been performed on the service, so that the service data is compatible with a newer artifact.
string data_version = 4;
- Returns:
- The dataVersion.
-
getDataVersionBytes
com.google.protobuf.ByteString getDataVersionBytes()Version of the service data. The empty value means that the data version is the same as the `spec.artifact`. Non-empty value means that one or more data migrations have been performed on the service, so that the service data is compatible with a newer artifact.
string data_version = 4;
- Returns:
- The bytes for dataVersion.
-