11 #ifndef vtkSMSessionClient_h 12 #define vtkSMSessionClient_h 33 const char*
GetURI()
override {
return this->URI; };
55 virtual bool Connect(
const char* url,
int timeout = 60)
58 return this->Connect(url, timeout,
nullptr, result);
60 virtual bool Connect(
const char*
url,
int timeout,
bool (*callback)(),
107 bool ignore_errors =
false)
override;
118 vtkSetMacro(AbortConnect,
bool);
133 vtkTypeUInt32 location,
vtkPVInformation* information, vtkTypeUInt32 globalid)
override;
161 virtual bool IsNotBusy();
167 virtual void StartBusyWork();
173 virtual void EndBusyWork();
215 void OnServerNotificationMessageRMI(
void* message,
int message_length);
224 void SetupDataServerRenderServerConnection();
240 vtkTypeUInt32 GetRealLocation(vtkTypeUInt32);
251 vtkSetStringMacro(URI);
274 virtual void OnConnectionLost(
vtkObject* caller,
unsigned long eventid,
void* calldata);
281 vtkTypeUInt32 LastGlobalID;
282 vtkTypeUInt32 LastGlobalIDAvailable;
void PrepareProgressInternal() override
Should be called to begin/end receiving progresses on this session.
vtkPVServerInformation * RenderServerInformation
void PrintSelf(ostream &os, vtkIndent indent) override
vtkPVServerInformation * ServerInformation
vtkPVServerInformation * DataServerInformation
bool GetIsAlive() override
Builtin session is always alive.
#define VTKREMOTINGSERVERMANAGER_EXPORT
virtual vtkSMCollaborationManager * GetCollaborationManager()
Return the instance of vtkSMCollaborationManager that will be lazy created at the first call...
virtual const vtkClientServerStream & GetLastResult(vtkTypeUInt32 location)
Returns the response of the ExecuteStream() call from the location.
vtkSMSession is the default ParaView session.
vtkMultiProcessController * RenderServerController
virtual bool GatherInformation(vtkTypeUInt32 location, vtkPVInformation *information, vtkTypeUInt32 globalid)
Gather information about an object referred by the globalid.
Class used to broadcast message from one client to the others.
Store messages for the interpreter.
singleton/facade to vtkSMSessionProxyManager
virtual void PreDisconnection()
virtual bool Connect(const char *url, int timeout=60)
Connects a remote server.
virtual bool IsMPIInitialized(vtkTypeUInt32 servers)
Returns whether or not MPI is initialized on the specified server/s.
vtkSMSessionClient is a remote-session that connects to a remote server.
vtkMultiProcessController * DataServerController
Header class that setup every thing in order to use Protobuf messages in a transparent manner...
virtual vtkTypeUInt32 GetNextGlobalUniqueIdentifier()
Provides the next available identifier.
virtual void Initialize()
Initialize various internal classes after the session has been setup correctly.
static vtkSMSession * New()
void PushState(vtkSMMessage *msg) override
Push the state message.
void CleanupPendingProgressInternal() override
Should be called to begin/end receiving progresses on this session.
virtual void UnRegisterSIObject(vtkSMMessage *msg)
Unregister server side object.
vtkPVServerInformation * GetServerInformation() override
vtkPVServerInformation is an information-object that provides information about the server processes...
virtual void RegisterSIObject(vtkSMMessage *msg)
Register server side object.
is used to locate proxies referred to in state xmls while loading state files.
virtual int GetNumberOfProcesses(vtkTypeUInt32 servers)
Returns the number of processes on the given server/s.
virtual vtkTypeUInt32 GetNextChunkGlobalUniqueIdentifier(vtkTypeUInt32 chunkSize)
Return the first Id of the requested chunk.
vtkClientServerStream * ServerLastInvokeResult
virtual void PullState(vtkSMMessage *msg)
Pull the state message.
const char * GetURI() override
Return the url used to connect the current session to a server.
ServerFlags GetProcessRoles() override
Returns a ServerFlags indicate the nature of the current processes.
vtkSMCollaborationManager * CollaborationCommunicator
virtual bool OnWrongTagEvent(vtkObject *caller, unsigned long eventid, void *calldata)
Callback when any vtkMultiProcessController subclass fires a WrongTagEvent.
virtual vtkMultiProcessController * GetController(ServerFlags processType)
Returns the controller used to communicate with the process.
virtual void ExecuteStream(vtkTypeUInt32 location, const vtkClientServerStream &stream, bool ignore_errors=false)
Execute a command on the given processes.
ConnectionResult
Possible result of connection when creating a new connection CONNECTION_SUCCESS: Connection was suces...