22 #ifndef vtkSMSession_h 23 #define vtkSMSession_h 63 virtual const char*
GetURI() {
return "builtin:"; }
79 virtual int GetNumberOfProcesses(vtkTypeUInt32 servers);
86 virtual bool IsMPIInitialized(vtkTypeUInt32 servers);
96 RENDERING_NOT_AVAILABLE = 0x00,
97 RENDERING_UNIFIED = 0x01,
98 RENDERING_SPLIT = 0x02
108 virtual unsigned int GetRenderClientMode();
184 static vtkIdType ConnectToSelf(
int timeout = 60);
193 static vtkIdType ConnectToRemote(
const char* hostname,
int port,
int timeout = 60);
206 static vtkIdType ReverseConnectToRemote(
int port,
bool (*callback)());
216 const char* dshost,
int dsport,
const char* rshost,
int rsport,
int timeout = 60);
229 static vtkIdType ReverseConnectToRemote(
int dsport,
int rsport,
bool (*callback)());
238 static void Disconnect(
vtkIdType sessionid);
248 vtkGetMacro(IsAutoMPI,
bool);
256 bool initialize_during_constructor =
true,
vtkPVSessionCore* preExistingSessionCore = NULL);
262 static vtkIdType ConnectToRemoteInternal(
263 const char* hostname,
int port,
bool is_auto_mpi,
int timeout = 60);
275 virtual void Initialize();
virtual const char * GetURI()
Return the URL that define where the session is connected to.
void NotifyAllClients(const vtkSMMessage *msg) override
Sends the message to all clients.
bool GetIsAlive() override
Builtin session is always alive.
void NotifyOtherClients(const vtkSMMessage *) override
Sends the message to all but the active client-session.
#define VTKREMOTINGSERVERMANAGER_EXPORT
virtual void PushState(vtkSMMessage *msg)
Push the state message.
virtual vtkSMCollaborationManager * GetCollaborationManager()
Return the instance of vtkSMCollaborationManager that will be lazy created at the first call...
vtkSMSession is the default ParaView session.
void PrintSelf(ostream &os, vtkIndent indent) override
Class used to broadcast message from one client to the others.
vtkPVSessionCore is used by vtkSMSession.
virtual void PreDisconnection()
Header class that setup every thing in order to use Protobuf messages in a transparent manner...
vtkSMProxyLocator * ProxyLocator
The vtkSMSessionProxyManager is esponsible for creating and managing proxies for a given session...
vtkSMStateLocator * StateLocator
is used to locate proxies referred to in state xmls while loading state files.
ServerFlags GetProcessRoles() override
Returns a ServerFlags indicate the nature of the current processes.
Abstract class used to provide the main implementation of the ParaView session methods for the follow...
vtkSMSessionProxyManager * SessionProxyManager
static vtkIdType ReverseConnectToRemote(int port)
Same as ConnectToRemote() except that it waits for a reverse connection.
static vtkIdType ReverseConnectToRemote(int dsport, int rsport)
Same as ConnectToRemote() except that it waits for a reverse connection.
Class used to retrieve a given message state based on its GlobalID.