wrench::FailureCause Class Referenceabstract

A top-level class to describe all simulation-valid failures that can occur during workflow execution (and should/could be handled by a WMS) More...

#include <FailureCause.h>

Inheritance diagram for wrench::FailureCause:
wrench::ComputeThreadHasDied wrench::FatalFailure wrench::FileAlreadyBeingCopied wrench::FileNotFound wrench::FunctionalityNotAvailable wrench::JobCannotBeForgotten wrench::JobCannotBeTerminated wrench::JobKilled wrench::JobTimeout wrench::JobTypeNotSupported wrench::NetworkError wrench::NoScratchSpace wrench::NoStorageServiceForFile wrench::NotEnoughComputeResources wrench::ServiceIsDown wrench::StorageServiceNotEnoughSpace

Public Types

enum  CauseType {
  FATAL_FAILURE, NO_STORAGE_SERVICE_FOR_FILE, NO_SCRATCH_SPACE, FILE_NOT_FOUND,
  FILE_ALREADY_THERE, FILE_ALREADY_BEING_COPIED, STORAGE_NOT_ENOUGH_SPACE, SERVICE_DOWN,
  JOB_TYPE_NOT_SUPPORTED, NOT_ENOUGH_COMPUTE_RESOURCES, NETWORK_ERROR, NETWORK_TIMEOUT,
  JOB_KILLED, JOB_CANNOT_BE_TERMINATED, JOB_CANNOT_BE_FORGOTTEN, COMPUTE_THREAD_HAS_DIED,
  FUNCTIONALITY_NOT_AVAILABLE, JOB_TIMEOUT
}
 Types of failure causes. More...
 

Public Member Functions

 FailureCause (CauseType cause)
 Constructor. More...
 
CauseType getCauseType ()
 Retrieve the type of the failure cause. More...
 
virtual std::string toString ()=0
 Return an error message that describes the failure cause (to be overridden) More...
 

Detailed Description

A top-level class to describe all simulation-valid failures that can occur during workflow execution (and should/could be handled by a WMS)

Member Enumeration Documentation

Types of failure causes.

Enumerator
FATAL_FAILURE 

Unknown cause.

NO_STORAGE_SERVICE_FOR_FILE 

The file cannot be found anywhere.

NO_SCRATCH_SPACE 

No Scratch Space is available.

FILE_NOT_FOUND 

The file was not found where it was supposed to be found.

FILE_ALREADY_THERE 

The file to be written is already there.

FILE_ALREADY_BEING_COPIED 

The file is already being copied there.

STORAGE_NOT_ENOUGH_SPACE 

The storage service does not have enough space to support the requested operation.

SERVICE_DOWN 

The service cannot be used because it is down (likely it was terminated)

JOB_TYPE_NOT_SUPPORTED 

The compute service does not support this job type.

NOT_ENOUGH_COMPUTE_RESOURCES 

The compute service cannot run the job (ever) due to insufficient resources.

NETWORK_ERROR 

There was a network error, or an endpoint was down.

NETWORK_TIMEOUT 

There was a network timeout (for a "with timeout" network operation)

JOB_KILLED 

A Job has been killed (likely because the service performing it was terminated)

JOB_CANNOT_BE_TERMINATED 

The job cannot be terminated because it is neither pending nor running.

JOB_CANNOT_BE_FORGOTTEN 

The job cannot be forgotten because it is not completed.

COMPUTE_THREAD_HAS_DIED 

A compute thread has died.

FUNCTIONALITY_NOT_AVAILABLE 

A functionality is not available.

JOB_TIMEOUT 

A job was terminated due to a timeout.

Constructor & Destructor Documentation

wrench::FailureCause::FailureCause ( CauseType  cause)

Constructor.

Parameters
causethe type of the failure cause

Member Function Documentation

FailureCause::CauseType wrench::FailureCause::getCauseType ( )

Retrieve the type of the failure cause.

Returns

The documentation for this class was generated from the following files:
  • /home/wrench/wrench/include/wrench/workflow/execution_events/FailureCause.h
  • /home/wrench/wrench/src/wrench/workflow/execution_events/FailureCause.cpp