4Suite API Documentation

Module Ft.Server.Server.Controller

Controller of all repository servers/daemons
Copyright 2003 Fourthought, Inc. (USA).
Detailed license and copyright information: http://4suite.org/COPYRIGHT
Project home, documentation, distributions: http://4suite.org/
Classes:
Globals:

Classes

class Controller(ControllerBase)

Methods

setSignals(self)
waitOrTimeout(self, timeout)
Overrides: waitOrTimeout from class ControllerBase

Methods inherited from class ControllerBase

class ControllerBase

Methods

__init__(self, config)
addServer(self, config)
getWorkers(self)
idleMaintenance(self)
main(...)
classmethod(function) -> method
Convert a function to be a class method.

A class method receives the class as implicit first argument,
just like an instance method receives the instance.
To declare a class method, use this idiom:

  class C:
      def f(cls, arg1, arg2, ...): ...
      f = classmethod(f)

It can be called either on the class (e.g. C.f()) or on an instance
(e.g. C().f()).  The instance is ignored except for its class.
If a class method is called for a derived class, the derived class
object is passed as the implied first argument.

Class methods are different than C++ or Java static methods.
If you want those, see the staticmethod builtin.
makeSocket(self, host, port)
Creates the socket for this address.
reclaimChildren(self)
removeServer(self, server)
restart(self, *ignored)
run(self)
shutdown(self, *ignored)
waitOrTimeout(self, timeout)
class DBMaintenanceWorker(Worker)

Methods

__init__(self, config, when)
Overrides: __init__ from class Worker
run(self)
Overrides: run from class Worker
tick(self)
Overrides: tick from class Worker
class Listener

Methods

__init__(self, socket, serverConfig)
class PosixController(ControllerBase)

Methods

setSignals(self)
waitOrTimeout(self, timeout)
Overrides: waitOrTimeout from class ControllerBase

Methods inherited from class ControllerBase

class Server

Methods

__init__(self, path, lastModified, listeners)
class WindowsController(ControllerBase)

Methods

setSignals(self)
waitOrTimeout(self, timeout)
Overrides: waitOrTimeout from class ControllerBase

Methods inherited from class ControllerBase

class Worker

Methods

__init__(self, config, interval, function, name=None)
run(self)
tick(self)

Globals

MAINTENANCE_INTERVAL = 1
MAX_PYTHON_RECURSION_DEPTH = 10000
MAX_SPAWN_RATE = 32