|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.servicemix.jbi.framework.EndpointRegistry
public class EndpointRegistry
Registry for Components
| Constructor Summary | |
|---|---|
EndpointRegistry(Registry registry)
Constructor |
|
| Method Summary | |
|---|---|
protected javax.jbi.servicedesc.ServiceEndpoint[] |
asEndpointArray(Collection<javax.jbi.servicedesc.ServiceEndpoint> collection)
Helper method to convert the given collection into an array of endpoints |
protected void |
fireEvent(javax.jbi.servicedesc.ServiceEndpoint ep,
int type)
|
javax.jbi.servicedesc.ServiceEndpoint[] |
getAllEndpointsForComponent(ComponentNameSpace cns)
|
javax.jbi.servicedesc.ServiceEndpoint |
getEndpoint(QName service,
String name)
Get the named ServiceEndpoint, if activated |
Collection<Endpoint> |
getEndpointMBeans()
Returns a collection of Endpoint objects |
protected Collection<javax.jbi.servicedesc.ServiceEndpoint> |
getEndpointsByInterface(QName interfaceName,
Collection<javax.jbi.servicedesc.ServiceEndpoint> endpoints)
Filters the given endpoints and returns those implementing the given interface name. |
protected Collection<javax.jbi.servicedesc.ServiceEndpoint> |
getEndpointsByService(QName serviceName,
Collection<javax.jbi.servicedesc.ServiceEndpoint> endpoints)
return a collection of endpoints |
javax.jbi.servicedesc.ServiceEndpoint[] |
getEndpointsForComponent(ComponentNameSpace cns)
|
javax.jbi.servicedesc.ServiceEndpoint[] |
getEndpointsForInterface(QName interfaceName)
This will return the endpoints for all services and endpoints that implement the named interface (portType in WSDL 1.1). |
javax.jbi.servicedesc.ServiceEndpoint[] |
getEndpointsForService(QName serviceName)
Get all endpoints for a given service |
protected Collection<javax.jbi.servicedesc.ServiceEndpoint> |
getExternalEndpoints()
|
javax.jbi.servicedesc.ServiceEndpoint[] |
getExternalEndpointsForInterface(QName interfaceName)
This methods returns only registered external endpoints |
javax.jbi.servicedesc.ServiceEndpoint[] |
getExternalEndpointsForService(QName serviceName)
Get external endpoints for the service |
javax.jbi.servicedesc.ServiceEndpoint |
getInternalEndpoint(QName service,
String name)
|
protected Collection<javax.jbi.servicedesc.ServiceEndpoint> |
getInternalEndpoints()
|
void |
registerEndpointConnection(QName fromSvc,
String fromEp,
QName toSvc,
String toEp,
String link)
Registers an endpoint connection. |
void |
registerExternalEndpoint(ComponentNameSpace cns,
javax.jbi.servicedesc.ServiceEndpoint externalEndpoint)
Registers the given external endpoint with the NMR. |
void |
registerInterfaceConnection(QName fromItf,
QName toSvc,
String toEp)
Registers an interface connection. |
InternalEndpoint |
registerInternalEndpoint(ComponentContextImpl provider,
QName serviceName,
String endpointName)
Activate an endpoint |
void |
registerRemoteEndpoint(InternalEndpoint remote)
Registers a remote endpoint |
void |
unregisterEndpointConnection(QName fromSvc,
String fromEp)
Unregister an endpoint connection. |
void |
unregisterExternalEndpoint(ComponentNameSpace cns,
javax.jbi.servicedesc.ServiceEndpoint externalEndpoint)
Deregisters the given external endpoint with the NMR. |
void |
unregisterInterfaceConnection(QName fromItf)
Unregisters an interface connection. |
void |
unregisterInternalEndpoint(javax.jbi.component.ComponentContext provider,
InternalEndpoint serviceEndpoint)
Called by component context when endpoints are being deactivated. |
void |
unregisterRemoteEndpoint(InternalEndpoint remote)
Unregisters a remote endpoint |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EndpointRegistry(Registry registry)
cr - | Method Detail |
|---|
public javax.jbi.servicedesc.ServiceEndpoint[] getEndpointsForComponent(ComponentNameSpace cns)
public javax.jbi.servicedesc.ServiceEndpoint[] getAllEndpointsForComponent(ComponentNameSpace cns)
public Collection<Endpoint> getEndpointMBeans()
public javax.jbi.servicedesc.ServiceEndpoint[] getEndpointsForService(QName serviceName)
serviceName -
public javax.jbi.servicedesc.ServiceEndpoint[] getEndpointsForInterface(QName interfaceName)
interfaceName - qualified name of interface/portType that is implemented by the endpoint; if
null then all activated endpoints in the JBI environment must be returned.
public InternalEndpoint registerInternalEndpoint(ComponentContextImpl provider,
QName serviceName,
String endpointName)
throws javax.jbi.JBIException
provider - serviceName - endpointName -
javax.jbi.JBIException
public void unregisterInternalEndpoint(javax.jbi.component.ComponentContext provider,
InternalEndpoint serviceEndpoint)
provider - serviceEndpoint - public void registerRemoteEndpoint(InternalEndpoint remote)
remote - public void unregisterRemoteEndpoint(InternalEndpoint remote)
remote -
public javax.jbi.servicedesc.ServiceEndpoint getEndpoint(QName service,
String name)
service - name -
public javax.jbi.servicedesc.ServiceEndpoint getInternalEndpoint(QName service,
String name)
public void registerExternalEndpoint(ComponentNameSpace cns,
javax.jbi.servicedesc.ServiceEndpoint externalEndpoint)
throws javax.jbi.JBIException
provider - externalEndpoint - the external endpoint to be registered, must be non-null.
javax.jbi.JBIException
public void unregisterExternalEndpoint(ComponentNameSpace cns,
javax.jbi.servicedesc.ServiceEndpoint externalEndpoint)
provider - externalEndpoint - the external endpoint to be deregistered; must be non-null.public javax.jbi.servicedesc.ServiceEndpoint[] getExternalEndpointsForInterface(QName interfaceName)
interfaceName - qualified name of interface implemented by the endpoints; must be non-null.
public javax.jbi.servicedesc.ServiceEndpoint[] getExternalEndpointsForService(QName serviceName)
serviceName - qualified name of service that contains the endpoints; must be non-null.
protected javax.jbi.servicedesc.ServiceEndpoint[] asEndpointArray(Collection<javax.jbi.servicedesc.ServiceEndpoint> collection)
collection -
protected Collection<javax.jbi.servicedesc.ServiceEndpoint> getEndpointsByService(QName serviceName,
Collection<javax.jbi.servicedesc.ServiceEndpoint> endpoints)
serviceName - endpoints -
protected Collection<javax.jbi.servicedesc.ServiceEndpoint> getEndpointsByInterface(QName interfaceName,
Collection<javax.jbi.servicedesc.ServiceEndpoint> endpoints)
protected Collection<javax.jbi.servicedesc.ServiceEndpoint> getInternalEndpoints()
protected Collection<javax.jbi.servicedesc.ServiceEndpoint> getExternalEndpoints()
public void registerEndpointConnection(QName fromSvc,
String fromEp,
QName toSvc,
String toEp,
String link)
throws javax.jbi.JBIException
fromSvc - fromEp - toSvc - toEp - link -
javax.jbi.JBIException
public void unregisterEndpointConnection(QName fromSvc,
String fromEp)
fromSvc - fromEp -
public void registerInterfaceConnection(QName fromItf,
QName toSvc,
String toEp)
throws javax.jbi.JBIException
fromItf - toSvc - toEp -
javax.jbi.JBIExceptionpublic void unregisterInterfaceConnection(QName fromItf)
fromItf -
protected void fireEvent(javax.jbi.servicedesc.ServiceEndpoint ep,
int type)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||