pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vtkSMSession.
More...
#include <pqServer.h>
pqServer (should be renamed to pqSession) is a pqServerManagerModelItem subclass that represents a vtkSMSession.
Besides providing API to access vtkSMSession, it also performs some initialization of session-related proxies such as time-keeper and global-mapper-properties proxies.
Definition at line 35 of file pqServer.h.
◆ pqServer()
pqServer::pqServer |
( |
vtkIdType |
connectionId, |
|
|
QObject * |
parent = nullptr |
|
) |
| |
◆ ~pqServer()
◆ getResource()
◆ setResource()
◆ session()
Returns the session instance which the pqServer represents.
◆ GetConnectionID()
vtkIdType pqServer::GetConnectionID |
( |
| ) |
const |
Returns the connection id for the server connection.
◆ sessionId()
◆ proxyManager()
Returns the proxy manager for this session.
◆ activeSourcesSelectionModel()
Sources selection model is used to keep track of sources currently selected on this session/server-connection.
◆ activeViewSelectionModel()
View selection model is used to keep track of active view.
◆ getNumberOfPartitions()
int pqServer::getNumberOfPartitions |
( |
| ) |
|
Return the number of data server partitions on this server connection.
A convenience method.
◆ isRemote()
bool pqServer::isRemote |
( |
| ) |
const |
Returns is this connection is a connection to a remote server or a built-in server.
◆ isMaster()
bool pqServer::isMaster |
( |
| ) |
const |
Returns true if the client is currently master.
For non-collaborative session, it always return true.
◆ isProcessingPending()
bool pqServer::isProcessingPending |
( |
| ) |
const |
Returns true if the client is currently processing remote messages and still have more to process.
This method is used to deffered the tryRender.
◆ isRenderServerSeparate()
bool pqServer::isRenderServerSeparate |
( |
| ) |
|
Returns true is this connection has a separate render-server and data-server.
◆ getTimeKeeper()
Returns the time keeper for this connection.
◆ getServerInformation()
Returns the vtkPVServerInformation object which contains information about the command line options specified on the remote server, if any.
◆ isProgressPending()
bool pqServer::isProgressPending |
( |
| ) |
const |
Returns true if the client is waiting on some actions from the server that typically result in progress events.
◆ setHeartBeatTimeoutSetting()
static void pqServer::setHeartBeatTimeoutSetting |
( |
int |
msec | ) |
|
|
static |
Get/Set the application wide heart beat timeout setting.
Heartbeats are used in case of remote server connections to avoid the connection timing out due to inactivity. When set, the client send a heartbeat message to all servers every msec
milliseconds.
◆ getHeartBeatTimeoutSetting()
static int pqServer::getHeartBeatTimeoutSetting |
( |
| ) |
|
|
static |
◆ setMonitorServerNotifications()
void pqServer::setMonitorServerNotifications |
( |
bool |
| ) |
|
enable/disable monitoring of server notifications.
◆ getRemainingLifeTime()
int pqServer::getRemainingLifeTime |
( |
| ) |
const |
Get the server remaining life time in minutes.
◆ setRemainingLifeTime()
void pqServer::setRemainingLifeTime |
( |
int |
value | ) |
|
Set the time (in minutes) remaining.
◆ nameChanged
Fired when the name of the proxy is changed.
◆ fiveMinuteTimeoutWarning
void pqServer::fiveMinuteTimeoutWarning |
( |
| ) |
|
|
signal |
Fired about 5 minutes before the server timesout.
This signal will not be fired at all if server timeout < 5 minutes. The server timeout is specified by –timeout option on the server process. This is not fired if timeout is not specified on the server process.
◆ finalTimeoutWarning
void pqServer::finalTimeoutWarning |
( |
| ) |
|
|
signal |
Fired about 1 minute before the server timesout.
The server timeout is specified by –timeout option on the server process. This is not fired if timeout is not specified on the server process.
◆ serverSideDisconnected
void pqServer::serverSideDisconnected |
( |
| ) |
|
|
signal |
Fired if any server side crash or disconnection occurred.
◆ HEARBEAT_TIME_SETTING_KEY()
static const char* pqServer::HEARBEAT_TIME_SETTING_KEY |
( |
| ) |
|
|
staticprotected |
Returns the string key used for the heart beat time interval.
◆ setHeartBeatTimeout()
void pqServer::setHeartBeatTimeout |
( |
int |
msec | ) |
|
|
protected |
Set the heartbeat timeout for this instance of pqServer.
◆ sentFromOtherClient
Allow user to listen messages from other clients.
But if you plan to push some state by for example calling the sendToOtherClients(vtkSMMessage*) slot, you MUST queued your slot. Otherwise your communication will not be sent to the server. Here is a code sample on how to connect to that signal:
QObject::connect( server, SIGNAL(sentFromOtherClient(vtkSMMessage*)), this, SLOT(onClientMessage(vtkSMMessage*)), Qt::QueuedConnection);
◆ triggeredMasterUser
void pqServer::triggeredMasterUser |
( |
int |
| ) |
|
|
signal |
Signal triggered when user information get updated.
◆ triggeredUserName
void pqServer::triggeredUserName |
( |
int |
, |
|
|
QString & |
|
|
) |
| |
|
signal |
◆ triggeredUserListChanged
void pqServer::triggeredUserListChanged |
( |
| ) |
|
|
signal |
◆ triggerFollowCamera
void pqServer::triggerFollowCamera |
( |
int |
| ) |
|
|
signal |
◆ sendToOtherClients
Allow user to broadcast to other client a given message.
◆ heartBeat
void pqServer::heartBeat |
( |
| ) |
|
|
protectedslot |
Called to send a heartbeat to the server.
◆ updateRemainingLifeTime
void pqServer::updateRemainingLifeTime |
( |
| ) |
|
|
protectedslot |
Called to update the server life time.
◆ processServerNotification
void pqServer::processServerNotification |
( |
| ) |
|
|
protectedslot |
Called when idle to look for server notification for collaboration purpose.
◆ onCollaborationCommunication
void pqServer::onCollaborationCommunication |
( |
vtkObject * |
, |
|
|
unsigned |
long, |
|
|
void * |
, |
|
|
void * |
|
|
) |
| |
|
protectedslot |
◆ onConnectionLost
void pqServer::onConnectionLost |
( |
vtkObject * |
, |
|
|
unsigned |
long, |
|
|
void * |
, |
|
|
void * |
|
|
) |
| |
|
protectedslot |
Called by vtkSMSessionClient is any communication error occurred with the server.
This usually mean that the server side is dead.
The documentation for this class was generated from the following file:
- /builds/gitlab-kitware-sciviz-ci/Qt/Core/pqServer.h