NCBI C++ ToolKit
Macros | Functions | Variables
app_job_dispatcher.cpp File Reference
#include <ncbi_pch.hpp>
#include <gui/utils/app_job_dispatcher.hpp>
#include <gui/utils/app_job_engine.hpp>
#include <gui/utils/app_job_impl.hpp>
#include <gui/utils/event_translator.hpp>
#include <corelib/ncbimtx.hpp>
#include <corelib/ncbi_system.hpp>
+ Include dependency graph for app_job_dispatcher.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Macros

#define DISP_CATCH_AND_THROW(message, job)
 
#define DISP_CATCH_AND_REPORT(message, job)
 

Functions

 DEFINE_CLASS_STATIC_MUTEX (CAppJobDispatcher::sm_Mutex)
 CAppJobDispatcher. More...
 

Variables

static const char * kCannotStart = "Cannot start the job "
 
static const char * kJobRegistered = "Cannot start the job - it is already registered"
 
static const char * kUnknownEngine = "Cannot start the job - engine is not registred"
 
static const char * kCancelErrEngine
 
static const char * kCancelErrNotRunning
 
static const char * kCancelErrNotReg
 
static const char * kDefaultErrorMessage
 
static const char * kSuspendErrEngine
 
static const char * kSuspendErrNotRunning
 
static const char * kSuspendErrNotReg
 
static const char * kResumeErrEngine
 
static const char * kResumeErrNotRunning
 
static const char * kResumeErrNotReg
 
static const char * kDeleteErrEngine
 
static const char * kListenerException
 

Macro Definition Documentation

◆ DISP_CATCH_AND_REPORT

#define DISP_CATCH_AND_REPORT (   message,
  job 
)
Value:
catch (CException& e) { \
ERR_POST(message << job.GetDescr()); \
ERR_POST(e.ReportAll()); \
} catch (std::exception& ee) { \
ERR_POST(message << ee.what()); \
}
string ReportAll(TDiagPostFlags flags=eDPF_Exception) const
Report all exceptions.
Definition: ncbiexpt.cpp:370

Definition at line 55 of file app_job_dispatcher.cpp.

◆ DISP_CATCH_AND_THROW

#define DISP_CATCH_AND_THROW (   message,
  job 
)
Value:
catch (CException& e) { \
string s(message); \
s += job.GetDescr(); \
NCBI_RETHROW(e, CAppJobException, eEngineFailed, s); \
} catch (std::exception& ee) { \
NCBI_THROW(CAppJobException, eFatalError, ee.what()); \
}
IAppJobListener Interface for components that need to be notified about changes in Jobs.

Definition at line 46 of file app_job_dispatcher.cpp.

Function Documentation

◆ DEFINE_CLASS_STATIC_MUTEX()

DEFINE_CLASS_STATIC_MUTEX ( CAppJobDispatcher::sm_Mutex  )

Variable Documentation

◆ kCancelErrEngine

const char* kCancelErrEngine
static
Initial value:
=
"CAppJobDispatcher::CancelJob() cannot cancel job"

Definition at line 354 of file app_job_dispatcher.cpp.

Referenced by CAppJobDispatcher::CancelJob().

◆ kCancelErrNotReg

const char* kCancelErrNotReg
static
Initial value:
=
"CAppJobDispatcher::CancelJob() cannot cancel job - the job is not registered."

Definition at line 358 of file app_job_dispatcher.cpp.

Referenced by CAppJobDispatcher::CancelJob().

◆ kCancelErrNotRunning

const char* kCancelErrNotRunning
static
Initial value:
=
"CAppJobDispatcher::CancelJob() cannot cancel job - the job is not running."

Definition at line 356 of file app_job_dispatcher.cpp.

Referenced by CAppJobDispatcher::CancelJob().

◆ kCannotStart

const char* kCannotStart = "Cannot start the job "
static

Definition at line 261 of file app_job_dispatcher.cpp.

Referenced by CAppJobDispatcher::x_StartJob().

◆ kDefaultErrorMessage

const char* kDefaultErrorMessage
static
Initial value:
=
"CAppJobDispatcher: Tool failed with unspecified error"

Definition at line 360 of file app_job_dispatcher.cpp.

Referenced by CAppJobDispatcher::GetJobError().

◆ kDeleteErrEngine

const char* kDeleteErrEngine
static
Initial value:
=
"CAppJobDispatcher::DeleteJob() cannot delete job"

Definition at line 471 of file app_job_dispatcher.cpp.

Referenced by CAppJobDispatcher::DeleteJob().

◆ kJobRegistered

const char* kJobRegistered = "Cannot start the job - it is already registered"
static

Definition at line 262 of file app_job_dispatcher.cpp.

Referenced by CAppJobDispatcher::x_StartJob().

◆ kListenerException

const char* kListenerException
static
Initial value:
=
"Exception in CAppJobDispatcher::x_OnJobStateChangedNotify() "

Definition at line 629 of file app_job_dispatcher.cpp.

Referenced by CAppJobDispatcher::x_OnJobStateChangedNotify().

◆ kResumeErrEngine

const char* kResumeErrEngine
static
Initial value:
=
"CAppJobDispatcher::ResumeJob() cannot resume job"

Definition at line 439 of file app_job_dispatcher.cpp.

Referenced by CAppJobDispatcher::ResumeJob().

◆ kResumeErrNotReg

const char* kResumeErrNotReg
static
Initial value:
=
"CAppJobDispatcher::ResumeJob() cannot resume job - the job is not registered."

Definition at line 443 of file app_job_dispatcher.cpp.

Referenced by CAppJobDispatcher::ResumeJob().

◆ kResumeErrNotRunning

const char* kResumeErrNotRunning
static
Initial value:
=
"CAppJobDispatcher::ResumeJob() cannot resume job - the job is not running."

Definition at line 441 of file app_job_dispatcher.cpp.

Referenced by CAppJobDispatcher::ResumeJob().

◆ kSuspendErrEngine

const char* kSuspendErrEngine
static
Initial value:
=
"CAppJobDispatcher::SuspendJob() cannot suspend job"

Definition at line 406 of file app_job_dispatcher.cpp.

Referenced by CAppJobDispatcher::SuspendJob().

◆ kSuspendErrNotReg

const char* kSuspendErrNotReg
static
Initial value:
=
"CAppJobDispatcher::SuspendJob() cannot suspend job - the job is not registered."

Definition at line 410 of file app_job_dispatcher.cpp.

Referenced by CAppJobDispatcher::SuspendJob().

◆ kSuspendErrNotRunning

const char* kSuspendErrNotRunning
static
Initial value:
=
"CAppJobDispatcher::SuspendJob() cannot suspend job - the job is not running."

Definition at line 408 of file app_job_dispatcher.cpp.

Referenced by CAppJobDispatcher::SuspendJob().

◆ kUnknownEngine

const char* kUnknownEngine = "Cannot start the job - engine is not registred"
static

Definition at line 263 of file app_job_dispatcher.cpp.

Referenced by CAppJobDispatcher::x_StartJob().

Modified on Wed Apr 17 13:09:04 2024 by modify_doxy.py rev. 669887