def __init__(self, nodeConfig, nodeName, communityId=None, networkId=None): self._nodeConfig = nodeConfig self._nodeName = nodeName self._replicatorUrl = urlparse.urljoin( self._nodeConfig.get("couch_info", "server"), self._REPLICATOR_DB) self._setupFilePaths() self._setupPylonsConfig() self._setupDescriptions() self._setupNode() self._setupDistributeService() self.setNodeInfo(nodeName) if communityId is not None: self.setCommunityInfo(communityId) if networkId is not None: self.setNetworkInfo(networkId) self.removeTestLog() # Keep around the replication documents that are store in the replication # database so that they can be deleted when the node is teared down. self._distributeResultsList = [] self._nodeProcess = NodeProcess(self._nodeName, self._pylonsConfigFilePath, self._logFilePath) self._isRunning = False