Class LoadbalanceEndpointFactory

  extended by org.apache.synapse.config.xml.endpoints.EndpointFactory
      extended by org.apache.synapse.config.xml.endpoints.LoadbalanceEndpointFactory
All Implemented Interfaces:

public final class LoadbalanceEndpointFactory
extends EndpointFactory

Creates LoadbalanceEndpoint using an XML configuration.

<endpoint [name="name"]> <loadbalance policy="load balance algorithm"> <endpoint>+ <member hostName="host" httpPort="port" httpsPort="port">+ </loadbalance> </endpoint>

Field Summary
Fields inherited from class org.apache.synapse.config.xml.endpoints.EndpointFactory
Method Summary
protected  Endpoint createEndpoint(OMElement epConfig, boolean anonymousEndpoint, Properties properties)
          Creates the Endpoint implementation for the given XML endpoint configuration.
static LoadbalanceEndpointFactory getInstance()
Methods inherited from class org.apache.synapse.config.xml.endpoints.EndpointFactory
extractSpecificEndpointProperties, getEndpointDefinitionFactory, getEndpointFromElement, getEndpointFromElement, getEndpoints, getObjectFromOMNode, handleException, handleException, processProperties, setEndpointDefinitionFactory
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail


public static LoadbalanceEndpointFactory getInstance()


protected Endpoint createEndpoint(OMElement epConfig,
                                  boolean anonymousEndpoint,
                                  Properties properties)
Description copied from class: EndpointFactory
Creates the Endpoint implementation for the given XML endpoint configuration. If the endpoint configuration is an inline one, it should be an anonymous endpoint. If it is defined as an immediate child element of the definitions tag it should have a name, which is used as the key in local registry.

Specified by:
createEndpoint in class EndpointFactory
epConfig - OMElement containing the endpoint configuration.
anonymousEndpoint - false if the endpoint has a name. true otherwise.
properties - bag of properties to pass in any information to the factory
Endpoint implementation for the given configuration.

Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.