Members
browser_obj :Blacktraffic.AgentBrowserPuppeteer
Type:
saves_folder :string
[WIP] - Should probably really be set to a default like ./settings/Blacktraffic/workers.
Type:
-
string
(static) this.console :log.Channel
Type:
(static) this.console_local :log.Channel
Type:
Methods
error(…argn_arguments)
Prints an error to both logging channels.
- Method of: Blacktraffic.Worker
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
argn_arguments |
<repeatable> |
log(…argn_arguments)
Prints a log to both logging channels.
- Method of: Blacktraffic.Worker
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
argn_arguments |
<repeatable> |
print(arg0_type, …argn_arguments)
Prints a message type to both logging channels.
- Method of: Blacktraffic.Worker
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
arg0_type |
string
|
Either 'error'/'log'/'warn'. |
|
argn_arguments |
<repeatable> |
remove()
Removes the current worker.
- Method of: Blacktraffic.Worker
warn(…argn_arguments)
Logs a warning to both logging channels.
- Method of: Blacktraffic.Worker
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
argn_arguments |
<repeatable> |
(async) disable() → {Promise.<void>}
Disables the current worker and aborts the task it is carrying out.
- Method of: Blacktraffic.Worker
Returns:
- Type:
-
Promise.<void>
(async) enable() → {Promise.<void>}
Enables the current worker. Does not necessarily resume the task.
- Method of: Blacktraffic.Worker
Returns:
- Type:
-
Promise.<void>
(async) execute()
Attempts execution of the current worker, used by child classes.
- Method of: Blacktraffic.Worker
(async) getBrowser() → {Promise.<Blacktraffic.AgentBrowserPuppeteer>}
Returns the current stored browser object.
- Method of: Blacktraffic.Worker
Returns:
- Type:
-
Promise.<Blacktraffic.AgentBrowserPuppeteer>
getCurrentStatus() → {string}
Returns the current status. Either 'done'/'failed'/'idle'/'partially_failed'/'running'/.
- Method of: Blacktraffic.Worker
Returns:
- Type:
-
string
getCurrentStatusElement() → {HTMLSpanElement}
Returns the current status element and report.
- Method of: Blacktraffic.Worker
Returns:
- Type:
-
HTMLSpanElement
getCurrentTimeStatus() → {Object}
Returns the current time status. Either 'idle'/'running'/'done'.
- Method of: Blacktraffic.Worker
Returns:
- Type:
-
Object
getJobList() → {Array.<Object>}
Returns the list of previous jobs carried out by the worker in-session.
- Method of: Blacktraffic.Worker
getLastSuccessfulJob() → {Date}
Returns the last successful job that was successfully completed.
- Method of: Blacktraffic.Worker
Returns:
- Type:
-
Date
(async) getTab() → {Promise.<Object>}
Returns the tab the Worker is currently executing tasks on.
- Method of: Blacktraffic.Worker
Returns:
- Type:
-
Promise.<Object>
getTabID() → {string}
Returns the current tab ID.
- Method of: Blacktraffic.Worker
Returns:
- Type:
-
string
(async) run() → {Promise.<Array.<Ontology>>}
Runs the current worker thread and executes its .execute() method.
- Method of: Blacktraffic.Worker
startInterval()
Starts the interval timer for the worker.
- Method of: Blacktraffic.Worker
stopInterval()
Stops the interval timer for the worker.
- Method of: Blacktraffic.Worker