Exemplo n.º 1
0
    def __init__(self):
        PBClientFactory.__init__(self)

        # Attribute defaults:
        self.uuid = ""
        self.computeChunkSize = 10
        self.computeInterval = 1  # sec
        self.generator = None  # functor
        self.outputBuffer = []
        self.reportInterval = 5  # sec
        self.taskQueue = deque()
        self.scheduler = None  # set in WorkerDaemon
        self.taskmaster = None  # set in WorkerDaemon

        deferred = self.getRootObject()
        deferred.addCallback(self.initProxy)
Exemplo n.º 2
0
    def __init__(self):
        PBClientFactory.__init__(self)

        # Attribute defaults:
        self.uuid               = ""
	self.computeChunkSize	= 10
	self.computeInterval	= 1 # sec
	self.generator		= None  # functor
	self.outputBuffer	= []
	self.reportInterval	= 5 # sec
        self.taskQueue		= deque()
	self.scheduler		= None  # set in WorkerDaemon
	self.taskmaster         = None  # set in WorkerDaemon
        
        deferred    = self.getRootObject()
        deferred.addCallback(self.initProxy)
Exemplo n.º 3
0
 def __init__(self, connectTimeout=30, pingPerspective=True, pingInterval=30, pingtimeout=120):
     PBClientFactory.__init__(self)
     self._creds = None
     self._scheduledConnectTimeout = None
     self._connectTimeout = connectTimeout
     # should the perspective be pinged. Perspective must have a ping method. Deprecated => Always False.
     self._shouldPingPerspective = pingPerspective
     # how often to ping
     self._pingInterval = pingInterval
     # how long to wait for a ping before closing connection
     self._pingTimeoutTime = pingtimeout
     # ref to the scheduled ping timeout call
     self._pingTimeout = None
     # looping call doing the ping
     self._pingCheck = None
     self._perspective = None
Exemplo n.º 4
0
 def __init__(self,
              connectTimeout=30,
              pingPerspective=True,
              pingInterval=30,
              pingtimeout=120):
     PBClientFactory.__init__(self)
     self._creds = None
     self._scheduledConnectTimeout = None
     self._connectTimeout = connectTimeout
     # should the perspective be pinged. Perspective must have a ping method. Deprecated => Always False.
     self._shouldPingPerspective = pingPerspective
     # how often to ping
     self._pingInterval = pingInterval
     # how long to wait for a ping before closing connection
     self._pingTimeoutTime = pingtimeout
     # ref to the scheduled ping timeout call
     self._pingTimeout = None
     # looping call doing the ping
     self._pingCheck = None
     self._perspective = None
Exemplo n.º 5
0
 def __init__(self):
     PBClientFactory.__init__(self)
     self._doingLogin = False
     self._doingGetPerspective = False
Exemplo n.º 6
0
 def __init__(self):
     PBClientFactory.__init__(self)
     self._doingLogin = False
     self._doingGetPerspective = False