Package yum :: Module failover :: Class baseFailOverMethod
[hide private]
[frames] | no frames]

Class baseFailOverMethod

source code


Instance Methods [hide private]
 
__init__(self, repo) source code
 
get_serverurl(self, i=None)
Returns a serverurl based on this failover method or None if complete failure.
source code
 
server_failed(self)
Tells the failover method that the current server is failed.
source code
 
reset(self, i=0)
Reset the failures counter to a given index.
source code
 
get_index(self)
Returns the current number of failures which is also the index into the list this object represents.
source code
 
len(self)
Returns the how many URLs we've got to cycle through.
source code
Method Details [hide private]

get_serverurl(self, i=None)

source code 

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.

get_index(self)

source code 

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)