|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EndpointRegistry
This class is used to manage everything that deals with endpoint in the distributed environment
| Field Summary |
|---|
| Fields inherited from interface org.ow2.petals.jbi.messaging.registry.EndpointRegistryMBean |
|---|
KEY_COMPONENT_NAME, KEY_CONTAINER_NAME, KEY_ENDPOINT_NAME, KEY_INTERFACE_NAMES, KEY_SERVICE_NAME, KEY_TYPE, TYPE_EXTERNAL, TYPE_INTERNAL, UNDEFINED |
| Method Summary | |
|---|---|
ServiceEndpoint |
activateEndpoint(javax.xml.namespace.QName serviceName,
java.lang.String endpointName,
java.util.List<javax.xml.namespace.QName> interfaces,
org.w3c.dom.Document description,
ServiceEndpoint address)
Register an endpoint in the endpoints registry. |
void |
deactivateEndpoint(java.lang.String endpointName,
javax.xml.namespace.QName serviceName)
Deactivates the local given endpoint. |
void |
deregisterConnection(javax.xml.namespace.QName consInterface,
javax.xml.namespace.QName provService,
java.lang.String provEndpoint)
Delete a connection |
void |
deregisterConnection(javax.xml.namespace.QName consService,
java.lang.String consEndpoint,
javax.xml.namespace.QName provService,
java.lang.String provEndpoint)
Delete a connection |
void |
deregisterExternalEndpoint(java.lang.String endpointName,
javax.xml.namespace.QName serviceName)
Deregister external endpoint |
ServiceEndpoint |
getEndpoint(javax.xml.namespace.QName service,
java.lang.String name)
Get the service endpoint for the named activated endpoint, if any. |
org.w3c.dom.Document |
getEndpointDescriptorForEndpoint(ServiceEndpoint endpoint)
Return the descriptor for a specified endpoint. |
java.util.List<ServiceEndpoint> |
getEndpoints()
|
java.util.List<ServiceEndpoint> |
getExternalEndpoints()
|
ServiceEndpoint[] |
getExternalEndpointsForInterface(javax.xml.namespace.QName interfaceName)
Queries the registry for external endpoints that implements the given interface name |
ServiceEndpoint[] |
getExternalEndpointsForService(javax.xml.namespace.QName serviceName)
Queries the registry for external endpoints that are part of the given service name |
javax.xml.namespace.QName[] |
getInterfacesForEndpoint(ServiceEndpoint endpoint)
Return the interfaces for the specified endpoint. |
java.util.List<ServiceEndpoint> |
getInternalEndpoints()
|
ServiceEndpoint[] |
getInternalEndpointsForInterface(javax.xml.namespace.QName interfaceName,
org.ow2.petals.jbi.descriptor.original.generated.LinkType linktype)
Queries the registry for active endpoints that implements the given interface, according to the link type. |
ServiceEndpoint[] |
getInternalEndpointsForService(javax.xml.namespace.QName serviceName,
org.ow2.petals.jbi.descriptor.original.generated.LinkType linktype)
Queries the registry for active endpoints belonging to the given service, according to the link type. |
java.util.List<RegistryListener> |
getListeners()
Get the list of registry listeners. |
java.util.List<ServiceEndpoint> |
query(java.lang.String endpoint,
javax.xml.namespace.QName itf,
javax.xml.namespace.QName service,
java.lang.String containerName,
java.lang.String componentName,
java.lang.String subDomainName,
java.lang.String type)
|
void |
registerConnection(javax.xml.namespace.QName consInterface,
javax.xml.namespace.QName provService,
java.lang.String provEndpoint)
Register a connection |
void |
registerConnection(javax.xml.namespace.QName consService,
java.lang.String consEndpoint,
javax.xml.namespace.QName provService,
java.lang.String provEndpoint)
Register a connection |
void |
registerExternalEndpoint(javax.jbi.servicedesc.ServiceEndpoint serviceEndpoint)
Register this given external endpoint |
void |
removeAllLocalEndpoints()
Remove all the local endpoints. |
| Methods inherited from interface org.ow2.petals.jbi.messaging.registry.EndpointRegistryMBean |
|---|
getAllEndpoints, getAllExternalEndpoints, getAllInternalEndpoints, getDescription |
| Methods inherited from interface org.ow2.petals.jbi.messaging.registry.RegistryManagement |
|---|
synchronizeData |
| Method Detail |
|---|
java.util.List<RegistryListener> getListeners()
java.util.List<ServiceEndpoint> getInternalEndpoints()
throws RegistryException
RegistryException
java.util.List<ServiceEndpoint> getExternalEndpoints()
throws RegistryException
RegistryException
java.util.List<ServiceEndpoint> getEndpoints()
throws RegistryException
RegistryException
ServiceEndpoint activateEndpoint(javax.xml.namespace.QName serviceName,
java.lang.String endpointName,
java.util.List<javax.xml.namespace.QName> interfaces,
org.w3c.dom.Document description,
ServiceEndpoint address)
throws EndpointAlreadyExistsException,
RegistryException
serviceName - Endpoint service name.endpointName - Endpoint nameinterfaces - Endpoint interfacesdescription - Endpoint WSDLaddress -
ServiceEndpoint associated to the registered endpoint.
EndpointAlreadyExistsException - The endpoint is already registered.
RegistryException
void deactivateEndpoint(java.lang.String endpointName,
javax.xml.namespace.QName serviceName)
throws RegistryException
javax.jbi.JBIException - if the endpoint cannot be deactivated
RegistryException
void registerExternalEndpoint(javax.jbi.servicedesc.ServiceEndpoint serviceEndpoint)
throws RegistryException
externalEndpoint - the external endpoint to be registered; must be non null
javax.jbi.JBIException - if an external endpoint wit the same name is already
registered
RegistryException
void deregisterExternalEndpoint(java.lang.String endpointName,
javax.xml.namespace.QName serviceName)
throws RegistryException
endpoint - external to be deregistered; must be non null
javax.jbi.JBIException - if the endpoint cannot be deregistered
RegistryException
void registerConnection(javax.xml.namespace.QName consInterface,
javax.xml.namespace.QName provService,
java.lang.String provEndpoint)
throws RegistryException
consInterface - consumer interface name; must be non nullprovService - provider service name; must be non nullprovEndpoint - provider endpoint name; must be non null
javax.jbi.JBIException - if a problem occurs in the registry
RegistryException
void registerConnection(javax.xml.namespace.QName consService,
java.lang.String consEndpoint,
javax.xml.namespace.QName provService,
java.lang.String provEndpoint)
throws RegistryException
consService - consumer service name; must be non nullconsEndpoint - consumer endpoint name; must be non nullprovService - provider service name; must be non nullprovEndpoint - provider endpoint name; must be non null
javax.jbi.JBIException - if a problem occurs in the registry
RegistryException
void deregisterConnection(javax.xml.namespace.QName consInterface,
javax.xml.namespace.QName provService,
java.lang.String provEndpoint)
throws RegistryException
consInterface - consumer interface name; must be non nullprovService - provider service name; must be non nullprovEndpoint - provider endpoint name; must be non null
javax.jbi.JBIException - if the connection can not be deleted
RegistryException
void deregisterConnection(javax.xml.namespace.QName consService,
java.lang.String consEndpoint,
javax.xml.namespace.QName provService,
java.lang.String provEndpoint)
throws RegistryException
consService - consumer service name; must be non nullconsEndpoint - consumer endpoint name; must be non nullprovService - provider service name; must be non nullprovEndpoint - provider endpoint name; must be non null
javax.jbi.JBIException - if the connection can not be deleted
RegistryException
org.w3c.dom.Document getEndpointDescriptorForEndpoint(ServiceEndpoint endpoint)
throws RegistryException
endpoint - endpoint on which we want to retrieve the descriptor; must be
non null
RegistryExceptionjavax.xml.namespace.QName[] getInterfacesForEndpoint(ServiceEndpoint endpoint)
endpoint - endpoint on which we want to retrieve the interface names;
must be non null and not a connection endpoint
ServiceEndpoint[] getInternalEndpointsForInterface(javax.xml.namespace.QName interfaceName,
org.ow2.petals.jbi.descriptor.original.generated.LinkType linktype)
throws RegistryException
interfaceName - qualified interface/portType that is implemented by the
endpoints; if null then all activated endpoints in the JBI
environment must be returned
RegistryException
ServiceEndpoint[] getInternalEndpointsForService(javax.xml.namespace.QName serviceName,
org.ow2.petals.jbi.descriptor.original.generated.LinkType linktype)
throws RegistryException
serviceName - qualified name of the service that the endpoints are part of;
must be non null
RegistryException
ServiceEndpoint[] getExternalEndpointsForInterface(javax.xml.namespace.QName interfaceName)
throws RegistryException
interfaceName - qualified name of interface implemented by the endpoints; can
be null
RegistryException
ServiceEndpoint[] getExternalEndpointsForService(javax.xml.namespace.QName serviceName)
throws RegistryException
serviceName - qualified name of service that contains endpoints; must be non
null
RegistryException
ServiceEndpoint getEndpoint(javax.xml.namespace.QName service,
java.lang.String name)
throws RegistryException
service - qualified name of the endpoint's service; must be non nullname - name of the endpoint; must be non null
RegistryException
java.util.List<ServiceEndpoint> query(java.lang.String endpoint,
javax.xml.namespace.QName itf,
javax.xml.namespace.QName service,
java.lang.String containerName,
java.lang.String componentName,
java.lang.String subDomainName,
java.lang.String type)
throws RegistryException
endpoint - interfaces - service - containerName - componentName - subDomainName - type -
RegistryException
void removeAllLocalEndpoints()
throws RegistryException
RegistryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||