OnixS C++ ICE Binary Order Entry Handler 1.1.1
API Documentation
Loading...
Searching...
No Matches
SchedulingIssueDetector Class Reference

Public Member Functions

 SchedulingIssueDetector ()=default
 ~SchedulingIssueDetector () override=default
void onWarning (const SessionScheduler &, Session *session, const std::string &warningReason) override
void onError (const SessionScheduler &, Session *session, const std::string &errorReason) override
Public Member Functions inherited from SessionSchedulerListener
virtual void onLoggingOut (const SessionScheduler &scheduler, Session *session, bool *allowLogout)

Additional Inherited Members

Protected Member Functions inherited from SessionSchedulerListener
virtual ~SessionSchedulerListener ()=0

Detailed Description

Definition at line 42 of file SessionScheduler.cpp.

Constructor & Destructor Documentation

◆ SchedulingIssueDetector()

◆ ~SchedulingIssueDetector()

~SchedulingIssueDetector ( )
overridedefault

Member Function Documentation

◆ onError()

void onError ( const SessionScheduler & scheduler,
Session * session,
const std::string & errorReason )
inlineoverridevirtual

Notifies about an error.

Parameters
schedulerthe instance the of session scheduler that fires the error.
sessionthe session that that fires the error.
errorReasonthe error reason text.

Reimplemented from SessionSchedulerListener.

Definition at line 54 of file SessionScheduler.cpp.

55 {
56 std::cout << "Error occurred while scheduling session " << session->toString() << ": " << errorReason;
57 }
std::string toString() const

◆ onWarning()

void onWarning ( const SessionScheduler & scheduler,
Session * session,
const std::string & warningReason )
inlineoverridevirtual

Notifies about a non-critical issue.

Parameters
schedulerthe instance the of session scheduler that fires the warning.
sessionthe session that that fires the warning.
warningReasonthe warning reason text.

Reimplemented from SessionSchedulerListener.

Definition at line 49 of file SessionScheduler.cpp.

50 {
51 std::cout << "Scheduler reported a warning for the session " << session->toString() << ": " << warningReason;
52 }