#include <vtkPVClientServerModule.h>
Inheritance diagram for vtkPVClientServerModule:
Public Types | |
enum | { SINGLE_PROCESS_MODE = 0, MPI_MODE } |
Public Member Functions | |
vtkTypeRevisionMacro (vtkPVClientServerModule, vtkPVProcessModule) | |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual int | Start (int argc, char **argv) |
void | Initialize () |
virtual void | Exit () |
virtual int | GetPartitionId () |
vtkSocketController * | GetRenderServerSocketController () |
void | ProcessMessage (unsigned char *arg, size_t len) |
virtual int | LoadModuleInternal (const char *name, const char *directory) |
virtual void | SetProcessEnvironmentVariable (int processId, const char *var) |
virtual int | GetNumberOfPartitions () |
virtual int | GetNumberOfProcesses () |
virtual void | SetNumberOfProcesses (int) |
virtual int | GetMultiProcessMode () |
virtual void | SetMultiProcessMode (int) |
virtual int | GetNumberOfServerProcesses () |
virtual void | SetNumberOfServerProcesses (int) |
virtual vtkSocketController * | GetSocketController () |
virtual void | GatherInformation (vtkPVInformation *info, vtkClientServerID id) |
virtual void | GatherInformationRenderServer (vtkPVInformation *info, vtkClientServerID id) |
virtual void | GatherInformationInternal (const char *infoClassName, vtkObject *object) |
virtual int | GetDirectoryListing (const char *dir, vtkStringList *dirs, vtkStringList *files, int save) |
virtual int | GetEnabled () |
Static Public Member Functions | |
vtkPVClientServerModule * | New () |
void | ErrorCallback (vtkObject *caller, unsigned long eid, void *clientdata, void *calldata) |
Protected Member Functions | |
vtkPVClientServerModule () | |
~vtkPVClientServerModule () | |
void | SendLastClientServerResult () |
void | Connect () |
void | ConnectToRemote () |
void | SetupWaitForConnection () |
int | ShouldWaitForConnection () |
int | OpenConnectionDialog (int *start) |
void | InitializeRenderServer () |
virtual const char * | DetermineLogFilePrefix () |
int | WaitForConnectionOnSocket (vtkSocketCommunicator *comm, int sock) |
virtual vtkTypeUInt32 | CreateSendFlag (vtkTypeUInt32 servers) |
virtual int | SendStreamToClient (vtkClientServerStream &) |
virtual int | SendStreamToDataServer (vtkClientServerStream &) |
virtual int | SendStreamToDataServerRoot (vtkClientServerStream &) |
virtual int | SendStreamToRenderServer (vtkClientServerStream &) |
virtual int | SendStreamToRenderServerRoot (vtkClientServerStream &) |
virtual const vtkClientServerStream & | GetLastDataServerResult () |
virtual const vtkClientServerStream & | GetLastRenderServerResult () |
Protected Attributes | |
int | NumberOfServerProcesses |
vtkSocketController * | SocketController |
vtkSocketController * | RenderServerSocket |
int | NumberOfRenderServerProcesses |
int | ArgumentCount |
char ** | Arguments |
int | ReturnValue |
int | MultiProcessMode |
int | NumberOfProcesses |
int | GatherRenderServer |
vtkClientServerStream * | LastServerResultStream |
int | Enabled |
Friends | |
void | vtkPVClientServerLastResultRMI (void *, void *, int,int) |
A class to encapsulate all of the process initialization, distributed data model and duplication of the pipeline. Filters and compositers will still need a controller, but everything else should be handled here. This class sets up the default MPI processes with the user interface running on process 0. I plan to make an alternative module for client server mode, where the client running the UI is not in the MPI group but links to the MPI group through a socket connection.
Definition at line 43 of file vtkPVClientServerModule.h.
|
Definition at line 107 of file vtkPVClientServerModule.h. |
|
|
|
|
|
Reimplemented from vtkPVProcessModule. |
|
|
|
Reimplemented from vtkPVProcessModule. |
|
This starts the whole application. This method initializes the MPI controller, then passes control onto the init method. Reimplemented from vtkPVProcessModule. |
|
Start calls this method to continue initialization. This method initializes the sockets and then calls Reimplemented from vtkProcessModule. |
|
This breaks rmi loops and cleans up processes.` Reimplemented from vtkPVProcessModule. |
|
Get the Partition piece. -1 means no partition assigned to this process. Reimplemented from vtkProcessModule. |
|
Get the number of processes participating in sharing the data. Reimplemented from vtkProcessModule. |
|
Get the number of processes participating in sharing the data. |
|
Get the number of processes participating in sharing the data. |
|
Get the number of processes participating in sharing the data. |
|
Get the number of processes participating in sharing the data. |
|
Get the number of processes participating in sharing the data. |
|
Get the number of processes participating in sharing the data. |
|
This is a socket controller used to communicate between the client and process 0 of the server. Reimplemented from vtkPVProcessModule. |
|
Return the socket to the RenderServer, if this is not set, return the SocketController. |
|
Module dependant method for collecting data information from all procs. Reimplemented from vtkProcessModule. |
|
Module dependant method for collecting data information from all procs. Reimplemented from vtkProcessModule. |
|
Module dependant method for collecting data information from all procs. Reimplemented from vtkProcessModule. |
|
Get a directory listing for the given directory. This implementation will always give a listing on the server side. Reimplemented from vtkPVProcessModule. |
|
|
|
Process a client server message on the server. |
|
Used internally. Do not call. Use LoadModule instead. Reimplemented from vtkPVProcessModule. |
|
This method leaks memory. It is a quick and dirty way to set different DISPLAY environment variables on the render server. I think the string cannot be deleted until paraview exits. The var should have the form: "DISPLAY=amber1" Reimplemented from vtkPVProcessModule. |
|
Internal use. Made public to allow callbacks access. |
|
Given the servers that need to receive the stream, create a flag that will send it to the correct places for this process module and make sure it only gets sent to each server once. Reimplemented from vtkProcessModule. |
|
Given the servers that need to receive the stream, create a flag that will send it to the correct places for this process module and make sure it only gets sent to each server once. Reimplemented from vtkProcessModule. |
|
Given the servers that need to receive the stream, create a flag that will send it to the correct places for this process module and make sure it only gets sent to each server once. Reimplemented from vtkProcessModule. |
|
Given the servers that need to receive the stream, create a flag that will send it to the correct places for this process module and make sure it only gets sent to each server once. Reimplemented from vtkProcessModule. |
|
Given the servers that need to receive the stream, create a flag that will send it to the correct places for this process module and make sure it only gets sent to each server once. Reimplemented from vtkProcessModule. |
|
Given the servers that need to receive the stream, create a flag that will send it to the correct places for this process module and make sure it only gets sent to each server once. Reimplemented from vtkProcessModule. |
|
Get the last result from the DataServer, RenderServer or Client. If these are MPI processes, only the root last result is returned. Reimplemented from vtkProcessModule. |
|
Get the last result from the DataServer, RenderServer or Client. If these are MPI processes, only the root last result is returned. Reimplemented from vtkProcessModule. |
|
Send the last client server result to the client called from an RMI |
|
Connect to servers or clients, this will either set up a wait loop waiting for a connection, or it will create a |
|
Connect to a remote server or client already waiting for us. |
|
Setup a wait connection that is waiting for a remote process to connect to it. This can be either the client or the server. |
|
Return 1 if the connection should wait, and 0 if the connet |
|
Open a dialog to enter server information, if the start variable is set to 1 in this function, then a remote paraview should be started with StartRemoteParaView. |
|
Create connection between render server and data server |
|
Reimplemented from vtkProcessModule. |
|
|
|
|
|
Definition at line 193 of file vtkPVClientServerModule.h. |
|
Definition at line 194 of file vtkPVClientServerModule.h. |
|
Definition at line 195 of file vtkPVClientServerModule.h. |
|
Definition at line 196 of file vtkPVClientServerModule.h. |
|
Definition at line 198 of file vtkPVClientServerModule.h. |
|
Definition at line 199 of file vtkPVClientServerModule.h. |
|
Definition at line 200 of file vtkPVClientServerModule.h. |
|
Definition at line 202 of file vtkPVClientServerModule.h. |
|
Definition at line 203 of file vtkPVClientServerModule.h. |
|
Definition at line 204 of file vtkPVClientServerModule.h. |
|
Definition at line 205 of file vtkPVClientServerModule.h. |
|
Definition at line 207 of file vtkPVClientServerModule.h. |