org.apache.synapse.endpoints
Class IndirectEndpoint

java.lang.Object
  extended by org.apache.synapse.FaultHandler
      extended by org.apache.synapse.endpoints.AbstractEndpoint
          extended by org.apache.synapse.endpoints.IndirectEndpoint
All Implemented Interfaces:
Endpoint, ManagedLifecycle, Nameable, PropertyInclude, SynapseArtifact

public class IndirectEndpoint
extends AbstractEndpoint

This class represents a real endpoint referred by a key. An Indirect endpoint does not really have a life, but merely acts as a virtual endpoint for the actual endpoint referred.


Field Summary
 
Fields inherited from class org.apache.synapse.endpoints.AbstractEndpoint
anonymous, errorHandler, fileName, initialized, isClusteringEnabled, log, trace
 
Constructor Summary
IndirectEndpoint()
           
 
Method Summary
 List<Endpoint> getChildren()
          Get the children of this endpoint
 EndpointContext getContext()
          Get the EndpointContext that has the run-time state of this endpoint
 String getKey()
           
 EndpointView getMetricsMBean()
          Get a reference to the metrics MBean for this endpoint
 void init(SynapseEnvironment synapseEnvironment)
          This method should implement the initialization of the implemented parts of the configuration.
 boolean readyToSend()
          Returns true to indicate that the endpoint is ready to service requests
 void send(MessageContext synCtx)
          Send by calling to the real endpoint
 void setKey(String key)
           
 void setName(String endpointName)
          Set the name of an abstraction
 String toString()
           
 
Methods inherited from class org.apache.synapse.endpoints.AbstractEndpoint
addProperties, addProperty, destroy, evaluateProperties, getDefinition, getDescription, getErrorHandler, getFileName, getName, getParentEndpoint, getProperties, getProperty, handleException, handleException, informFailure, isAnonymous, isInitialized, isLeafEndpoint, isRetryDisabled, isSuspendFault, isTimeout, isTraceOn, isTraceOrDebugOn, logOnChildEndpointFail, onChildEndpointFail, onFault, onSuccess, prepareForEndpointStatistics, removeProperty, setAnonymous, setChildren, setDefinition, setDescription, setEnableMBeanStats, setErrorHandler, setErrorOnMessage, setFileName, setParentEndpoint, traceOrDebug
 
Methods inherited from class org.apache.synapse.FaultHandler
getStackTrace, handleFault, handleFault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IndirectEndpoint

public IndirectEndpoint()
Method Detail

send

public void send(MessageContext synCtx)
Send by calling to the real endpoint

Specified by:
send in interface Endpoint
Overrides:
send in class AbstractEndpoint
Parameters:
synCtx - the message to send

getKey

public String getKey()

setKey

public void setKey(String key)

readyToSend

public boolean readyToSend()
Description copied from interface: Endpoint
Returns true to indicate that the endpoint is ready to service requests

Specified by:
readyToSend in interface Endpoint
Overrides:
readyToSend in class AbstractEndpoint
Returns:
true if endpoint is ready to service requests

setName

public void setName(String endpointName)
Description copied from interface: Nameable
Set the name of an abstraction

Specified by:
setName in interface Nameable
Overrides:
setName in class AbstractEndpoint
Parameters:
endpointName - String Representation of name

getContext

public EndpointContext getContext()
Description copied from interface: Endpoint
Get the EndpointContext that has the run-time state of this endpoint

Specified by:
getContext in interface Endpoint
Overrides:
getContext in class AbstractEndpoint
Returns:
the runtime context

getChildren

public List<Endpoint> getChildren()
Description copied from interface: Endpoint
Get the children of this endpoint

Specified by:
getChildren in interface Endpoint
Overrides:
getChildren in class AbstractEndpoint
Returns:
the child endpoints

getMetricsMBean

public EndpointView getMetricsMBean()
Description copied from interface: Endpoint
Get a reference to the metrics MBean for this endpoint

Specified by:
getMetricsMBean in interface Endpoint
Overrides:
getMetricsMBean in class AbstractEndpoint
Returns:
EndpointView instance

init

public void init(SynapseEnvironment synapseEnvironment)
Description copied from interface: ManagedLifecycle
This method should implement the initialization of the implemented parts of the configuration.

Specified by:
init in interface ManagedLifecycle
Overrides:
init in class AbstractEndpoint
Parameters:
synapseEnvironment - SynapseEnvironment to be used for initialization

toString

public String toString()
Overrides:
toString in class AbstractEndpoint


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