Reference Source
public class | source

PingSvcProvider

Extends:

devapt-core-common/dist/js/services/service_provider~ServiceProvider → PingSvcProvider

Ping service provider class.

Constructor Summary

Public Constructor
public

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

Create a ping service provider.

Member Summary

Public Members
public

Class test flag.

Method Summary

Public Methods
public

fill_error(arg_response: ServiceResponse, arg_operands: array, arg_error: string, arg_target: string): nothing

Populate a response with error message.

public abstract

Get provider operations names.

public

produce(arg_request: ServiceRequest): Promise

Produce service datas on request.

Public Constructors

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

Create a ping service provider.

Params:

NameTypeAttributeDescription
arg_provider_name string

consumer name.

arg_service_instance Service

service instance.

arg_context string

logging context label.

Return:

nothing

Public Members

public is_ping_svc_provider: boolean source

Class test flag.

Public Methods

public fill_error(arg_response: ServiceResponse, arg_operands: array, arg_error: string, arg_target: string): nothing source

Populate a response with error message.

Params:

NameTypeAttributeDescription
arg_response ServiceResponse

response instance.

arg_operands array

request operands.

arg_error string

error text.

arg_target string

target name.

Return:

nothing

public abstract get_operations_names(): array source

Get provider operations names.

Return:

array

public produce(arg_request: ServiceRequest): Promise source

Produce service datas on request.

Params:

NameTypeAttributeDescription
arg_request ServiceRequest

service request instance.

Return:

Promise

promise of ServiceResponse instance.