\App\ConfigModule\ModelsMonitorManager

IQRF Gateway Daemon Monitor service manager

Summary

Methods
Properties
Constants
__construct()
delete()
list()
load()
save()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
getWebSocketFile()
createMonitorService()
createWebSocketService()
$components
$fileNames
$genericManager
$instances
$schemaManager
N/A

Properties

$components

$components : array<string,string>

Type

normal — Components

$fileNames

$fileNames : string[]

Type

normal — JSON file names

$genericManager

$genericManager : \App\ConfigModule\Models\GenericManager

Type

normal — Generic configuration manager

$instances

$instances : array<string,string|null>

Type

normal — Component instances

$schemaManager

$schemaManager : \App\ConfigModule\Models\ComponentSchemaManager

Type

normal — JSON schema manager

Methods

__construct()

__construct(\App\ConfigModule\Models\GenericManager  $genericManager, \App\ConfigModule\Models\ComponentSchemaManager  $schemaManager) : mixed

Constructor

Parameters

\App\ConfigModule\Models\GenericManager $genericManager

Generic configuration manager

\App\ConfigModule\Models\ComponentSchemaManager $schemaManager

JSON schema manager

Returns

mixed

delete()

delete(int  $id) : void

Deletes Daemon's monitor service configuration

Parameters

int $id

Daemon's monitor service instance ID

Throws

\Nette\Utils\JsonException

list()

list() : array

Lists Daemon's monitor instances

Throws

\Nette\Utils\JsonException

Returns

array —

Daemon's monitor instances

load()

load(int  $id) : array

Loads Daemon's monitor service configuration

Parameters

int $id

Daemon's monitor service ID

Throws

\Nette\Utils\JsonException

Returns

array —

Array for the configuration form

save()

save(array<string,mixed>  $array) : void

Saves Daemon's monitor service configuration

Parameters

array $array

Daemon's monitor service configuration

Throws

\Nette\Utils\JsonException

getWebSocketFile()

getWebSocketFile(string  $instance) : string|null

Returns Websocket service file name by instance name

Parameters

string $instance

Websocket service instance name

Throws

\Nette\Utils\JsonException

Returns

string|null —

WebSocket service file name

createMonitorService()

createMonitorService(array  $values) : array

Creates a Monitor service configuration

Parameters

array $values

Values from the form

Returns

array —

Monitor service configuration

createWebSocketService()

createWebSocketService(array  $values) : array

Creates a WebSocket service configuration

Parameters

array $values

Values from the form

Returns

array —

WebSocket service configuration