Go to the documentation of this file.
11 #ifndef vtkSMSessionClient_h
12 #define vtkSMSessionClient_h
14 #include "vtkRemotingServerManagerModule.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;
vtkClientServerStream * ServerLastInvokeResult
const char * GetURI() override
Return the url used to connect the current session to a server.
virtual vtkTypeUInt32 GetNextChunkGlobalUniqueIdentifier(vtkTypeUInt32 chunkSize)
Return the first Id of the requested chunk.
virtual vtkSMCollaborationManager * GetCollaborationManager()
Return the instance of vtkSMCollaborationManager that will be lazy created at the first call.
void PushState(vtkSMMessage *msg) override
Push the state message.
virtual void PullState(vtkSMMessage *msg)
Pull the state message.
vtkSMCollaborationManager * CollaborationCommunicator
static vtkSMSession * New()
vtkMultiProcessController * DataServerController
Store messages for the interpreter.
vtkMultiProcessController * RenderServerController
singleton/facade to vtkSMSessionProxyManager
void CleanupPendingProgressInternal() override
Should be called to begin/end receiving progresses on this session.
virtual void RegisterSIObject(vtkSMMessage *msg)
Register server side object.
virtual void UnRegisterSIObject(vtkSMMessage *msg)
Unregister server side object.
ConnectionResult
Possible result of connection when creating a new connection CONNECTION_SUCCESS: Connection was suces...
vtkPVServerInformation * ServerInformation
virtual vtkMultiProcessController * GetController(ServerFlags processType)
Returns the controller used to communicate with the process.
ServerFlags GetProcessRoles() override
Returns a ServerFlags indicate the nature of the current processes.
virtual void ExecuteStream(vtkTypeUInt32 location, const vtkClientServerStream &stream, bool ignore_errors=false)
Execute a command on the given processes.
void PrintSelf(ostream &os, vtkIndent indent) override
void PrepareProgressInternal() override
Should be called to begin/end receiving progresses on this session.
virtual bool Connect(const char *url, int timeout=60)
Connects a remote server.
bool GetIsAlive() override
Builtin session is always alive.
Class used to broadcast message from one client to the others.
virtual bool OnWrongTagEvent(vtkObject *caller, unsigned long eventid, void *calldata)
Callback when any vtkMultiProcessController subclass fires a WrongTagEvent.
vtkPVServerInformation * DataServerInformation
virtual void Initialize()
Initialize various internal classes after the session has been setup correctly.
is used to locate proxies referred to in state xmls while loading state files.
vtkPVServerInformation * GetServerInformation() override
vtkPVServerInformation is an information-object that provides information about the server processes.
virtual int GetNumberOfProcesses(vtkTypeUInt32 servers)
Returns the number of processes on the given server/s.
virtual vtkTypeUInt32 GetNextGlobalUniqueIdentifier()
Provides the next available identifier.
virtual const vtkClientServerStream & GetLastResult(vtkTypeUInt32 location)
Returns the response of the ExecuteStream() call from the location.
vtkPVServerInformation * RenderServerInformation
virtual void PreDisconnection()
virtual bool GatherInformation(vtkTypeUInt32 location, vtkPVInformation *information, vtkTypeUInt32 globalid)
Gather information about an object referred by the globalid.
virtual bool IsMPIInitialized(vtkTypeUInt32 servers)
Returns whether or not MPI is initialized on the specified server/s.