| QueryCountMaster {distcomp} | R Documentation |
Create a master object to control worker objects generated by QueryCountWorker()
Description
QueryCountMaster objects instantiate and run a distributed query count computation
Methods
Public methods
Method new()
Create a new QueryCountMaster object.
Usage
QueryCountMaster$new(defn, debug = FALSE)
Arguments
defnthe computation definition
debuga flag for debugging, default
FALSE
Returns
a new QueryCountMaster object
Method kosher()
Check if inputs and state of object are sane. For future use
Usage
QueryCountMaster$kosher()
Returns
TRUE or FALSE
Method queryCount()
Run the distributed query count and return the result
Usage
QueryCountMaster$queryCount()
Returns
the count
Method getSites()
Retrieve the value of the private sites field
Usage
QueryCountMaster$getSites()
Method addSite()
Add a url or worker object for a site for participating in the distributed computation. The worker object can be used to avoid complications in debugging remote calls during prototyping.
Usage
QueryCountMaster$addSite(name, url = NULL, worker = NULL)
Arguments
nameof the site
urlweb url of the site; exactly one of
urlorworkershould be specifiedworkerworker object for the site; exactly one of
urlorworkershould be specified
Method run()
Run the distributed query count
Usage
QueryCountMaster$run()
Returns
the count
Method clone()
The objects of this class are cloneable with this method.
Usage
QueryCountMaster$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
See Also
QueryCountWorker() which goes hand-in-hand with this object