org.apache.servicemix.jbi.servicedesc
Class InternalEndpoint

java.lang.Object
  extended by org.apache.servicemix.jbi.servicedesc.AbstractServiceEndpoint
      extended by org.apache.servicemix.jbi.servicedesc.InternalEndpoint
All Implemented Interfaces:
Serializable, javax.jbi.servicedesc.ServiceEndpoint

public class InternalEndpoint
extends AbstractServiceEndpoint

Reference generated by NMR to refer to an endpoint registration

Version:
$Revision: 564900 $
See Also:
Serialized Form

Constructor Summary
InternalEndpoint(ComponentNameSpace componentName, String endpointName, QName serviceName)
          Constructor
 
Method Summary
 void addInterface(QName name)
          Add an interface
 void addRemoteEndpoint(InternalEndpoint remote)
           
 boolean equals(Object obj)
           
 DocumentFragment getAsReference(QName operationName)
          Get a reference to this endpoint, using an endpoint reference vocabulary that is known to the provider.
protected  String getClassifier()
           
 String getEndpointName()
          Returns the name of this endpoint.
 QName[] getInterfaces()
          Get the qualified names of all the interfaces implemented by this service endpoint.
 InternalEndpoint[] getRemoteEndpoints()
          Retrieve all remote component namespaces where this endpoint is activated
 QName getServiceName()
          Returns the service name of this endpoint.
 int hashCode()
           
 boolean isClustered()
          Check if the endpoint is remotely activated
 boolean isLocal()
          Check if this endpoint is locally activated
 void removeRemoteEndpoint(InternalEndpoint remote)
           
 String toString()
           
 
Methods inherited from class org.apache.servicemix.jbi.servicedesc.AbstractServiceEndpoint
getComponentNameSpace, getKey, getUniqueKey, setComponentName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InternalEndpoint

public InternalEndpoint(ComponentNameSpace componentName,
                        String endpointName,
                        QName serviceName)
Constructor

Parameters:
componentName -
endpointName -
serviceName -
Method Detail

getAsReference

public DocumentFragment getAsReference(QName operationName)
Get a reference to this endpoint, using an endpoint reference vocabulary that is known to the provider.

Parameters:
operationName - the name of the operation to be performed by a consumer of the generated endpoint reference. Set to null if this is not applicable.
Returns:
endpoint reference as an XML fragment; null if the provider does not support such references.

getEndpointName

public String getEndpointName()
Returns the name of this endpoint.

Returns:
the endpoint name.

getInterfaces

public QName[] getInterfaces()
Get the qualified names of all the interfaces implemented by this service endpoint.

Returns:
array of all interfaces implemented by this service endpoint; must be non-null and non-empty.

addInterface

public void addInterface(QName name)
Add an interface

Parameters:
name -

getServiceName

public QName getServiceName()
Returns the service name of this endpoint.

Returns:
the qualified service name.

getRemoteEndpoints

public InternalEndpoint[] getRemoteEndpoints()
Retrieve all remote component namespaces where this endpoint is activated

Returns:
component namespaces

addRemoteEndpoint

public void addRemoteEndpoint(InternalEndpoint remote)

removeRemoteEndpoint

public void removeRemoteEndpoint(InternalEndpoint remote)

isLocal

public boolean isLocal()
Check if this endpoint is locally activated

Returns:
true if the endpoint has been activated locally

isClustered

public boolean isClustered()
Check if the endpoint is remotely activated

Returns:
true if the endpoint has been remotely activated

equals

public boolean equals(Object obj)
Overrides:
equals in class Object
Parameters:
obj -
Returns:
true if equal

hashCode

public int hashCode()
Overrides:
hashCode in class Object
Returns:
has code

toString

public String toString()
Overrides:
toString in class Object
Returns:
a pretty print of this

getClassifier

protected String getClassifier()
Specified by:
getClassifier in class AbstractServiceEndpoint


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