403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python2.6/site-packages/yum/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.6/site-packages/yum/failover.pyc
Ñò
7ÛØJc@sOddkZddd„ƒYZdefd„ƒYZdefd„ƒYZdS(	iÿÿÿÿNtbaseFailOverMethodcBsDeZd„Zdd„Zd„Zdd„Zd„Zd„ZRS(cCs||_d|_dS(Ni(trepotfailures(tselfR((s0/usr/lib/python2.6/site-packages/yum/failover.pyt__init__s	cCsdS(sÖReturns a serverurl based on this failover method or None 
           if complete failure.  If i is given it is a direct index
           to pull a server URL from instead of using the failures 
           counter.N(tNone(Rti((s0/usr/lib/python2.6/site-packages/yum/failover.pyt
get_serverurlscCs|id|_dS(s<Tells the failover method that the current server is failed.iN(R(R((s0/usr/lib/python2.6/site-packages/yum/failover.pyt
server_failed%sicCs
||_dS(s,Reset the failures counter to a given index.N(R(RR((s0/usr/lib/python2.6/site-packages/yum/failover.pytreset)scCs|iS(s	Returns the current number of failures which is also the
           index into the list this object represents.  ger_serverurl()
           should always be used to translate an index into a URL
           as this object may change how indexs map.  (See RoundRobin)(R(R((s0/usr/lib/python2.6/site-packages/yum/failover.pyt	get_index-scCst|iiƒS(s5Returns the how many URLs we've got to cycle through.(tlenRturls(R((s0/usr/lib/python2.6/site-packages/yum/failover.pyR5sN(	t__name__t
__module__RRRRR	R
R(((s0/usr/lib/python2.6/site-packages/yum/failover.pyRs			tprioritycBseZdZdd„ZRS(s6Chooses server based on the first success in the list.cCsL|djo
|i}n|}|t|iiƒjodS|ii|S(sNReturns a serverurl based on this failover method or None if complete failure.N(RRRRR(RRtindex((s0/usr/lib/python2.6/site-packages/yum/failover.pyR@s

N(R
Rt__doc__RR(((s0/usr/lib/python2.6/site-packages/yum/failover.pyR<st
roundRobincBs#eZdZd„Zdd„ZRS(s&Chooses server based on a round robin.cCs3ti||ƒtiƒtiddƒ|_dS(Nii%(RRtrandomtseedtrandinttoffset(RR((s0/usr/lib/python2.6/site-packages/yum/failover.pyRSs
cCsi|djo
|i}n|}|t|iiƒjodS||it|iiƒ}|ii|S(sNReturns a serverurl based on this failover method or None if complete failure.N(RRRRRR(RRRtrr((s0/usr/lib/python2.6/site-packages/yum/failover.pyRXs

N(R
RRRRR(((s0/usr/lib/python2.6/site-packages/yum/failover.pyROs	((RRRR(((s0/usr/lib/python2.6/site-packages/yum/failover.pyt<module>s$

Youez - 2016 - github.com/yon3zu
LinuXploit