Workspace 6.21.5
Public Member Functions | List of all members
TcpRemoteSchedulerSocketHandler Class Reference

#include <Workspace/DataExecution/Execution/Schedulers/Tcp/tcpremoteschedulersockethandler.h>

Inheritance diagram for TcpRemoteSchedulerSocketHandler:
[legend]

Public Member Functions

 TcpRemoteSchedulerSocketHandler (TcpRemoteScheduler::TcpServer &server, qintptr socket, Application::SessionManager &sessionManager)
 
 ~TcpRemoteSchedulerSocketHandler () override
 
void onOperationUpdateEventList (const CSIRO::DataExecution::ExecutionTimekeeper::EventList &eventList) override
 
void onWorkspaceAbortedUpdate (CSIRO::DataExecution::Workspace &workspace, const AbortReason &abortReason) override
 
void onWorkspaceFinishedExecution (CSIRO::DataExecution::Workspace &workspace) override
 
void onWorkspaceFinishedUpdate (CSIRO::DataExecution::Workspace &workspace) override
 
void onWorkspaceLogMessage (CSIRO::DataExecution::Workspace &workspace, const QString &logText) override
 
void onWorkspaceStartedExecution (CSIRO::DataExecution::Workspace &workspace) override
 
void onWorkspaceStartedUpdate (CSIRO::DataExecution::Workspace &workspace) override
 
QString sessionId () const
 
- Public Member Functions inherited from Socket
 Socket (QObject *parent=nullptr)
 
 ~Socket () override
 
virtual qint64 bytesAvailable () const
 
void close ()
 
virtual void connectToHost (const QString &host, quint16 port, bool makeSecure)
 
QAbstractSocket::SocketError error () const
 
QString errorString () const
 
QTcpSocket & getSocket ()
 
QHostAddress localAddress () const
 
quint16 localPort () const
 
 operator QIODevice & ()
 
 operator QTcpSocket & ()
 
QHostAddress peerAddress () const
 
quint16 peerPort () const
 
bool setSocketDescriptor (int socketDescriptor, QAbstractSocket::SocketState socketState=QAbstractSocket::ConnectedState, QIODevice::OpenMode openMode=QIODevice::ReadWrite)
 
QAbstractSocket::SocketState state () const
 

Additional Inherited Members

- Signals inherited from Socket
void connected ()
 
void disconnected ()
 
void error (QAbstractSocket::SocketError)
 
void stateChanged (QAbstractSocket::SocketState)
 
- Protected Slots inherited from Socket
virtual void onConnected ()
 
virtual void onDisconnected ()
 
virtual void onError (QAbstractSocket::SocketError)
 
- Protected Attributes inherited from Socket
QTcpSocket * socket_
 

Detailed Description

Reads data from and writes data to a connected client socket.

Constructor & Destructor Documentation

◆ TcpRemoteSchedulerSocketHandler()

TcpRemoteSchedulerSocketHandler ( TcpRemoteScheduler::TcpServer server,
qintptr  socket,
Application::SessionManager sessionManager 
)
Parameters
serverThe server daemon that created this socket.
socketThe socket descriptor to create a socket for.
sessionManagerthe sessionManager that manages client sessions.

◆ ~TcpRemoteSchedulerSocketHandler()

Member Function Documentation

◆ onOperationUpdateEventList()

void onOperationUpdateEventList ( const CSIRO::DataExecution::ExecutionTimekeeper::EventList eventList)
overridevirtual

This is where the Workspace Server send the Operation Update Event List back to the Workspace GUI via TCP messages

Implements WorkspaceContainer::WorkspaceContainerInterface.

◆ onWorkspaceAbortedUpdate()

void onWorkspaceAbortedUpdate ( CSIRO::DataExecution::Workspace workspace,
const AbortReason abortReason 
)
overridevirtual

Invoked when a workspace has aborted update.

Implements WorkspaceContainer::WorkspaceContainerInterface.

◆ onWorkspaceFinishedExecution()

void onWorkspaceFinishedExecution ( CSIRO::DataExecution::Workspace workspace)
overridevirtual

Invoked when a workspace has finished execution.

Implements WorkspaceContainer::WorkspaceContainerInterface.

◆ onWorkspaceFinishedUpdate()

void onWorkspaceFinishedUpdate ( CSIRO::DataExecution::Workspace workspace)
overridevirtual

Invoked when a workspace has finished update.

Implements WorkspaceContainer::WorkspaceContainerInterface.

◆ onWorkspaceLogMessage()

void onWorkspaceLogMessage ( CSIRO::DataExecution::Workspace workspace,
const QString &  logText 
)
overridevirtual

Invoked when a workspace has notified a log message.

Implements WorkspaceContainer::WorkspaceContainerInterface.

◆ onWorkspaceStartedExecution()

void onWorkspaceStartedExecution ( CSIRO::DataExecution::Workspace workspace)
overridevirtual

Invoked when a workspace has started execution.

Implements WorkspaceContainer::WorkspaceContainerInterface.

◆ onWorkspaceStartedUpdate()

void onWorkspaceStartedUpdate ( CSIRO::DataExecution::Workspace workspace)
overridevirtual

Invoked when a workspace has started update.

Implements WorkspaceContainer::WorkspaceContainerInterface.

◆ sessionId()

QString sessionId ( ) const