public class LoadbalancerReaderImpl extends Object implements LoadbalancerReader
ACTIVE_HEALTH_CHECK, ACTIVE_HEALTH_CHECK_VALUE, DISABLE_TIMEOUT_IN_MINUTES_VALUE, HTTPS_ROUTING, HTTPS_ROUTING_VALUE, LAST_EXPORTED, LBENABLED_VALUE, NUM_HEALTH_CHECK, NUM_HEALTH_CHECK_VALUE, PREFERRED_FAILOVER_INSTANCE, PREFERRED_FAILOVER_INSTANCE_VALUE, RELOAD_INTERVAL, RELOAD_INTERVAL_VALUE, REQ_MONITOR_DATA, REQ_MONITOR_DATA_VALUE, RESP_TIMEOUT, RESP_TIMEOUT_VALUE, REWRITE_COOKIES, REWRITE_COOKIES_VALUE, REWRITE_LOCATION, REWRITE_LOCATION_VALUE, ROUTE_COOKIE
Constructor and Description |
---|
LoadbalancerReaderImpl(Domain domain,
ApplicationRegistry appRegistry,
LbConfig lbConfig) |
LoadbalancerReaderImpl(Domain domain,
ApplicationRegistry appRegistry,
Set<String> clusters,
Properties properties) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor v)
Accepts a visitor and calls its visit
method
|
ClusterReader[] |
getClusters()
Returns the cluster info that are load balanced by this LB.
|
ClusterReader[] |
getClustersData() |
ClusterReader[] |
getClustersDataFromLBConfig() |
LbConfig |
getLbConfig()
Returns the lbconfig associated with the load balancer
|
String |
getName()
Returns the name of the load balancer
|
PropertyReader[] |
getProperties()
Returns properties of the load balancer.
|
public LoadbalancerReaderImpl(Domain domain, ApplicationRegistry appRegistry, Set<String> clusters, Properties properties)
public LoadbalancerReaderImpl(Domain domain, ApplicationRegistry appRegistry, LbConfig lbConfig)
public PropertyReader[] getProperties() throws LbReaderException
getProperties
in interface LoadbalancerReader
LbReaderException
public ClusterReader[] getClusters() throws LbReaderException
getClusters
in interface LoadbalancerReader
LbReaderException
public ClusterReader[] getClustersData() throws LbReaderException
LbReaderException
public ClusterReader[] getClustersDataFromLBConfig() throws LbReaderException
LbReaderException
public String getName() throws LbReaderException
getName
in interface LoadbalancerReader
LbReaderException
public void accept(Visitor v) throws Exception
BaseReader
accept
in interface BaseReader
Exception
public LbConfig getLbConfig()
LoadbalancerReader
getLbConfig
in interface LoadbalancerReader
Copyright © 2018. All rights reserved.