Package SpecClient :: Module SpecCounter :: Class SpecCounter
[hide private]
[frames] | no frames]

Class SpecCounter

source code

SpecCounter class

Instance Methods [hide private]
 
__init__(self, specName=None, specVersion=None, timeout=None)
Constructor
source code
 
connectToSpec(self, specName, specVersion, timeout=None)
Connect to a remote Spec
source code
 
count(self, time)
Count up to a certain time or monitor count
source code
 
getValue(self)
Return current counter value.
source code
Method Details [hide private]

__init__(self, specName=None, specVersion=None, timeout=None)
(Constructor)

source code 

Constructor

Keyword arguments: specName -- the name of the counter in Spec (defaults to None) specVersion -- 'host:port' string representing a Spec server to connect to (defaults to None) timeout -- optional timeout for connection (defaults to None)

connectToSpec(self, specName, specVersion, timeout=None)

source code 

Connect to a remote Spec

Connect to Spec

Arguments: specName -- name of the counter in Spec specVersion -- 'host:port' string representing a Spec server to connect to timeout -- optional timeout for connection (defaults to None)

count(self, time)

source code 

Count up to a certain time or monitor count

Arguments: time -- count time