Reference Source
public class | source

ServersNodeFeature

Extends:

NodeFeature → ServersNodeFeature

Constructor Summary

Public Constructor
public

constructor(arg_node: Node, arg_name: string): nothing

Create a ServersNodefeature instance.

Member Summary

Public Members
public

Class type flag.

public

servers: Collection

Servers instances collection.

Method Summary

Public Methods
public

create_server(arg_type: string, arg_name: string, arg_settings: object): Server

Create a server instance on this node.

public

load(): nothing

Load Node settings.

public

start(): nothing

Starts node servers.

public

stop(): nothing

Stops node servers.

Inherited Summary

From class NodeFeature
public

Class type flag.

public

Is ready flag.

public

Feature name.

public

Node instance.

public

Get feature name.

public abstract

load(): nothing

Load Node settings.

public abstract

start(): nothing

Starts node feature.

public abstract

stop(): nothing

Stops node feature.

Public Constructors

public constructor(arg_node: Node, arg_name: string): nothing source

Create a ServersNodefeature instance.

Override:

NodeFeature#constructor

Params:

NameTypeAttributeDescription
arg_node Node

node instance.

arg_name string

feature name.

Return:

nothing

Public Members

public is_servers_node_feature: boolean source

Class type flag.

public servers: Collection source

Servers instances collection.

Public Methods

public create_server(arg_type: string, arg_name: string, arg_settings: object): Server source

Create a server instance on this node.

Params:

NameTypeAttributeDescription
arg_type string

server type string

arg_name string

server name string

arg_settings object

server settings object

Return:

Server

a new Server instance

public load(): nothing source

Load Node settings.

Override:

NodeFeature#load

Return:

nothing

public start(): nothing source

Starts node servers.

Override:

NodeFeature#start

Return:

nothing

public stop(): nothing source

Stops node servers.

Override:

NodeFeature#stop

Return:

nothing