Workspace 6.21.5
|
The base class of workspace-based Scheduler-originated network messages. More...
#include <Workspace/DataExecution/Execution/workspacetcpmessage.h>
Public Member Functions | |
WorkspaceTcpMessage () | |
WorkspaceTcpMessage (Workspace *) | |
~WorkspaceTcpMessage () override | |
Workspace * | getWorkspace () |
bool | readMessageDataFrom (QDataStream &) override |
void | setOwnsWorkspace (bool) |
Protected Member Functions | |
void | writeMessageDataTo (QDataStream &) override |
void | writeMessageDataTo (QDataStream &) override |
virtual void | writeMessageDataTo (QDataStream &) |
Additional Inherited Members |
When executing a workspace remotely, during the course of remote workspace execution, workspace signals will be emitted on the remote machine. These (remotely) emitted workspace signals need to be sent back to the local machine so they can be re-emitted locally. When a (remotely) emitted signal is generated it is sent back in the form of a network message to the local machine. The network message contains the workspace that emitted the signal HOWEVER this is a serialised COPY of the remotely emitting workspace and NOT the original workspace. As such, we need to identify the original (local) workspace given the (remote) copy. To do this, there is a new attribute on the workspace called "guid". This is a globally unique id that identifies a workspace. The guid is generated during the first call to Workspace::getUuid(). The guid is then serialised into workspace XML which is then sent to and recv'd from the server.
Constructs a WorkspaceTcpMessage.
|
explicit |
Constructs a WorkspaceTcpMessage.
|
override |
WorkspaceTcpMessage destructor.
Workspace * getWorkspace | ( | ) |
Returns the workspace associated with this message.
|
overridevirtual |
Reads a WorkspaceTcpMessage's data from a stream.
stream | the stream from which a WorkspaceTcpMessage's data is to be read. |
Reimplemented from SchedulerTcpMessage.
void setOwnsWorkspace | ( | bool | owns | ) |
|
overrideprotectedvirtual |
Writes a WorkspaceTcpMessage's data to a stream.
messageDataStream | the stream to which a WorkspaceTcpMessage's data is written. |
Reimplemented from SchedulerTcpMessage.