Package pike :: Module model :: Class Open
[hide private]
[frames] | no frames]

Class Open

source code

object --+
         |
        Open

Instance Methods [hide private]
 
__init__(self, tree, smb_res, create_guid=None, prev=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
arm_oplock_future(self)
(Re)arm the oplock future for this open.
source code
 
on_oplock_break(self, cb)
Simple oplock break callback handler.
source code
 
on_oplock_break_request(self, cb, cb_ctx=None)
Complex oplock break callback handler.
source code
 
dispose(self) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, tree, smb_res, create_guid=None, prev=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

arm_oplock_future(self)

source code 

(Re)arm the oplock future for this open. This function should be called when an oplock changes level to anything except SMB2_OPLOCK_LEVEL_NONE

on_oplock_break(self, cb)

source code 

Simple oplock break callback handler.

Parameters:
  • cb - callable taking 1 parameter: the break request oplock level should return the desired oplock level to break to

on_oplock_break_request(self, cb, cb_ctx=None)

source code 

Complex oplock break callback handler.
@param cb: callable taking 3 parameters:
                L{Open}
                L{Smb2} containing the break request
                L{object} arbitrary context
           should handle breaking the oplock in some way
           callback is also responsible for re-arming the future
           and updating the oplock_level (if changed)