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 Details

    • hasSpec

      boolean hasSpec()
       Service instance specification.
       
      .exonum.runtime.InstanceSpec spec = 1;
      Returns:
      Whether the spec field is set.
    • 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

       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.