For non-blocking operations in client applications using Python X2Go,
it is recommended to enable the X2GoListSessionsCache. This can be done by calling the
constructor of the X2GoClient class.
The session list and desktop cache gets updated in regular intervals
by a threaded X2GoSessionGuardian instance. For the session list and
desktop list update, the X2Go server commands
x2golistsessions
and x2godesktopsessions
are
called and the command's stdout is cached in the session list cache.
Whenever your client application needs access to either the server's
session list or the server's desktop list the session cache is queried
instead. This assures that the server's session/desktop list is available
without delay, even on slow internet connections.
|
__init__(self,
client_instance,
logger=None,
loglevel=log.loglevel_DEFAULT)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
delete(self,
profile_name)
Remove session list from cache for a given profile. |
source code
|
|
|
|
|
|
|
|
X2GoServerSessionList* instance (or None )
|
|
list (or None )
|
|
list (or None )
|
|
bool
|
is_cached(self,
profile_name=None,
session_uuid=None,
cache_type=None)
Check if session information is cached. |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|