Reference Source
public class | source

TopologyRegistry

You can directly use an instance of this class. store

Extends:

LoggableStateStoreMapStoreRegistryStore → TopologyRegistry

TopologyRegistryStore class, a RegistryStore loading topology.

Constructor Summary

Public Constructor
public

constructor(arg_logger_manager: LoggerManager, arg_trace: boolean): nothing

Create a TopologyRegistry instance.

Member Summary

Public Members
public

error: *

public
public

root: *

Private Members
private

_trace: *

Method Summary

Public Methods
public

format_error(arg_error: object): string

Format an error record.

public

Get potential error.

public

load(arg_config: object, arg_base_dir: string, arg_topology_dir: string): nothing

Load a topology configuration.

Inherited Summary

From class Loggable
public

Log context.

public

Class type flag.

public

Trace is enabled for this flag.

private

Logger manager instance (default undefined)

public

debug(args: string | array): nothing

Trace DEBUG formatted message.

public

disable_trace(): nothing

Disable traces.

public

enable_trace(): nothing

Enable traces.

public

enter_group(arg_group: string): nothing

Trace INFO message on "enter trace group".

public

error(args: string | array): nothing

Trace ERROR formatted message.

public

Define get class name method for non Instance classes.

public

Get instance context.

public

Get logger manager.

public

Define get instance name method for non Instance classes.

public

Get trace flag.

public

info(args: string | array): nothing

Trace INFO formatted message.

public

leave_group(arg_group: string): nothing

Trace INFO message on "leave trace group".

public

separate_level_1(): nothing

Trace INFO trace level 1 separator.

public

separate_level_2(): nothing

Trace INFO trace level 2 separator.

public

separate_level_3(): nothing

Trace INFO trace level 3 separator.

public

set_trace(arg_value: boolean): nothing

Set trace flag.

public

should_trace(arg_traces_cfg: object): boolean

Calculate should trace flag.

public

should_trace_class(arg_traces_cfg: object): boolean

Calculate should trace flag for classes.

public

should_trace_collection_item(arg_traces_cfg: object, arg_collection_name: string, arg_this_item_accessor: string): boolean

Calculate should trace flag for given collection of names or patterns.

public

should_trace_module(arg_traces_cfg: object): boolean

Calculate should trace flag for modules.

public

should_trace_name(arg_traces_cfg: object): boolean

Calculate should trace flag for instances names.

public

Toggle trace flag.

public

Update trace enabled flag.

public

warn(args: string | array): nothing

Trace WARN formatted message.

From class StateStore
public
public
public abstract

dispatch(arg_action: object): nothing

Dispatch a requested action to mutate current state.

public

dispatch_action(arg_action: object): nothing

Dispatch a state action.

public abstract

Get current state.

public abstract

set_state(arg_state: object): nothing

Set/Replace current state.

public abstract

subscribe(arg_handle: function): function

Register a handle on state mutations.

From class MapStore
public
public

root: *

public
public

dispatch(arg_action: object): nothing

Dispatch a requested action to mutate current state.

public

get_state(): Immutable

Get current state.

public

set_state(arg_state: object): Immutable

Set/Replace current state.

public

subscribe(arg_handle: function): function

Register a handle on state mutations.

From class RegistryStore
public
public
public
public
public
public

root: *

public

get_collection(arg_name: *): *

public

get_collection_item(arg_name: *, arg_item_name: *): *

public

get_collection_names(arg_name: *): *

public

get_path_array(arg_path: *): *

public

get_resource(arg_name: *): *

public

get_resource_by_type(arg_type: *, arg_name: *): *

public

get_resource_of_type(arg_type: *, arg_name: *): *

public

get_resources(arg_set_name: *): *

public

has_collection(arg_name: *): *

public

has_collection_item(arg_name: *, arg_item_name: *): *

public

has_resource(arg_name: *): *

public

has_resource_by_type(arg_type: *, arg_name: *): *

public

register_collection(arg_collection_name: string): nothing

Register collection methods.

public

register_resources_collection(arg_collection_name: string, arg_item_name: string): nothing

Register resources collection methods.

public

set_item(arg_path: *, arg_item: *)

Public Constructors

public constructor(arg_logger_manager: LoggerManager, arg_trace: boolean): nothing source

Create a TopologyRegistry instance.

Override:

RegistryStore#constructor

Params:

NameTypeAttributeDescription
arg_logger_manager LoggerManager

logger manager object.

arg_trace boolean

load config trace flag

Return:

nothing

Public Members

public error: * source

Trace ERROR formatted message.

Override:

Loggable#error

public initial_config: * source

public root: * source

Override:

RegistryStore#root

Private Members

private _trace: * source

Public Methods

public format_error(arg_error: object): string source

Format an error record.

Params:

NameTypeAttributeDescription
arg_error object

error record.

Return:

string

human readable error.

public get_error(): object source

Get potential error.

Return:

object

error record.

public load(arg_config: object, arg_base_dir: string, arg_topology_dir: string): nothing source

Load a topology configuration.

Params:

NameTypeAttributeDescription
arg_config object

object configuration.

arg_base_dir string

project base directory.

arg_topology_dir string

topology settings base directory.

Return:

nothing