Reference Source
public class | source

DistributedLogs

Extends:

DistributedMessage → DistributedLogs

DistributedLogs class for distributed communication.

Constructor Summary

Public Constructor
public

constructor(arg_sender_name: string | object, arg_target_name: string, arg_timestamp: string, arg_level: string, arg_values: array, arg_channel: string, arg_buses_path: array): nothing

Create a DistributedLogs instance.

Member Summary

Public Members
public

Class type flag.

Method Summary

Public Methods
public

Check message format.

public

Get logs level.

public

Get logs source.

public

Get logs timestamp.

public

get_logs_values(): array

Get logs values.

Inherited Summary

From class DistributedMessage
public

Class type flag.

private

_buses_path: array

Message buses path.

private

Message channel name.

private

Message payload object.

private

Message sender name.

private

Message target name.

public

add_buses_step(arg_bus_name: string): nothing

Add a step to message buses path.

public

Check message format.

public

Get bus channel name.

public

Get message sender.

public

Get message sender.

public

Get message sender.

public

has_buses_step(arg_bus_name: string): nothing

Test if message has a step into buses path.

public

set_channel(arg_channel: string): nothing

Set bus channel name.

Public Constructors

public constructor(arg_sender_name: string | object, arg_target_name: string, arg_timestamp: string, arg_level: string, arg_values: array, arg_channel: string, arg_buses_path: array): nothing source

Create a DistributedLogs instance.

Override:

DistributedMessage#constructor

Params:

NameTypeAttributeDescription
arg_sender_name string | object

sender name or message plain object (without other args).

arg_target_name string

recipient name.

arg_timestamp string

logs timestamp string.

arg_level string

logs level string.

arg_values array

logs values array.

arg_channel string

channel name.

arg_buses_path array

message buses path (optional default []).

Return:

nothing

Public Members

public is_distributed_logs: boolean source

Class type flag.

Public Methods

public check_msg_format(): boolean source

Check message format.

Override:

DistributedMessage#check_msg_format

Return:

boolean

true:good format, false:bad format.

public get_logs_level(): string source

Get logs level.

Return:

string

logs level.

public get_logs_source(): string source

Get logs source.

Return:

string

logs source.

public get_logs_ts(): string source

Get logs timestamp.

Return:

string

logs timestamp.

public get_logs_values(): array source

Get logs values.

Return:

array

logs values array.