vtkPVSessionCore is used by vtkSMSession. More...
#include <vtkPVSessionCore.h>
Public Types | |
enum | MessageTypes { PUSH_STATE = 12, PULL_STATE = 13, EXECUTE_STREAM = 14, GATHER_INFORMATION = 15, REGISTER_SI = 16, UNREGISTER_SI = 17 } |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) override |
virtual void | PushState (vtkSMMessage *message) |
Push the state message. More... | |
virtual void | PullState (vtkSMMessage *message) |
Pull the state message from the local SI object instances. 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 () |
Returns the response of the ExecuteStream() call from the location. More... | |
virtual void | UnRegisterSIObject (vtkSMMessage *message) |
Notify that the given SIObject is not used anymore . More... | |
virtual void | RegisterSIObject (vtkSMMessage *message) |
Notify that the given SIObject is used. More... | |
vtkSIObject * | GetSIObject (vtkTypeUInt32 globalid) |
Returns a vtkSIObject or subclass given its global id, if any otherwise return nullptr;. More... | |
vtkObject * | GetRemoteObject (vtkTypeUInt32 globalid) |
Return a vtkObject given its global id if any otherwise return nullptr;. More... | |
void | RegisterRemoteObject (vtkTypeUInt32 globalid, vtkObject *obj) |
Register a remote object. More... | |
void | UnRegisterRemoteObject (vtkTypeUInt32 globalid) |
Unregister a remote object. More... | |
virtual bool | GatherInformation (vtkTypeUInt32 location, vtkPVInformation *information, vtkTypeUInt32 globalid) |
Gather information about an object referred by the globalid . More... | |
int | GetNumberOfProcesses () |
Returns the number of processes. More... | |
virtual vtkTypeUInt32 | GetNextGlobalUniqueIdentifier () |
Provides the next available identifier. More... | |
virtual vtkTypeUInt32 | GetNextChunkGlobalUniqueIdentifier (vtkTypeUInt32 chunkSize) |
Return the first Id of the requested chunk. More... | |
void | PushStateSatelliteCallback () |
void | ExecuteStreamSatelliteCallback () |
void | GatherInformationStatelliteCallback () |
void | RegisterSIObjectSatelliteCallback () |
void | UnRegisterSIObjectSatelliteCallback () |
virtual void | GetAllRemoteObjects (vtkCollection *collection) |
Allow the user to fill a vtkCollection with all RemoteObjects This is useful when you want to hold a reference to them to prevent any deletion across several method call. More... | |
void | GarbageCollectSIObject (int *clientIds, int nbClients) |
Delete SIObject that are held by clients that disappeared from the given list. More... | |
virtual vtkClientServerInterpreter * | GetInterpreter () |
Provides access to the interpreter. More... | |
virtual vtkSIProxyDefinitionManager * | GetProxyDefinitionManager () |
Provides access to the proxy definition manager. More... | |
void | SetMPIMToNSocketConnection (vtkMPIMToNSocketConnection *) |
Get/Set the socket connection used to communicate between data=server and render-server processes. More... | |
virtual vtkMPIMToNSocketConnection * | GetMPIMToNSocketConnection () |
Get/Set the socket connection used to communicate between data=server and render-server processes. More... | |
Public Member Functions inherited from vtkObject | |
vtkBaseTypeMacro (vtkObject, vtkObjectBase) | |
virtual void | DebugOn () |
virtual void | DebugOff () |
bool | GetDebug () |
void | SetDebug (bool debugFlag) |
virtual void | Modified () |
virtual vtkMTimeType | GetMTime () |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
Public Member Functions inherited from vtkObjectBase | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
void | SetReferenceCount (int) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
void | PrintRevisions (ostream &) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
void | PrintRevisions (ostream &) |
Static Public Member Functions | |
static vtkPVSessionCore * | New () |
static int | IsTypeOf (const char *type) |
static vtkPVSessionCore * | SafeDownCast (vtkObject *o) |
Static Public Member Functions inherited from vtkObject | |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
Static Public Member Functions inherited from vtkObjectBase | |
static vtkTypeBool | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
static vtkObjectBase * | New () |
Protected Types | |
enum | { ROOT_SATELLITE_RMI_TAG = 887822, ROOT_SATELLITE_INFO_TAG = 887823 } |
Protected Member Functions | |
vtkPVSessionCore () | |
~vtkPVSessionCore () override | |
virtual void | PushStateInternal (vtkSMMessage *) |
This will create a vtkSIObject and/or execute some update on the vtkObject that it own. More... | |
virtual void | ExecuteStreamInternal (const vtkClientServerStream &stream, bool ignore_errors) |
This will execute localy the given vtkClientServerStream either by calling method on the vtkSIObject or its internal vtkObject. More... | |
bool | GatherInformationInternal (vtkPVInformation *information, vtkTypeUInt32 globalid) |
This will gather information on the local vtkObjects through the local vtkSIObjects. More... | |
bool | CollectInformation (vtkPVInformation *) |
Gather information across MPI satellites. More... | |
virtual void | RegisterSIObjectInternal (vtkSMMessage *message) |
Increment reference count of a local vtkSIObject. More... | |
virtual void | UnRegisterSIObjectInternal (vtkSMMessage *message) |
Decrement reference count of a local vtkSIObject. More... | |
void | OnInterpreterError (vtkObject *, unsigned long, void *calldata) |
Callback for reporting interpreter errors. More... | |
Protected Member Functions inherited from vtkObject | |
vtkObject () | |
virtual | ~vtkObject () |
void | RegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE |
void | UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
Protected Member Functions inherited from vtkObjectBase | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Protected Attributes | |
vtkSIProxyDefinitionManager * | ProxyDefinitionManager |
vtkWeakPointer< vtkMultiProcessController > | ParallelController |
vtkClientServerInterpreter * | Interpreter |
vtkMPIMToNSocketConnection * | MPIMToNSocketConnection |
Protected Attributes inherited from vtkObject | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
Protected Attributes inherited from vtkObjectBase | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
vtkPVSessionCore is used by vtkSMSession.
vtkPVSessionCore handle the communication to MPI satellites and ServerImplementation code instantiation and execution. On the other hand, the vtkSMSession dispatch the request to the right process and therefore to the right vtkPVSessionCore instance.
Definition at line 30 of file vtkPVSessionCore.h.
Definition at line 34 of file vtkPVSessionCore.h.
Enumerator | |
---|---|
PUSH_STATE | |
PULL_STATE | |
EXECUTE_STREAM | |
GATHER_INFORMATION | |
REGISTER_SI | |
UNREGISTER_SI |
Definition at line 150 of file vtkPVSessionCore.h.
|
protected |
Enumerator | |
---|---|
ROOT_SATELLITE_RMI_TAG | |
ROOT_SATELLITE_INFO_TAG |
Definition at line 223 of file vtkPVSessionCore.h.
|
protected |
|
overrideprotected |
|
static |
|
virtual |
Reimplemented in vtkPVCatalystSessionCore.
Reimplemented from vtkObjectBase.
Reimplemented in vtkPVCatalystSessionCore.
|
static |
|
overridevirtual |
Reimplemented from vtkObject.
|
virtual |
Provides access to the interpreter.
|
virtual |
Provides access to the proxy definition manager.
|
virtual |
Push the state message.
This might forward the message to the MPI statellites if needed.
|
virtual |
Pull the state message from the local SI object instances.
|
virtual |
Execute a command on the given processes.
Use GetLastResult() to obtain the last result after the command stream is evaluated. Once can set ignore_errors
to true, to ignore any interpreting errors.
|
virtual |
Returns the response of the ExecuteStream() call from the location.
Note if location refers to multiple processes, then the reply is only fetched from the "closest" process.
|
virtual |
Notify that the given SIObject is not used anymore .
This does not necessary delete the SIObject specially if this one is used by other local SIObject. It only decrease its reference count.
|
virtual |
Notify that the given SIObject is used.
It only increase its reference count.
vtkSIObject* vtkPVSessionCore::GetSIObject | ( | vtkTypeUInt32 | globalid | ) |
Returns a vtkSIObject or subclass given its global id, if any otherwise return nullptr;.
vtkObject* vtkPVSessionCore::GetRemoteObject | ( | vtkTypeUInt32 | globalid | ) |
Return a vtkObject given its global id if any otherwise return nullptr;.
void vtkPVSessionCore::RegisterRemoteObject | ( | vtkTypeUInt32 | globalid, |
vtkObject * | obj | ||
) |
Register a remote object.
void vtkPVSessionCore::UnRegisterRemoteObject | ( | vtkTypeUInt32 | globalid | ) |
Unregister a remote object.
|
virtual |
Gather information about an object referred by the globalid
.
location
identifies the processes to gather the information from.
Reimplemented in vtkPVCatalystSessionCore.
int vtkPVSessionCore::GetNumberOfProcesses | ( | ) |
Returns the number of processes.
This simply calls the GetNumberOfProcesses() on this->ParallelController
void vtkPVSessionCore::SetMPIMToNSocketConnection | ( | vtkMPIMToNSocketConnection * | ) |
Get/Set the socket connection used to communicate between data=server and render-server processes.
This is valid only on data-server and render-server processes.
|
virtual |
Get/Set the socket connection used to communicate between data=server and render-server processes.
This is valid only on data-server and render-server processes.
|
virtual |
Provides the next available identifier.
This implementation works locally. without any code distribution. To support the distributed architecture the vtkSMSessionClient override those method to call them on the DATA_SERVER vtkPVSessionBase instance.
|
virtual |
Return the first Id of the requested chunk.
1 = ReverveNextIdChunk(10); | Reserved ids [1,2,3,4,5,6,7,8,9,10] 11 = ReverveNextIdChunk(10);| Reserved ids [11,12,13,14,15,16,17,18,19,20] b = a + 10;
void vtkPVSessionCore::PushStateSatelliteCallback | ( | ) |
void vtkPVSessionCore::ExecuteStreamSatelliteCallback | ( | ) |
void vtkPVSessionCore::GatherInformationStatelliteCallback | ( | ) |
void vtkPVSessionCore::RegisterSIObjectSatelliteCallback | ( | ) |
void vtkPVSessionCore::UnRegisterSIObjectSatelliteCallback | ( | ) |
|
virtual |
Allow the user to fill a vtkCollection with all RemoteObjects This is useful when you want to hold a reference to them to prevent any deletion across several method call.
Delete SIObject that are held by clients that disappeared from the given list.
|
protectedvirtual |
This will create a vtkSIObject and/or execute some update on the vtkObject that it own.
|
protectedvirtual |
This will execute localy the given vtkClientServerStream either by calling method on the vtkSIObject or its internal vtkObject.
|
protected |
This will gather information on the local vtkObjects through the local vtkSIObjects.
|
protected |
Gather information across MPI satellites.
|
protectedvirtual |
Increment reference count of a local vtkSIObject.
|
protectedvirtual |
Decrement reference count of a local vtkSIObject.
This might not result in an actual deletion of the object if this one is used by another SIObject.
|
protected |
Callback for reporting interpreter errors.
|
protected |
Definition at line 229 of file vtkPVSessionCore.h.
|
protected |
Definition at line 230 of file vtkPVSessionCore.h.
|
protected |
Definition at line 231 of file vtkPVSessionCore.h.
|
protected |
Definition at line 232 of file vtkPVSessionCore.h.