Reference Source
public class | source

Runtime

Extends:

devapt-core-common/dist/js/base/runtime_base~RuntimeBase → Runtime

Constructor Summary

Public Constructor
public

constructor(): nothing

Create a Runtime instance.

Member Summary

Public Members
public

context: Context

Runtime context instance.

public

defined_world_topology: TopologyDefineWorld

Topology world definition instance.

public

deployed_local_topology: TopologyDeploymentWorld

Topology world deployment instance.

public

Is master node flag.

public

Class test flag.

public

Runtime node.

public

Plugins factory instance.

public

security_mgr: SecurityManager

Security manager instance.

public

Servers using socketio.

public

topology_registry: TopologyRegistry

Topology state registry.

public

Unique node id.

Private Members
private

$settings: Immutable.Map

Runtime settings.

private

_state_store: TopologyRegistry

Topology state registry.

Method Summary

Public Methods
public

add_socketio(arg_server_name: string, arg_socketio: object): nothing

Register and configure a socketio server.

public

get_context(): Context

Get runtime context.

public

get_defined_topology(): TopologyDefineWorld

Get defined topology runtime singleton.

public

get_deployed_topology(): TopologyDeployLocalNode

Get deployed topology runtime singleton.

public

Get runtime node.

public

Get plugins factory object.

public

Get topology runtime singleton.

public

Get runtime unique identifier.

public

load(arg_settings: object): object

Load runtime settings.

public

on_socketio_connect(arg_socketio: object, arg_socket: object): nothing

On socketio server connect event.

public

On socketio server disconnect event.

public

Get security object.

Public Constructors

public constructor(): nothing source

Create a Runtime instance.

Return:

nothing

Public Members

public context: Context source

Runtime context instance.

public defined_world_topology: TopologyDefineWorld source

Topology world definition instance.

public deployed_local_topology: TopologyDeploymentWorld source

Topology world deployment instance.

public is_master: boolean source

Is master node flag.

public is_server_runtime: boolean source

Class test flag.

public node: Node source

Runtime node.

public plugins_factory: PluginsFactory source

Plugins factory instance.

public security_mgr: SecurityManager source

Security manager instance.

public socketio_servers: object source

Servers using socketio.

public topology_registry: TopologyRegistry source

Topology state registry.

public uid: string source

Unique node id.

Private Members

private $settings: Immutable.Map source

Runtime settings.

private _state_store: TopologyRegistry source

Topology state registry.

Public Methods

public add_socketio(arg_server_name: string, arg_socketio: object): nothing source

Register and configure a socketio server.

Params:

NameTypeAttributeDescription
arg_server_name string

bound server name.

arg_socketio object

socketio server.

Return:

nothing

public get_context(): Context source

Get runtime context.

Return:

Context

public get_defined_topology(): TopologyDefineWorld source

Get defined topology runtime singleton.

Return:

TopologyDefineWorld

defined world topology.

public get_deployed_topology(): TopologyDeployLocalNode source

Get deployed topology runtime singleton.

Return:

TopologyDeployLocalNode

deployed local node topology.

public get_node(): Node source

Get runtime node.

Return:

Node

public get_plugins_factory(): PluginsFactory source

Get plugins factory object.

Return:

PluginsFactory

public get_registry(): object source

Get topology runtime singleton.

Return:

object

public get_uid(): string source

Get runtime unique identifier.

Return:

string

public load(arg_settings: object): object source

Load runtime settings.

Params:

NameTypeAttributeDescription
arg_settings object

runtime settings.

Return:

object

promise

public on_socketio_connect(arg_socketio: object, arg_socket: object): nothing source

On socketio server connect event.

Params:

NameTypeAttributeDescription
arg_socketio object

socketio server.

arg_socket object

client socket.

Return:

nothing

public on_socketio_disconnect(): nothing source

On socketio server disconnect event.

Return:

nothing

public security(): Security source

Get security object.

Return:

Security