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/plugin.pyc

}9Rc@sddlmZddlmZddlmZddlmZddlm	Z	de	fdYZ
de
fd	YZd
S(i(tinfo(tsucceed(t
format_object(tlog_failure(tBrokerClientPlugint
MonitorPlugincBsDeZdZdZdZdZedZedZ	RS(sy
    @cvar persist_name: If specified as a string, a C{_persist} attribute
    will be available after registration.
    cCsitt|j||jdk	r\|jjj|j|_|j	j
jd|jn	d|_dS(Nt
resynchronize(
tsuperRtregistertpersist_nametNonetmonitortpersisttroot_att_persisttregistrytreactortcall_ont_resynchronize(tselfR((s</usr/lib/python2.7/dist-packages/landscape/monitor/plugin.pyRs
cCs|jjj|jdS(N(RRtremoveR	(R((s</usr/lib/python2.7/dist-packages/landscape/monitor/plugin.pyRscCs|jS(sReturn our L{Persist}, if any.(R(R((s</usr/lib/python2.7/dist-packages/landscape/monitor/plugin.pyRscCs|jS(s%An alias for the C{client} attribute.(tclient(R((s</usr/lib/python2.7/dist-packages/landscape/monitor/plugin.pyR"sN(
t__name__t
__module__t__doc__R
R	RRtpropertyRR(((s</usr/lib/python2.7/dist-packages/landscape/monitor/plugin.pyR
s		tDataWatchercBsAeZdZdZdZdZdZdZe	dZ
RS(sY
    A utility for plugins which send data to the Landscape server
    which does not constantly change. New messages will only be sent
    when the result of get_data() has changed since the last time it
    was called.

    Subclasses should provide a get_data method, and message_type,
    message_key, and persist_name class attributes.
    cCsS|j}|jjd|krO|jjd|i|jd6||j6SdS(s}
        Construct a message with the latest data, or None, if the data
        has not changed since the last call.
        tdatattypeN(tget_dataRtgettsettmessage_typetmessage_key(RR((s</usr/lib/python2.7/dist-packages/landscape/monitor/plugin.pytget_message6scs}j}|dk	rstdtjjj|d|}fd}|j||jt	|St
dS(Ns9Queueing a message with updated data watcher info for %s.turgentcsjdS(N(tpersist_data(t
message_id(R(s</usr/lib/python2.7/dist-packages/landscape/monitor/plugin.pyR$Gs(R"R
RRRtbrokertsend_messagetaddCallbackt
addErrbackRR(RR#tmessagetresultR$((Rs</usr/lib/python2.7/dist-packages/landscape/monitor/plugin.pyR'@s


cCsdS(ss
        Sub-classes that need to defer the saving of persistent data
        should override this method.
        N((R((s</usr/lib/python2.7/dist-packages/landscape/monitor/plugin.pyR$OscCs|jjj|j|j|S(sd
        Conditionally add a message to the message store if new data
        is available.
        (RR&tcall_if_acceptedR R'(RR#((s</usr/lib/python2.7/dist-packages/landscape/monitor/plugin.pytexchangeVsN(RRRR
R R!R"R'R$tFalseR-(((s</usr/lib/python2.7/dist-packages/landscape/monitor/plugin.pyR(s		
		N(tloggingRttwisted.internet.deferRt
landscape.logRtlandscape.lib.logRtlandscape.broker.clientRRR(((s</usr/lib/python2.7/dist-packages/landscape/monitor/plugin.pyt<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit