Inner Data#
Data for inner usage
Here provides some data objects for inner usage in SmoothCrawler-Cluster.
New in version 0.2.0.
- class smoothcrawler_cluster.model._data.CrawlerName[source]#
Data about crawler’s name
- property group: str#
Properties with both getter and setter for which cluster group the crawler instance is in.
- Type:
- property base_name: str#
Properties with both getter and setter for crawler instance’s name part. Its value could be repeated, but the combination of base_name and id should be unique to let cluster could identify it. For example, a crawler instance’s name would be like
sc-crawler_1, thesc-crawleris base_name part, and the_is the index separation,1is its ID.- Type:
- class smoothcrawler_cluster.model._data.CrawlerTimer[source]#
Data about crawler’s time attributes, e.g., time interval, threshold, etc.
- property time_interval: TimeInterval#
Properties with both getter and setter. This property is TimeInterval object. Please refer to TimeInterval to get more info.
- Type:
- property threshold: TimerThreshold#
Properties with both getter and setter. This property is TimerThreshold object. Please refer to TimerThreshold to get more info.
- Type:
- class smoothcrawler_cluster.model._data.TimeInterval[source]#
Data about each different time interval
- property check_task: float#
Properties with both getter and setter. It is the interval of checking whether the current crawler receives any task or not. This property for Runner.
- Type: