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
defn

the computation definition

debug

a 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
name

of the site

url

web url of the site; exactly one of url or worker should be specified

worker

worker object for the site; exactly one of url or worker should 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
deep

Whether to make a deep clone.

See Also

QueryCountWorker() which goes hand-in-hand with this object


[Package distcomp version 1.3-3 Index]