Go to the documentation of this file.
10 #ifndef vtkSMSession_h
11 #define vtkSMSession_h
15 #include "vtkRemotingServerManagerModule.h"
50 virtual const char*
GetURI() {
return "builtin:"; }
66 virtual int GetNumberOfProcesses(vtkTypeUInt32 servers);
73 virtual bool IsMPIInitialized(vtkTypeUInt32 servers);
83 RENDERING_NOT_AVAILABLE = 0x00,
84 RENDERING_UNIFIED = 0x01,
85 RENDERING_SPLIT = 0x02
95 virtual unsigned int GetRenderClientMode();
193 static vtkIdType ConnectToRemote(
const char* hostname,
int port,
int timeout,
bool (*callback)(),
233 const char* dshost,
int dsport,
const char* rshost,
int rsport,
int timeout = 60)
238 static vtkIdType ConnectToRemote(
const char* dshost,
int dsport,
const char* rshost,
int rsport,
261 static vtkIdType ReverseConnectToRemote(
int dsport,
int rsport,
int timeout,
bool (*callback)(),
272 static void Disconnect(
vtkIdType sessionid);
281 bool initialize_during_constructor =
true,
vtkPVSessionCore* preExistingSessionCore =
nullptr);
294 virtual void Initialize();
static vtkIdType ReverseConnectToRemoteWithTimeout(int dsport, int rsport, int timeout)
Same as ConnectToRemote() except that it waits for a reverse connection for timeout seconds.
virtual vtkSMCollaborationManager * GetCollaborationManager()
Return the instance of vtkSMCollaborationManager that will be lazy created at the first call.
vtkSMStateLocator * StateLocator
static vtkIdType ConnectToRemote(const char *hostname, int port, int timeout=60)
These are static helper methods that help create standard ParaView sessions.
static vtkIdType ConnectToRemote(const char *dshost, int dsport, const char *rshost, int rsport, int timeout=60)
These are static helper methods that help create standard ParaView sessions.
static vtkIdType ReverseConnectToRemoteWithTimeout(int port, int timeout)
Same as ConnectToRemote() except that it waits for a reverse connection for timeout seconds.
vtkSMProxyLocator * ProxyLocator
ConnectionResult
Possible result of connection when creating a new connection CONNECTION_SUCCESS: Connection was suces...
vtkSMSessionProxyManager * SessionProxyManager
ServerFlags GetProcessRoles() override
Returns a ServerFlags indicate the nature of the current processes.
static vtkIdType ReverseConnectToRemote(int port)
Same as ConnectToRemote() except that it waits for a reverse connection for timeout seconds.
virtual const char * GetURI()
Return the URL that define where the session is connected to.
bool GetIsAlive() override
Builtin session is always alive.
Class used to broadcast message from one client to the others.
static vtkIdType ReverseConnectToRemote(int dsport, int rsport)
Same as ConnectToRemote() except that it waits for a reverse connection for timeout seconds.
void PrintSelf(ostream &os, vtkIndent indent) override
is used to locate proxies referred to in state xmls while loading state files.
Class used to retrieve a given message state based on its GlobalID.
virtual void PushState(vtkSMMessage *msg)
Push the state message.
void NotifyAllClients(const vtkSMMessage *msg) override
Sends the message to all clients.
virtual void PreDisconnection()
void NotifyOtherClients(const vtkSMMessage *) override
Sends the message to all but the active client-session.