org.apache.stratos.lb.common.service
Interface LoadBalancerConfigurationService

All Known Implementing Classes:
LoadBalancerConfigurationServiceImpl

public interface LoadBalancerConfigurationService

This service provides a way to consume details in loadbalancer.conf file. Also to update the runtime object model of loadbalancer conf.


Method Summary
 Object getHostContexts(String config)
          Return a Map of HostContext objects, built using the given configuration.
 Object getLoadBalancerConfig()
          Provides a reference to the runtime object model of loadbalancer.conf
 

Method Detail

getLoadBalancerConfig

Object getLoadBalancerConfig()
Provides a reference to the runtime object model of loadbalancer.conf

Returns:
Object which is an instance of LoadBalancerConfiguration

getHostContexts

Object getHostContexts(String config)
Return a Map of HostContext objects, built using the given configuration.

Parameters:
config - service configuration diff. This can be in following format.

appserver { hosts appserver.cloud-test.wso2.com; domains { wso2.as1.domain { tenant_range 1-100; } wso2.as2.domain { tenant_range 101-200; } wso2.as3.domain { tenant_range *; } } }

esb { hosts esb.cloud-test.wso2.com; domains { wso2.esb.domain { tenant_range *; } } }

Returns:
a Map of HostContext objects. key - host name Value - HostContext


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.