All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.quorum.tessera.recovery.workflow.ValidateEnclaveStatus Maven / Gradle / Ivy

Go to download

Tessera is a stateless Java system that is used to enable the encryption, decryption, and distribution of private transactions for Quorum.

There is a newer version: 24.4.2
Show newest version
package com.quorum.tessera.recovery.workflow;

import com.quorum.tessera.enclave.Enclave;
import com.quorum.tessera.enclave.EnclaveNotAvailableException;
import com.quorum.tessera.service.Service;

public class ValidateEnclaveStatus implements BatchWorkflowAction {

  private Enclave enclave;

  public ValidateEnclaveStatus(Enclave enclave) {
    this.enclave = enclave;
  }

  @Override
  public boolean execute(BatchWorkflowContext context) {
    if (enclave.status() == Service.Status.STOPPED) {
      throw new EnclaveNotAvailableException();
    }
    return true;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy