com.quorum.tessera.recovery.workflow.ValidateEnclaveStatus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tessera-recover Show documentation
Show all versions of tessera-recover Show documentation
Tessera is a stateless Java system that is used to enable the encryption, decryption, and distribution of private transactions for Quorum.
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