File: ModuleRoundRobin.py

package info (click to toggle)
cherokee 0.7.2-4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 8,808 kB
  • ctags: 6,577
  • sloc: ansic: 45,071; python: 9,628; sh: 9,468; makefile: 1,639; xml: 61; perl: 32
file content (24 lines) | stat: -rw-r--r-- 687 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from Form import *
from Table import *
from Module import *
from ModuleBalancer import *

from consts import *

RR_COMMENT = """
The <i>Round Robin</i> balancer can either access remote servers or
launch local application servers and connect to them.
"""

class ModuleRoundRobin (ModuleBalancerGeneric):
    def __init__ (self, cfg, prefix, submit_url):
        ModuleBalancerGeneric.__init__ (self, cfg, prefix, submit_url, 'round_robin')

    def _op_render (self):
        txt = ModuleBalancerGeneric._op_render (self)
        return txt

    def _op_apply_changes (self, uri, post):
        txt = ModuleBalancerGeneric._op_apply_changes (self, uri, post)
        return txt