<s> """<STR_LIT>""" <EOL> from collections import namedtuple <EOL> class KazooState ( object ) : <EOL> """<STR_LIT>""" <EOL> SUSPENDED = "<STR_LIT>" <EOL> CONNECTED = "<STR_LIT>" <EOL> LOST = "<STR_LIT>" <EOL> class KeeperState ( object ) : <EOL> """<STR_LIT>""" <EOL> AUTH_FAILED = '<STR_LIT>' <EOL> CONNECTED = '<STR_LIT>' <EOL> CONNECTED_RO = '<STR_LIT>' <EOL> CONNECTING = '<STR_LIT>' <EOL> CLOSED = '<STR_LIT>' <EOL> EXPIRED_SESSION = '<STR_LIT>' <EOL> class EventType ( object ) : <EOL> """<STR_LIT>""" <EOL> CREATED = '<STR_LIT>' <EOL> DELETED = '<STR_LIT>' <EOL> CHANGED = '<STR_LIT>' <EOL> CHILD = '<STR_LIT>' <EOL> EVENT_TYPE_MAP = { <EOL> <NUM_LIT:1> : EventType . CREATED , <EOL> <NUM_LIT:2> : EventType . DELETED , <EOL> <NUM_LIT:3> : EventType . CHANGED , <EOL> <NUM_LIT:4> : EventType . CHILD <EOL> } <EOL> class WatchedEvent ( namedtuple ( '<STR_LIT>' , ( '<STR_LIT:type>' , '<STR_LIT:state>' , '<STR_LIT:path>' ) ) ) : <EOL> """<STR_LIT>""" <EOL> class Callback ( namedtuple ( '<STR_LIT>' , ( '<STR_LIT:type>' , '<STR_LIT>' , '<STR_LIT:args>' ) ) ) : <EOL> """<STR_LIT>""" <EOL> class ZnodeStat ( namedtuple ( '<STR_LIT>' , '<STR_LIT>' <EOL> '<STR_LIT>' <EOL> '<STR_LIT>' ) ) : <EOL> """<STR_LIT>""" <EOL> @ property <EOL> def acl_version ( self ) : <EOL> return self . aversion <EOL> @ property <EOL> def children_version ( self ) : <EOL> return self . cversion <EOL> @ property <EOL> def created ( self ) : <EOL> return self . ctime / <NUM_LIT> <EOL> @ property <EOL> def last_modified ( self ) : <EOL> return self . mtime / <NUM_LIT> <EOL> @ property <EOL> def owner_session_id ( self ) : <EOL> return self . ephemeralOwner or None <EOL> @ property <EOL> def creation_transaction_id ( self ) : <EOL> return self . czxid <EOL> @ property <EOL> def last_modified_transaction_id ( self ) : <EOL> return self . mzxid <EOL> @ property <EOL> def data_length ( self ) : <EOL> return self . dataLength <EOL> @ property <EOL> def children_count ( self ) : <EOL> return self . numChildren </s>
