Package portage :: Package util :: Package _async :: Module FileDigester :: Class FileDigester
[hide private]

Class FileDigester

source code

                           object --+                        
                                    |                        
                SlotObject.SlotObject --+                    
                                        |                    
_emerge.AsynchronousTask.AsynchronousTask --+                
                                            |                
    _emerge.AbstractPollTask.AbstractPollTask --+            
                                                |            
                    _emerge.SubProcess.SubProcess --+        
                                                    |        
                    _emerge.SpawnProcess.SpawnProcess --+    
                                                        |    
                                  ForkProcess.ForkProcess --+
                                                            |
                                                           FileDigester

Asynchronously generate file digests. Pass in file_path and hash_names, and after successful execution, the digests attribute will be a dict containing all of the requested digests.

Instance Methods [hide private]
 
_start(self) source code
 
_run(self) source code
 
_parse_digests(self, data) source code
 
_pipe_logger_exit(self, pipe_logger) source code
 
_digest_pipe_reader_exit(self, pipe_reader) source code
 
_unregister(self)
Unregister from the scheduler and close open files.
source code

Inherited from ForkProcess.ForkProcess (private): _spawn

Inherited from _emerge.SubProcess.SubProcess: isAlive

Inherited from _emerge.AsynchronousTask.AsynchronousTask: addExitListener, addStartListener, cancel, poll, removeExitListener, removeStartListener, start, wait

Inherited from SlotObject.SlotObject: __init__, copy

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

Class Variables [hide private]
Properties [hide private]
  _digest_pipe_reader
  _digest_pw
  digests
  file_path
  hash_names

Inherited from _emerge.SpawnProcess.SpawnProcess: args, cgroup, close_fds, env, fd_pipes, gid, groups, logfile, opt_name, path_lookup, pre_exec, uid, umask, unshare_ipc, unshare_net

Inherited from _emerge.SubProcess.SubProcess: pid

Inherited from _emerge.AbstractPollTask.AbstractPollTask: scheduler

Inherited from _emerge.AsynchronousTask.AsynchronousTask: background, cancelled, returncode

Inherited from object: __class__

Method Details [hide private]

_start(self)

source code 
Overrides: _emerge.AsynchronousTask.AsynchronousTask._start

_run(self)

source code 
Overrides: ForkProcess.ForkProcess._run

_pipe_logger_exit(self, pipe_logger)

source code 
Overrides: _emerge.SpawnProcess.SpawnProcess._pipe_logger_exit

_unregister(self)

source code 

Unregister from the scheduler and close open files.

Overrides: _emerge.AbstractPollTask.AbstractPollTask._unregister