| Server IP : 61.19.30.66 / Your IP : 216.73.216.15 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python2.7/dist-packages/twisted/persisted/journal/ |
Upload File : |
ó
[³XMc @ s1 d Z d d l m Z d d l Z d d l Z y d d l Z Wn e k
r] d d l Z n Xd d l m Z m
Z
d d d „ ƒ YZ d e f d „ ƒ YZ d e
f d
„ ƒ YZ
d e
f d „ ƒ YZ d
d d „ ƒ YZ d d d „ ƒ YZ d d d „ ƒ YZ e d „ Z d d d „ ƒ YZ e d „ Z d S( s) Basic classes and interfaces for journal.iÿÿÿÿ( t
nested_scopesN( t
implementst Interfacet Journalc B sD e Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( s} All commands to the system get routed through here.
Subclasses should implement the actual snapshotting capability.
c C s( | | _ | | _ | j j ƒ | _ d S( N( t logt journaledServicet getCurrentIndext latestIndex( t selfR R ( ( sB /usr/lib/python2.7/dist-packages/twisted/persisted/journal/base.pyt __init__ s c C s\ | j ƒ } | | j k rX x: | j j | d ƒ D] \ } } | j | j | ƒ q2 Wn d S( s™ Run all commands from log that haven't been run yet.
This method should be run on startup to ensure the snapshot
is up-to-date.
i N( t getLastSnapshotR R t getCommandsSincet executeR ( R t
snapshotIndext cmdtimet command( ( sB /usr/lib/python2.7/dist-packages/twisted/persisted/journal/base.pyt
updateFromLog$ s #c C s; t j ƒ } | j j | | ƒ } | j | j | | ƒ | S( s Log and execute a command.( t timeR t
logCommandt addCallbackt _reallyExecute( R R t runTimet d( ( sB /usr/lib/python2.7/dist-packages/twisted/persisted/journal/base.pyt executeCommand/ s c C s"