| java.lang.Object org.apache.servicemix.jbi.framework.EndpointRegistry
EndpointRegistry | public class EndpointRegistry (Code) | | Registry for Components
version: $Revision: 564900 $ |
Method Summary | |
protected ServiceEndpoint[] | asEndpointArray(Collection<ServiceEndpoint> collection) | protected void | fireEvent(ServiceEndpoint ep, int type) | public ServiceEndpoint[] | getAllEndpointsForComponent(ComponentNameSpace cns) | public ServiceEndpoint | getEndpoint(QName service, String name) | public Collection<Endpoint> | getEndpointMBeans() | protected Collection<ServiceEndpoint> | getEndpointsByInterface(QName interfaceName, Collection<ServiceEndpoint> endpoints) Filters the given endpoints and returns those implementing the
given interface name. | protected Collection<ServiceEndpoint> | getEndpointsByService(QName serviceName, Collection<ServiceEndpoint> endpoints) | public ServiceEndpoint[] | getEndpointsForComponent(ComponentNameSpace cns) | public ServiceEndpoint[] | getEndpointsForInterface(QName interfaceName) This will return the endpoints for all services and endpoints that implement the named interface (portType in
WSDL 1.1). | public ServiceEndpoint[] | getEndpointsForService(QName serviceName) | protected Collection<ServiceEndpoint> | getExternalEndpoints() | public ServiceEndpoint[] | getExternalEndpointsForInterface(QName interfaceName) This methods returns only registered external endpoints
Parameters: interfaceName - qualified name of interface implemented by the endpoints; must be non-null. | public ServiceEndpoint[] | getExternalEndpointsForService(QName serviceName) Get external endpoints for the service
Parameters: serviceName - qualified name of service that contains the endpoints; must be non-null. | public ServiceEndpoint | getInternalEndpoint(QName service, String name) | protected Collection<ServiceEndpoint> | getInternalEndpoints() | public void | registerEndpointConnection(QName fromSvc, String fromEp, QName toSvc, String toEp, String link) Registers an endpoint connection. | public void | registerExternalEndpoint(ComponentNameSpace cns, ServiceEndpoint externalEndpoint) Registers the given external endpoint with the NMR. | public void | registerInterfaceConnection(QName fromItf, QName toSvc, String toEp) Registers an interface connection. | public InternalEndpoint | registerInternalEndpoint(ComponentContextImpl provider, QName serviceName, String endpointName) | public void | registerRemoteEndpoint(InternalEndpoint remote) | public void | unregisterEndpointConnection(QName fromSvc, String fromEp) Unregister an endpoint connection. | public void | unregisterExternalEndpoint(ComponentNameSpace cns, ServiceEndpoint externalEndpoint) Deregisters the given external endpoint with the NMR. | public void | unregisterInterfaceConnection(QName fromItf) Unregisters an interface connection. | public void | unregisterInternalEndpoint(ComponentContext provider, InternalEndpoint serviceEndpoint) Called by component context when endpoints are being deactivated. | public void | unregisterRemoteEndpoint(InternalEndpoint remote) |
EndpointRegistry | public EndpointRegistry(Registry registry)(Code) | | Constructor
Parameters: cr - |
getEndpoint | public ServiceEndpoint getEndpoint(QName service, String name)(Code) | | Get the named ServiceEndpoint, if activated
Parameters: service - Parameters: name - the activated ServiceEndpoint or null |
getEndpointsForInterface | public ServiceEndpoint[] getEndpointsForInterface(QName interfaceName)(Code) | | This will return the endpoints for all services and endpoints that implement the named interface (portType in
WSDL 1.1). This method does NOT include external endpoints.
Parameters: interfaceName - qualified name of interface/portType that is implemented by the endpoint; ifnull then all activated endpoints in the JBI environment must be returned. an array of available endpoints for the specified interface name; must be non-null; may be empty. |
getEndpointsForService | public ServiceEndpoint[] getEndpointsForService(QName serviceName)(Code) | | Get all endpoints for a given service
Parameters: serviceName - array of endpoints |
getExternalEndpointsForInterface | public ServiceEndpoint[] getExternalEndpointsForInterface(QName interfaceName)(Code) | | This methods returns only registered external endpoints
Parameters: interfaceName - qualified name of interface implemented by the endpoints; must be non-null. an array of available external endpoints for the specified interface name; must be non-null; may beempty. |
getExternalEndpointsForService | public ServiceEndpoint[] getExternalEndpointsForService(QName serviceName)(Code) | | Get external endpoints for the service
Parameters: serviceName - qualified name of service that contains the endpoints; must be non-null. an array of available external endpoints for the specified service name; must be non-null; may be empty. |
registerEndpointConnection | public void registerEndpointConnection(QName fromSvc, String fromEp, QName toSvc, String toEp, String link) throws JBIException(Code) | | Registers an endpoint connection.
Parameters: fromSvc - Parameters: fromEp - Parameters: toSvc - Parameters: toEp - Parameters: link - throws: JBIException - |
registerExternalEndpoint | public void registerExternalEndpoint(ComponentNameSpace cns, ServiceEndpoint externalEndpoint) throws JBIException(Code) | | Registers the given external endpoint with the NMR. This indicates to the NMR that the given endpoint is used as
a proxy for external service consumers to access an internal service of the same service name (but a different
endpoint name).
Parameters: provider - Parameters: externalEndpoint - the external endpoint to be registered, must be non-null. throws: JBIException - |
registerInterfaceConnection | public void registerInterfaceConnection(QName fromItf, QName toSvc, String toEp) throws JBIException(Code) | | Registers an interface connection.
Parameters: fromItf - Parameters: toSvc - Parameters: toEp - throws: JBIException - |
registerRemoteEndpoint | public void registerRemoteEndpoint(InternalEndpoint remote)(Code) | | Registers a remote endpoint
Parameters: remote - |
unregisterEndpointConnection | public void unregisterEndpointConnection(QName fromSvc, String fromEp)(Code) | | Unregister an endpoint connection.
Parameters: fromSvc - Parameters: fromEp - |
unregisterExternalEndpoint | public void unregisterExternalEndpoint(ComponentNameSpace cns, ServiceEndpoint externalEndpoint)(Code) | | Deregisters the given external endpoint with the NMR. This indicates to the NMR that the given external endpoint
can no longer be used as a proxy for external service consumers to access an internal service of the same service
name.
Parameters: provider - Parameters: externalEndpoint - the external endpoint to be deregistered; must be non-null. |
unregisterInterfaceConnection | public void unregisterInterfaceConnection(QName fromItf)(Code) | | Unregisters an interface connection.
Parameters: fromItf - |
unregisterInternalEndpoint | public void unregisterInternalEndpoint(ComponentContext provider, InternalEndpoint serviceEndpoint)(Code) | | Called by component context when endpoints are being deactivated.
Parameters: provider - Parameters: serviceEndpoint - |
unregisterRemoteEndpoint | public void unregisterRemoteEndpoint(InternalEndpoint remote)(Code) | | Unregisters a remote endpoint
Parameters: remote - |
|
|