Package ccm :: Class SessionPool |
[hide private]
[frames] | no frames]

# Class SessionPool

source code

         object --+
                  |
    AbstractSession --+
                      |
                     SessionPool

Session that transparently handled several subsession, to easily enable multithreaded application.

Instance Methods | [hide private]
__init__(self, username, password, engine, dbpath, database=None, size=4, opener=None) x.__init__(...) initializes x; see x.__class__.__doc__ for signature | source code
_set_size(self, size) Set the pool size | source code
_get_size(self) | source code
execute(self, cmdline, result=None) Executing a ccm command on a free session. | source code
close(self) Closing all subsessions. | source code
_set_role_internal(self, role) Set role on all subsessions. | source code
Inherited from `AbstractSession`: `__del__`, `__repr__`, `__str__`, `addr`, `create`, `database`, `get_workarea_info`, `purposes` Inherited from `AbstractSession` (private): `_get_home`, `_get_role`, `_set_home`, `_set_role` Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__setattr__`

Class Variables | [hide private]
| size = `property(_get_size, _set_size)`
Inherited from `AbstractSession`: `home`, `role`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, username, password, engine, dbpath, database=None, size=4, opener=None) (Constructor) | source code
x.__init__(...) initializes x; see x.__class__.__doc__ for signature Overrides: AbstractSession.__init__

### execute(self, cmdline, result=None) | source code
Executing a ccm command on a free session. Overrides: AbstractSession.execute

### close(self) | source code
Closing all subsessions. Overrides: AbstractSession.close

### _set_role_internal(self, role) | source code
Set role on all subsessions. Overrides: AbstractSession._set_role_internal