Model
Main checker model class
Constructor Summary
Public Constructor | ||
public |
|
Member Summary
Public Members | ||
public get |
Getter for external links items map |
Private Members | ||
private |
Performed items |
|
private |
Map of external link items |
|
private |
Pending queue |
|
private |
Map of processed link items |
Method Summary
Public Methods | ||
public |
addToActive(url: String): * Add link url to list of active (checked at this moment) |
|
public |
addToExternal(url: String, baseUrl: String, href: String): Model Add item to external links model |
|
public |
addToPending(url: String, advanced: Object): Model Adds item to array of pending items |
|
public |
addToProcessed(url: String): boolean Returns true if items was not at provessed items |
|
public |
Returns true if active items array contains items |
|
public |
Returns true if external items map contains items |
|
public |
Returns length of active items array |
|
public |
Returns length of pending items array |
|
public |
isQueueFull(max: [type]): Boolean Returns true of length of active items greater then given max number |
|
public |
removeFromActive(url: String): Model Removes item corresponded to given url from active items array |
|
public |
Removes first item from pending items array and returns it |
Public Constructors
public constructor source
Public Members
Private Members
Public Methods
public addToActive(url: String): * source
Add link url to list of active (checked at this moment)
Params:
Name | Type | Attribute | Description |
url | String | of href found on page |
Return:
* |
public addToExternal(url: String, baseUrl: String, href: String): Model source
Add item to external links model
public addToPending(url: String, advanced: Object): Model source
Adds item to array of pending items
public addToProcessed(url: String): boolean source
Returns true if items was not at provessed items Also item is put into processed map
Params:
Name | Type | Attribute | Description |
url | String | resolved from link |
public isQueueFull(max: [type]): Boolean source
Returns true of length of active items greater then given max number
Params:
Name | Type | Attribute | Description |
max | [type] | [description] |