ParaView
|
vtkSMSessionServer is a session used on data and/or render servers. More...
#include <vtkPVSessionServer.h>
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual vtkMultiProcessController * | GetController (ServerFlags processType) |
Returns the active controller used to communicate with the process. More... | |
virtual bool | Connect (const char *url) |
Connects a remote server. More... | |
bool | Connect () |
Overload that constructs the url using the command line parameters specified and then calls Connect(url). More... | |
virtual bool | GetIsAlive () |
Returns true is this session is active/alive/valid. More... | |
void | OnClientServerMessageRMI (void *message, int message_length) |
void | OnCloseSessionRMI () |
virtual void | NotifyAllClients (const vtkSMMessage *) |
Sends the message to all clients. More... | |
virtual void | NotifyOtherClients (const vtkSMMessage *) |
Sends the message to all but the active client-session. More... | |
virtual void | MultipleConnectionOn () |
Enable or Disable multi-connection support. More... | |
virtual void | MultipleConnectionOff () |
Enable or Disable multi-connection support. More... | |
virtual void | SetMultipleConnection (bool) |
Enable or Disable multi-connection support. More... | |
virtual bool | GetMultipleConnection () |
Enable or Disable multi-connection support. More... | |
![]() | |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual ServerFlags | GetProcessRoles () |
Returns a ServerFlags indicate the nature of the current processes. More... | |
virtual vtkPVServerInformation * | GetServerInformation () |
vtkPVServerInformation is an information-object that provides information about the server processes. More... | |
virtual vtkMPIMToNSocketConnection * | GetMPIMToNSocketConnection () |
This is socket connection, if any to communicate between the data-server and render-server nodes. More... | |
virtual void | PushState (vtkSMMessage *msg) |
Push the state message. More... | |
virtual void | PullState (vtkSMMessage *msg) |
Pull the state message. More... | |
virtual void | ExecuteStream (vtkTypeUInt32 location, const vtkClientServerStream &stream, bool ignore_errors=false) |
Execute a command on the given processes. More... | |
virtual const vtkClientServerStream & | GetLastResult (vtkTypeUInt32 location) |
Returns the response of the ExecuteStream() call from the location. More... | |
virtual bool | GatherInformation (vtkTypeUInt32 location, vtkPVInformation *information, vtkTypeUInt32 globalid) |
Gather information about an object referred by the globalid . More... | |
vtkSIProxyDefinitionManager * | GetProxyDefinitionManager () |
Get the ProxyDefinitionManager. More... | |
vtkSIObject * | GetSIObject (vtkTypeUInt32 globalid) |
Returns a vtkSIObject or subclass given its global id, if any. More... | |
virtual void | UnRegisterSIObject (vtkSMMessage *msg) |
Unregister server side object. More... | |
virtual void | RegisterSIObject (vtkSMMessage *msg) |
Register server side object. More... | |
vtkObject * | GetRemoteObject (vtkTypeUInt32 globalid) |
Return a vtkSMRemoteObject given its global id if any otherwise return NULL;. More... | |
virtual void | GetAllRemoteObjects (vtkCollection *collection) |
Allow the user to fill its vtkCollection with all RemoteObject This could be usefull when you want to hold a reference to them to prevent any deletion across several method call. More... | |
virtual vtkTypeUInt32 | GetNextGlobalUniqueIdentifier () |
Provides the next available identifier. More... | |
virtual vtkTypeUInt32 | GetNextChunkGlobalUniqueIdentifier (vtkTypeUInt32 chunkSize) |
Return the first Id of the requested chunk. More... | |
virtual bool | IsProcessingRemoteNotification () |
This propertie is used to discard ignore_synchronization proxy property when we load protobuf states. More... | |
virtual void | UseSessionCoreOf (vtkPVSessionBase *other) |
Update internal session core in order to use the one used in another session. More... | |
virtual vtkPVSessionCore * | GetSessionCore () |
Provides access to the session core. More... | |
![]() | |
void | PrintSelf (ostream &os, vtkIndent indent) |
bool | HasProcessRole (vtkTypeUInt32 flag) |
Convenience method that returns true if the current session is serving the indicated role on this process. More... | |
virtual bool | IsMultiClients () |
Allow anyone to know easily if the current session is involved in collaboration or not. More... | |
bool | GetPendingProgress () |
Returns true if the session is within a PrepareProgress() and CleanupPendingProgress() block. More... | |
virtual vtkPVProgressHandler * | GetProgressHandler () |
Provides access to the progress handler. More... | |
void | PrepareProgress () |
Should be called to begin/end receiving progresses on this session. More... | |
void | CleanupPendingProgress () |
Should be called to begin/end receiving progresses on this session. More... | |
![]() | |
void | PrintSelf (ostream &os, vtkIndent indent) |
Static Public Member Functions | |
static vtkPVSessionServer * | New () |
static int | IsTypeOf (const char *type) |
static vtkPVSessionServer * | SafeDownCast (vtkObject *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkPVSessionBase * | SafeDownCast (vtkObject *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkPVSession * | SafeDownCast (vtkObject *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkSession * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkPVSessionServer () | |
~vtkPVSessionServer () | |
void | GatherInformationInternal (vtkTypeUInt32 location, const char *classname, vtkTypeUInt32 globalid, vtkMultiProcessStream &) |
Called when client triggers GatherInformation(). More... | |
void | SendLastResultToClient () |
Sends the last result to client. More... | |
![]() | |
vtkPVSessionBase () | |
vtkPVSessionBase (vtkPVSessionCore *coreToUse) | |
~vtkPVSessionBase () | |
void | RegisterRemoteObject (vtkTypeUInt32 globalid, vtkTypeUInt32 location, vtkObject *obj) |
Register a remote object. More... | |
void | UnRegisterRemoteObject (vtkTypeUInt32 globalid, vtkTypeUInt32 location) |
Unregister a remote object. More... | |
vtkPVSessionCore * | GetSessionCore () const |
Method used to migrate from one Session type to another by keeping the same vtkPVSessionCore. More... | |
void | SetSessionCore (vtkPVSessionCore *) |
Method used to migrate from one Session type to another by keeping the same vtkPVSessionCore. More... | |
virtual void | PrepareProgressInternal () |
Should be called to begin/end receiving progresses on this session. More... | |
virtual void | CleanupPendingProgressInternal () |
Should be called to begin/end receiving progresses on this session. More... | |
virtual bool | StartProcessingRemoteNotification () |
Methods used to monitor if we are currently processing a server notification Only vtkSMSessionClient use the flag to disable ignore_synchronization properties from beeing updated. More... | |
virtual void | StopProcessingRemoteNotification (bool previousValue) |
Methods used to monitor if we are currently processing a server notification Only vtkSMSessionClient use the flag to disable ignore_synchronization properties from beeing updated. More... | |
![]() | |
vtkPVSession () | |
~vtkPVSession () | |
virtual bool | OnWrongTagEvent (vtkObject *caller, unsigned long eventid, void *calldata) |
Callback when any vtkMultiProcessController subclass fires a WrongTagEvent. More... | |
![]() | |
vtkSession () | |
~vtkSession () | |
virtual void | Activate () |
Subclasses must call this to mark the session active. More... | |
virtual void | DeActivate () |
Subclasses must call this to mark the session inactive. More... | |
Protected Attributes | |
vtkMPIMToNSocketConnection * | MPIMToNSocketConnection |
bool | MultipleConnection |
vtkInternals * | Internal |
![]() | |
vtkPVSessionCore * | SessionCore |
bool | ProcessingRemoteNotification |
Methods used to monitor if we are currently processing a server notification Only vtkSMSessionClient use the flag to disable ignore_synchronization properties from beeing updated. More... | |
![]() | |
vtkPVProgressHandler * | ProgressHandler |
Friends | |
class | vtkInternals |
Additional Inherited Members | |
![]() | |
enum | { EXCEPTION_EVENT_TAG = 31416 } |
vtkSMSessionServer is a session used on data and/or render servers.
It's designed for a process that works with a separate client process that acts as the visualization driver.
Definition at line 34 of file vtkPVSessionServer.h.
Definition at line 38 of file vtkPVSessionServer.h.
anonymous enum |
Client-Server Communication tags.
Definition at line 77 of file vtkPVSessionServer.h.
|
protected |
|
protected |
|
static |
|
virtual |
Reimplemented from vtkPVSessionBase.
|
static |
|
virtual |
Reimplemented from vtkPVSessionBase.
|
static |
void vtkPVSessionServer::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
virtual |
Returns the active controller used to communicate with the process.
Value must be DATA_SERVER_ROOT or RENDER_SERVER_ROOT or CLIENT. But only the CLIENT do return something different than NULL;
Reimplemented from vtkPVSession.
|
virtual |
Connects a remote server.
URL can be of the following format: cs://<pvserver-host>:<pvserver-port> cdsrs://<pvdataserver-host>:<pvdataserver-port>/<pvrenderserver-host>:<pvrenderserver-port> In both cases the port is optional. When not provided default pvserver/pvdataserver port // is 11111, while default pvrenderserver port is 22221. For reverse connect i.e. the client waits for the server to connect back, simply add "rc" to the protocol e.g. csrc://<pvserver-host>:<pvserver-port> cdsrsrc://<pvdataserver-host>:<pvdataserver-port>/<pvrenderserver-host>:<pvrenderserver-port> In this case, the hostname is irrelevant and is ignored.
bool vtkPVSessionServer::Connect | ( | ) |
Overload that constructs the url using the command line parameters specified and then calls Connect(url).
|
virtual |
Returns true is this session is active/alive/valid.
Implements vtkSession.
|
virtual |
Enable or Disable multi-connection support.
The MultipleConnection is only used inside the DATA_SERVER to support several clients to connect to it. By default we allow collaboration (this->MultipleConnection = true)
|
virtual |
Enable or Disable multi-connection support.
The MultipleConnection is only used inside the DATA_SERVER to support several clients to connect to it. By default we allow collaboration (this->MultipleConnection = true)
|
virtual |
Enable or Disable multi-connection support.
The MultipleConnection is only used inside the DATA_SERVER to support several clients to connect to it. By default we allow collaboration (this->MultipleConnection = true)
|
virtual |
Enable or Disable multi-connection support.
The MultipleConnection is only used inside the DATA_SERVER to support several clients to connect to it. By default we allow collaboration (this->MultipleConnection = true)
void vtkPVSessionServer::OnClientServerMessageRMI | ( | void * | message, |
int | message_length | ||
) |
void vtkPVSessionServer::OnCloseSessionRMI | ( | ) |
|
virtual |
Sends the message to all clients.
Implements vtkPVSessionBase.
|
virtual |
Sends the message to all but the active client-session.
Implements vtkPVSessionBase.
|
protected |
Called when client triggers GatherInformation().
|
protected |
Sends the last result to client.
|
friend |
Definition at line 141 of file vtkPVSessionServer.h.
|
protected |
Definition at line 135 of file vtkPVSessionServer.h.
|
protected |
Definition at line 137 of file vtkPVSessionServer.h.
|
protected |
Definition at line 139 of file vtkPVSessionServer.h.