File

src/lib/extensions/load-balancer.service.ts

Index

Methods
Accessors

Constructor

constructor(zone: NgZone, config: ConfigService, mediator: MediatorService, util: UtilService, appSettings: AppSettingsService)

Constructor

Parameters :
Name Type Optional Description
zone NgZone No
config ConfigService No

ConfigService

mediator MediatorService No
util UtilService No
appSettings AppSettingsService No

Methods

Public getAllHosts
getAllHosts()

Get all hosts

Returns : Promise<any>
Public getHost
getHost()

Gets current host address.

Returns : string
Public getRequestUrl
getRequestUrl(method: string)

Get the request url for a given method.

Parameters :
Name Type Optional
method string No
Returns : string
Public setLoadBalancerTransport
setLoadBalancerTransport(transport: Transport)

Sets the transport for the load balancer

Parameters :
Name Type Optional Description
transport Transport No

Transport

Returns : void

Accessors

hostAddress
gethostAddress()

Host Address used

Returns : string
hostPort
gethostPort()

Host Port used

Returns : string

results matching ""

    No results matching ""