A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/classCNetScheduleNotificationHandler.html below:

NCBI C++ ToolKit: CNetScheduleNotificationHandler Class Reference

Search Toolkit Book for CNetScheduleNotificationHandler

#include <connect/services/impl/netschedule_api_int.hpp>

enum   EJobStatusMask {
  fJSM_Pending = 1 << CNetScheduleAPI::ePending , fJSM_Running = 1 << CNetScheduleAPI::eRunning , fJSM_Canceled = 1 << CNetScheduleAPI::eCanceled , fJSM_Failed = 1 << CNetScheduleAPI::eFailed ,
  fJSM_Done = 1 << CNetScheduleAPI::eDone , fJSM_Reading = 1 << CNetScheduleAPI::eReading , fJSM_Confirmed = 1 << CNetScheduleAPI::eConfirmed , fJSM_ReadFailed = 1 << CNetScheduleAPI::eReadFailed ,
  fJSM_Deleted = 1 << CNetScheduleAPI::eDeleted
}   using  TLastEventIndex = int   using  TProgressMessage = string   using  TJobInfo = tuple< CNetScheduleAPI::EJobStatus, TLastEventIndex, TProgressMessage >   typedef int  TJobStatusMask     CNetScheduleNotificationHandler ()   bool  ReceiveNotification (string *server_host=NULL)   bool  WaitForNotification (const CDeadline &deadline, string *server_host=NULL)   unsigned short  GetPort () const   const stringGetMessage () const   void  PrintPortNumber ()   void  SubmitJob (CNetScheduleSubmitter::TInstance submitter, CNetScheduleJob &job, unsigned wait_time, CNetServer *server=NULL)   bool  CheckJobStatusNotification (const string &job_id, CNetScheduleAPI::EJobStatus *job_status, int *last_event_index=NULL)   CNetScheduleAPI::EJobStatus  WaitForJobCompletion (CNetScheduleJob &job, CDeadline &deadline, CNetScheduleAPI ns_api, time_t *job_exptime=NULL)   TJobInfo  RequestJobWatching (CNetScheduleAPI::TInstance ns_api, const string &job_id, const CDeadline &deadline)   bool  RequestJobWatching (CNetScheduleAPI::TInstance ns_api, const string &job_id, const CDeadline &deadline, CNetScheduleAPI::EJobStatus *job_status, int *last_event_index)   CNetScheduleAPI::EJobStatus  WaitForJobEvent (const string &job_key, CDeadline &deadline, CNetScheduleAPI ns_api, TJobStatusMask status_mask, int last_event_index=kMax_Int, int *new_event_index=NULL)   void  CmdAppendTimeoutGroupAndClientInfo (string &cmd, const CDeadline *deadline, const string &job_group)   bool  RequestJob (CNetScheduleExecutor::TInstance executor, CNetScheduleJob &job, const string &cmd)   bool  CheckRequestJobNotification (CNetScheduleExecutor::TInstance executor, CNetServer *server)  

Definition at line 77 of file netschedule_api_int.hpp.

◆ TJobInfo ◆ TJobStatusMask ◆ TLastEventIndex ◆ TProgressMessage ◆ EJobStatusMask Enumerator fJSM_Pending  fJSM_Running  fJSM_Canceled  fJSM_Failed  fJSM_Done  fJSM_Reading  fJSM_Confirmed  fJSM_ReadFailed  fJSM_Deleted 

Definition at line 124 of file netschedule_api_int.hpp.

◆ CNetScheduleNotificationHandler() CNetScheduleNotificationHandler::CNetScheduleNotificationHandler ( )

Definition at line 106 of file netschedule_api.cpp.

◆ CheckJobStatusNotification() ◆ CheckRequestJobNotification() ◆ CmdAppendTimeoutGroupAndClientInfo() ◆ GetJobDetailsIfCompleted() ◆ GetMessage() const string& CNetScheduleNotificationHandler::GetMessage ( void  ) const inline ◆ GetPort() unsigned short CNetScheduleNotificationHandler::GetPort ( void  ) const inline ◆ MkBaseGETCmd() ◆ PrintPortNumber() void CNetScheduleNotificationHandler::PrintPortNumber ( ) ◆ ReceiveNotification() bool CNetScheduleNotificationHandler::ReceiveNotification ( stringserver_host = NULL ) ◆ RequestJob() ◆ RequestJobWatching() [1/2]

Definition at line 516 of file netschedule_api_submitter.cpp.

References cmd, eOn, SNetScheduleAPIImpl::ExecOnJobServer(), NStr::fConvErr_NoThrow, g_AppendClientIPSessionIDHitID(), CTimeout::GetAsDouble(), GetPort(), CDeadline::GetRemainingTime(), NStr::NumericToString(), NStr::StringToInt(), and CNetScheduleAPI::StringToStatus().

Referenced by CGridCommandLineInterfaceApp::Cmd_WatchJob().

◆ RequestJobWatching() [2/2] ◆ SubmitJob() ◆ WaitForJobCompletion()

Definition at line 437 of file netschedule_api_submitter.cpp.

References CNetScheduleException::eJobNotFound, CNetScheduleAPI::ePending, CNetScheduleAPI::eRunning, CNetScheduleException::eUnknownQueue, FORCED_SST_INTERVAL_NANOSEC, FORCED_SST_INTERVAL_SEC, CException::GetErrCode(), CNetScheduleAPI::GetJobDetails(), SNetScheduleAPIImpl::GetListener(), CException::GetMsg(), SNetScheduleAPIImpl::GetServer(), CDeadline::IsExpired(), CNetScheduleNewJob::job_id, MAX_FORCED_SST_INTERVAL_SEC, and INetServerConnectionListener::OnWarning().

Referenced by CGridCommandLineInterfaceApp::Cmd_SubmitJob(), and SNetScheduleSubmitterImpl::SubmitJobAndWait().

◆ WaitForJobEvent() ◆ WaitForNotification()

Definition at line 286 of file netschedule_api.cpp.

References eIO_Success, eIO_Timeout, CTimeout::Get(), CDeadline::GetRemainingTime(), m_Receiver, ReceiveNotification(), STimeoutTag::sec, SNetScheduleNotificationReceiver::socket, STimeoutTag::usec, and CDatagramSocket::Wait().

Referenced by CGridCommandLineInterfaceApp::Cmd_RequestJob(), CGridCommandLineInterfaceApp::Cmd_SubmitJob(), and CGridCommandLineInterfaceApp::Cmd_WatchJob().

◆ m_Receiver

The documentation for this class was generated from the following files:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4