import ServiceProvider from 'devapt-core-common/js/services/service_provider.js'
ServiceProvider
Extends:
Service provider base class.
Example:
API:
->load():nothing - Load settings.
->activate(arg_application, arg_server, arg_app_svc_cfg):nothing - Activate a service feature for an application.
->produce():Promise - Produce service datas on request.
->get_host():string - Get host name of service server.
->get_port():number - Get host port of service server.
Constructor Summary
Public Constructor | ||
public |
constructor(arg_provider_name: string, arg_service_instance: Service, arg_context: string): nothing Create a service provider. |
Member Summary
Public Members | ||
public |
application: * |
|
public |
|
|
public |
|
|
public |
server: * |
|
public |
service: * |
Method Summary
Public Methods | ||
public |
Get host name of service server. |
|
public abstract |
get_operations_names(): array Get provider operations names. |
|
public |
Get host port of service server. |
|
public abstract |
load(): nothing Load settings. |
|
public |
post_to_subscriber(arg_subscriber: object, arg_stream_name: string, arg_datas: object): nothing Post streams values to one subscriber. |
|
public |
produce(arg_request: ServiceRequest): Promise Produce service datas on request. |
Public Constructors
Public Members
public application: * source
public application_server: * source
public server: * source
public service: * source
Public Methods
public post_to_subscriber(arg_subscriber: object, arg_stream_name: string, arg_datas: object): nothing source
Post streams values to one subscriber.
Return:
nothing |
public produce(arg_request: ServiceRequest): Promise source
Produce service datas on request.
Params:
Name | Type | Attribute | Description |
arg_request | ServiceRequest | service request instance. |