ARC SDK
|
#include <arc/compute/JobState.h>
Public Member Functions | |
bool | IsFinished () const |
Check if state is finished. More... | |
const std::string & | operator() () const |
Unformatted specific job state. More... | |
const std::string & | GetGeneralState () const |
General string representation of job state. More... | |
std::string | GetSpecificState () const |
Specific string representation of job state. More... | |
ARC general state model. The class comprise the general state model of the ARC-lib, and are herein used to compare job states from the different middlewares supported by the plugin structure of the ARC-lib. Which is why every ACC plugin should contain a class derived from this class. The derived class should consist of a constructor and a mapping function (a JobStateMap) which maps a std::string to a JobState:StateType. An example of a constructor in a plugin could be: JobStatePlugin::JobStatePluging(const std::string& state) : JobState(state, &pluginStateMap) {} where &pluginStateMap is a reference to the JobStateMap defined by the derived class.
|
inline |
General string representation of job state.
Get the string representation of the job state as mapped to the libarccompute job state model.
|
inline |
Specific string representation of job state.
Get the string representation of the job state as returned by the CE service possibly formatted to a human readable string.
|
inline |
Check if state is finished.
|
inline |
Unformatted specific job state.
Get the unformatted specific job state as returned by the CE.