403Webshell
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/landscape/monitor/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.7/dist-packages/landscape/monitor/packagemonitor.pyc
ó
}9Rc@srddlZddlZddlmZddlmZddlmZddlm	Z	de	fd„ƒYZ
dS(iÿÿÿÿN(tgetProcessOutput(tPackageStore(tfind_reporter_command(t
MonitorPlugintPackageMonitorcBskeZdZdd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d„Zd	„Zd
„Z
RS(icCsDtt|ƒjƒ|r+t|ƒ|_n	d|_tƒ|_dS(N(tsuperRt__init__Rt_package_storetNoneRt_reporter_command(tselftpackage_store_filename((sD/usr/lib/python2.7/dist-packages/landscape/monitor/packagemonitor.pyRs
	cCsë|j|_|jj|_|jjr?|jjr?d|_ntt|ƒj|ƒ|js‹t	j
j|jjdƒ}t
|ƒ|_n|jd|jƒ|jjd|jƒ|jjd|jƒ|jd|jƒ|jƒdS(Ni<spackage/databasespackage-idst
resynchronizesserver-uuid-changedtpackages(tconfigtpackage_monitor_intervaltrun_intervaltclonestis_cloneRRtregisterRtostpathtjoint	data_pathRtregister_messaget!_enqueue_message_as_reporter_tasktreactortcall_ont_resynchronizet_server_uuid_changedtcall_on_acceptedtspawn_reportertrun(R
tregistrytfilename((sD/usr/lib/python2.7/dist-packages/landscape/monitor/packagemonitor.pyRs 			

cCs!|jjd|ƒ|jƒdS(Ntreporter(Rtadd_taskR(R
tmessage((sD/usr/lib/python2.7/dist-packages/landscape/monitor/packagemonitor.pyR,scCs&|jjjƒ}|j|jƒ|S(N(R!tbrokertget_accepted_message_typestaddCallbackt_got_message_types(R
tresult((sD/usr/lib/python2.7/dist-packages/landscape/monitor/packagemonitor.pyR 0scCsd|kr|jƒndS(NR
(R(R
t
message_types((sD/usr/lib/python2.7/dist-packages/landscape/monitor/packagemonitor.pyR)5scsCdtfd„ƒY}tˆdd
ƒd
krìddlm}m}ddlm}|ƒ}|ƒ}|j|dˆj	j
dˆj	jgƒ||jƒ}|||ˆj
j|ƒˆ_tjjˆj	jd	d
ƒˆj_tˆ_nˆjrddlm}	|	d
ƒStˆ_ˆjjƒ}
‡fd†}|
j|ƒS(sRun a fake-reporter in-process.t
FakeFacadecBseZdZd„ZRS(s‘
            A fake facade to workaround the issue that the AptFacade
            essentially allows only once instance per process.
            cSsotjƒd}idd6dd6dd6j|ƒ}|rC|}n(|ddkrk|jd	ƒrkd}n|S(
Niÿÿÿÿti386tpentiumti86pctamd64tx86_64itit86(Rtunametgettendswith(R
tarchR*((sD/usr/lib/python2.7/dist-packages/landscape/monitor/packagemonitor.pytget_archBs
		(t__name__t
__module__t__doc__R8(((sD/usr/lib/python2.7/dist-packages/landscape/monitor/packagemonitor.pyR,<st_fake_reporteriÿÿÿÿ(tFakeReportertPackageReporterConfiguration(tFakePackageStores-ds-ltpackagetdatabase(tsucceedcs
tˆ_|S(N(tFalset_fake_reporter_running(tpassthrough(R
(sD/usr/lib/python2.7/dist-packages/landscape/monitor/packagemonitor.pytdonees	N(tobjecttgetattrRtlandscape.package.reporterR=R>tlandscape.package.storeR?tloadRRtlog_dirtstore_filenameR!R&R<RRRtmaster_data_pathtglobal_store_filenameRCRDttwisted.internet.deferRBtTrueR taddBoth(R
targsR,R=R>R?tpackage_facadetpackage_configt
package_storeRBR*RF((R
sD/usr/lib/python2.7/dist-packages/landscape/monitor/packagemonitor.pyt_run_fake_reporter9s,						
	c
Cs³dg}|jjr1|jd|jjgƒntjjƒ}|jjdkrx|jjrk|j|ƒSd|d<nt|j	d|d|dd	d
dƒ}|j|jƒ|S(Ns--quiets-cit1tFAKE_GLOBAL_PACKAGE_STORERStenvterrortooiR(
RtextendRtenvirontcopyRRRWRR	RR(t_got_reporter_output(R
RSRZR*((sD/usr/lib/python2.7/dist-packages/landscape/monitor/packagemonitor.pyRks	

	cCs|rtjd|ƒndS(NsPackage reporter output:
%s(tloggingtwarning(R
toutput((sD/usr/lib/python2.7/dist-packages/landscape/monitor/packagemonitor.pyR_€scCs6|jjdidd6ƒ}|jjd|fƒdS(s:
        Remove all tasks *except* the resynchronize task.  This is
        because if we clear all tasks, then add the resynchronize,
        it's possible that the reporter may be running a task at this
        time and when it finishes, it will unknowningly remove the
        resynchronize task because sqlite resets its serial primary
        keys when you delete an entire table.  This problem is avoided
        by adding the task first and removing them all *except* the
        resynchronize task and not causing sqlite to reset the serial
        key.
        R#Rttypetexcept_tasksN(RR$tclear_tasks(R
ttask((sD/usr/lib/python2.7/dist-packages/landscape/monitor/packagemonitor.pyR„scCs |dk	r|jjƒndS(sµCalled when the broker sends a server-uuid-changed event.

        The package hash=>id map is server-specific, so when we change
        servers, we should reset this map.
        N(RRtclear_hash_ids(R
told_uuidtnew_uuid((sD/usr/lib/python2.7/dist-packages/landscape/monitor/packagemonitor.pyR”s	N(R9R:RRRRRR R)RWRR_RR(((sD/usr/lib/python2.7/dist-packages/landscape/monitor/packagemonitor.pyRs					2			(R`Rttwisted.internet.utilsRRJRRIRtlandscape.monitor.pluginRR(((sD/usr/lib/python2.7/dist-packages/landscape/monitor/packagemonitor.pyt<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit