Reference Source
public class | source

TopologySvcHostConsumer

Extends:

js/services/base/service_consumer.js~ServiceConsumer → TopologySvcHostConsumer

Service consumer class.

Constructor Summary

Public Constructor
public

constructor(arg_consumer_name: string, arg_service_instance: Service, arg_context: string): nothing

Create a service consumer.

Method Summary

Public Methods
public

consume_local(arg_provider: object): object

Consume a service on the same host.

public

consume_remote(arg_provider: object, arg_routes: array): object

Consume a service on a remote host

public

prepare_args(arg_operands: *): array

Enhance operands if needed

Public Constructors

public constructor(arg_consumer_name: string, arg_service_instance: Service, arg_context: string): nothing source

Create a service consumer.

Params:

NameTypeAttributeDescription
arg_consumer_name string

consumer name

arg_service_instance Service

service instance

arg_context string

logging context label

Return:

nothing

Public Methods

public consume_local(arg_provider: object): object source

Consume a service on the same host.

Params:

NameTypeAttributeDescription
arg_provider object

service provider

Return:

object

a promise of results

public consume_remote(arg_provider: object, arg_routes: array): object source

Consume a service on a remote host

Params:

NameTypeAttributeDescription
arg_provider object

service provider

arg_routes array

Routes to request

Return:

object

a promise of results

public prepare_args(arg_operands: *): array source

Enhance operands if needed

Params:

NameTypeAttributeDescription
arg_operands *

Return:

array

not used