HCE Project Python language Distributed Tasks Manager Application, Distributed Crawler Application and client API bindings.  2.0.0-chaika
Hierarchical Cluster Engine Python language binding
dc.EventObjects.SiteFind Class Reference
Inheritance diagram for dc.EventObjects.SiteFind:
Collaboration diagram for dc.EventObjects.SiteFind:

Public Member Functions

def __init__ (self, url, criterions=None)
 
- Public Member Functions inherited from app.Utils.JsonSerializable
def __init__ (self)
 
def toJSON (self)
 

Public Attributes

 url
 
 criterions
 
 excludeList
 

Static Public Attributes

int MAX_NUMBER_DEFAULT = 10
 
string CRITERION_LIMIT = "LIMIT"
 
string CRITERION_WHERE = "WHERE"
 
string CRITERION_ORDER = "ORDER BY"
 
string CRITERION_TABLES = "TABLES"
 
string DEFAULT_ORDER_BY_CDATE = "CDate DESC"
 
string DEFAULT_TABLES = ""
 

Additional Inherited Members

- Static Public Member Functions inherited from app.Utils.JsonSerializable
def json_serial (obj)
 

Detailed Description

Definition at line 270 of file EventObjects.py.

Constructor & Destructor Documentation

◆ __init__()

def dc.EventObjects.SiteFind.__init__ (   self,
  url,
  criterions = None 
)

Definition at line 289 of file EventObjects.py.

289  def __init__(self, url, criterions=None):
290  super(SiteFind, self).__init__()
291  self.url = url
292 
293  # Init criterions for Sites
294  if criterions is None:
295  criterions = {}
296  self.criterions = criterions
297 
298  if self.CRITERION_ORDER not in criterions:
299  self.criterions[self.CRITERION_ORDER] = self.DEFAULT_ORDER_BY_CDATE
300 
301  if self.CRITERION_WHERE not in criterions:
302  self.criterions[self.CRITERION_WHERE] = "1=1"
303 
304  if self.CRITERION_LIMIT not in criterions:
305  self.criterions[self.CRITERION_LIMIT] = str(self.MAX_NUMBER_DEFAULT)
306 
307  if self.CRITERION_TABLES not in criterions:
308  self.criterions[self.CRITERION_TABLES] = str(self.DEFAULT_TABLES)
309 
310  self.excludeList = []
311 
312 
313 
314 # #SiteStatus event object
315 #
316 # The get site status operation object.
317 #
def __init__(self)
constructor
Definition: UIDGenerator.py:19

Member Data Documentation

◆ CRITERION_LIMIT

string dc.EventObjects.SiteFind.CRITERION_LIMIT = "LIMIT"
static

Definition at line 274 of file EventObjects.py.

◆ CRITERION_ORDER

string dc.EventObjects.SiteFind.CRITERION_ORDER = "ORDER BY"
static

Definition at line 276 of file EventObjects.py.

◆ CRITERION_TABLES

string dc.EventObjects.SiteFind.CRITERION_TABLES = "TABLES"
static

Definition at line 277 of file EventObjects.py.

◆ CRITERION_WHERE

string dc.EventObjects.SiteFind.CRITERION_WHERE = "WHERE"
static

Definition at line 275 of file EventObjects.py.

◆ criterions

dc.EventObjects.SiteFind.criterions

Definition at line 296 of file EventObjects.py.

◆ DEFAULT_ORDER_BY_CDATE

string dc.EventObjects.SiteFind.DEFAULT_ORDER_BY_CDATE = "CDate DESC"
static

Definition at line 278 of file EventObjects.py.

◆ DEFAULT_TABLES

string dc.EventObjects.SiteFind.DEFAULT_TABLES = ""
static

Definition at line 279 of file EventObjects.py.

◆ excludeList

dc.EventObjects.SiteFind.excludeList

Definition at line 310 of file EventObjects.py.

◆ MAX_NUMBER_DEFAULT

int dc.EventObjects.SiteFind.MAX_NUMBER_DEFAULT = 10
static

Definition at line 272 of file EventObjects.py.

◆ url

dc.EventObjects.SiteFind.url

Definition at line 291 of file EventObjects.py.


The documentation for this class was generated from the following file: