public interface EndpointDirectoryService extends EndpointDirectoryMBean
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_LOGGER_NAME |
static String |
CONTAINER_FRACTAL_ITF_NAME
The name of the client interface of the component for the
configuration service.
|
static String |
FRACTAL_SRV_ITF_NAME
Name of the server interface of the Fractal component
|
static String |
SHARED_AREA_FRACTAL_ITF_NAME
The name of the client interface of the component for the
shared area service.
|
Modifier and Type | Method and Description |
---|---|
org.ow2.petals.jbi.servicedesc.endpoint.PetalsServiceEndpoint |
activateEndpoint(QName serviceName,
String endpointName,
QName[] interfaces,
Document description,
org.ow2.petals.jbi.servicedesc.endpoint.Location location,
boolean canOverwrite)
Register an endpoint in the endpoint directory.
|
void |
deactivateEndpoint(String endpointName,
QName serviceName)
Deactivates the local given endpoint.
|
void |
deregisterConnection(QName consInterface,
QName provService,
String provEndpoint)
Delete a connection
TODO service connection they must be restricted to a given SA, see PETALSESBCONT-391
|
void |
deregisterConnection(QName consService,
String consEndpoint,
QName provService,
String provEndpoint)
Delete a connection
TODO service connection they must be restricted to a given SA, see PETALSESBCONT-391
|
void |
deregisterExternalEndpoint(javax.jbi.servicedesc.ServiceEndpoint externalEndpoint)
Deregister external endpoint
|
Document |
getDescription(javax.jbi.servicedesc.ServiceEndpoint endpoint)
Returns the ServiceEndpoint description as a DOM Document
|
org.ow2.petals.jbi.servicedesc.endpoint.PetalsServiceEndpoint |
getEndpoint(QName service,
String name)
Get the service endpoint for the named internal or external endpoint, if any.
|
Collection<org.ow2.petals.jbi.servicedesc.endpoint.PetalsServiceEndpoint> |
getEndpoints()
Get all endpoints activated, including external endpoints.
|
org.ow2.petals.jbi.servicedesc.endpoint.PetalsServiceEndpoint |
getExternalEndpoint(QName service,
String name)
Get the service endpoint for the named registered external endpoint, if any.
|
Collection<org.ow2.petals.jbi.servicedesc.endpoint.PetalsServiceEndpoint> |
getExternalEndpoints() |
Collection<org.ow2.petals.jbi.servicedesc.endpoint.PetalsServiceEndpoint> |
getExternalEndpointsForInterface(QName interfaceName)
Queries the registry for external endpoints that implements the given interface name
|
Collection<org.ow2.petals.jbi.servicedesc.endpoint.PetalsServiceEndpoint> |
getExternalEndpointsForService(QName serviceName)
Queries the registry for external endpoints that are part of the given service name
|
org.ow2.petals.jbi.servicedesc.endpoint.PetalsServiceEndpoint |
getInternalEndpoint(QName service,
String name)
Get the service endpoint for the named activated endpoint, if any.
|
Collection<org.ow2.petals.jbi.servicedesc.endpoint.PetalsServiceEndpoint> |
getInternalEndpoints() |
Collection<org.ow2.petals.jbi.servicedesc.endpoint.PetalsServiceEndpoint> |
getInternalEndpointsForInterface(QName interfaceName)
Queries the registry for active endpoints that implements the given interface, according to the link type.
|
Collection<org.ow2.petals.jbi.servicedesc.endpoint.PetalsServiceEndpoint> |
getInternalEndpointsForService(QName serviceName)
Queries the registry for active endpoints belonging to the given service, according to the link type.
|
void |
registerConnection(QName consInterface,
QName provService,
String provEndpoint)
Register a connection
TODO service connection they must be restricted to a given SA, see PETALSESBCONT-391
|
void |
registerConnection(QName consService,
String consEndpoint,
QName provService,
String provEndpoint)
Register a connection
TODO service connection they must be restricted to a given SA, see PETALSESBCONT-391
|
void |
registerExternalEndpoint(javax.jbi.servicedesc.ServiceEndpoint serviceEndpoint,
org.ow2.petals.jbi.servicedesc.endpoint.Location location,
Document document,
boolean canOverwrite)
Register this given external endpoint
Note: If the endpoint already exists and
canOverwrite is set to true , it is
overridden. |
javax.jbi.servicedesc.ServiceEndpoint |
resolveEndpointReference(DocumentFragment epr) |
getAllEndpoints, getAllExternalEndpoints, getAllInternalEndpoints
static final String COMPONENT_LOGGER_NAME
static final String FRACTAL_SRV_ITF_NAME
static final String SHARED_AREA_FRACTAL_ITF_NAME
static final String CONTAINER_FRACTAL_ITF_NAME
Collection<org.ow2.petals.jbi.servicedesc.endpoint.PetalsServiceEndpoint> getInternalEndpoints() throws org.ow2.petals.clientserverapi.jbi.messaging.endpoint.exception.EndpointDirectoryException
org.ow2.petals.clientserverapi.jbi.messaging.endpoint.exception.EndpointDirectoryException
Collection<org.ow2.petals.jbi.servicedesc.endpoint.PetalsServiceEndpoint> getExternalEndpoints() throws org.ow2.petals.clientserverapi.jbi.messaging.endpoint.exception.EndpointDirectoryException
org.ow2.petals.clientserverapi.jbi.messaging.endpoint.exception.EndpointDirectoryException
org.ow2.petals.jbi.servicedesc.endpoint.PetalsServiceEndpoint activateEndpoint(QName serviceName, String endpointName, QName[] interfaces, Document description, org.ow2.petals.jbi.servicedesc.endpoint.Location location, boolean canOverwrite) throws org.ow2.petals.clientserverapi.jbi.messaging.endpoint.exception.EndpointDirectoryException
Register an endpoint in the endpoint directory.
Note: If the endpoint already exists andcanOverwrite
is set to true
, it is
overridden. Otherwise the error EndpointAlreadyExistsException
will occur. The overwriting is required by
the recovering service.serviceName
- Endpoint service name.endpointName
- Endpoint nameinterfaces
- Endpoint interfacesdescription
- Endpoint WSDLlocation
- canOverwrite
- If set to true
, if the endpoint already exists, it will be overwritten, otherwise the
error EndpointAlreadyExistsException
is thrown.PetalsServiceEndpoint
associated to the registered endpoint.EndpointAlreadyExistsException
- The endpoint already exists, and canOverwrite
is not set to true
.org.ow2.petals.clientserverapi.jbi.messaging.endpoint.exception.EndpointDirectoryException
- An error occurs activating the endpointvoid deactivateEndpoint(String endpointName, QName serviceName) throws org.ow2.petals.clientserverapi.jbi.messaging.endpoint.exception.EndpointDirectoryException
endpointName
- Endpoint name. Not null.serviceName
- Endpoint service name. Not null.EndpointDoesNotExistsException
- The endpoint is not activated.org.ow2.petals.clientserverapi.jbi.messaging.endpoint.exception.EndpointDirectoryException
- if the endpoint cannot be deactivatedvoid registerExternalEndpoint(javax.jbi.servicedesc.ServiceEndpoint serviceEndpoint, org.ow2.petals.jbi.servicedesc.endpoint.Location location, Document document, boolean canOverwrite) throws org.ow2.petals.clientserverapi.jbi.messaging.endpoint.exception.EndpointDirectoryException
canOverwrite
is set to true
, it is
overridden. Otherwise the error EndpointAlreadyExistsException
will occur. The overwriting is required by
the recovering service.externalEndpoint
- the external endpoint to be registered; must be non nullEndpointAlreadyExistsException
- The endpoint already exists, and canOverwrite
is not set to true
.org.ow2.petals.clientserverapi.jbi.messaging.endpoint.exception.EndpointDirectoryException
- if the external endpoint cannot be registeredvoid deregisterExternalEndpoint(javax.jbi.servicedesc.ServiceEndpoint externalEndpoint) throws org.ow2.petals.clientserverapi.jbi.messaging.endpoint.exception.EndpointDirectoryException
endpoint
- external to be deregistered; must be non nullEndpointDoesNotExistsException
- The endpoint is not registered.org.ow2.petals.clientserverapi.jbi.messaging.endpoint.exception.EndpointDirectoryException
- if the endpoint cannot be deregisteredvoid registerConnection(QName consInterface, QName provService, String provEndpoint) throws org.ow2.petals.clientserverapi.jbi.messaging.endpoint.exception.EndpointDirectoryException
consInterface
- consumer interface name; must be non nullprovService
- provider service name; must be non nullprovEndpoint
- provider endpoint name; must be non nullorg.ow2.petals.clientserverapi.jbi.messaging.endpoint.exception.EndpointDirectoryException
- if a problem occurs in the registryvoid registerConnection(QName consService, String consEndpoint, QName provService, String provEndpoint) throws org.ow2.petals.clientserverapi.jbi.messaging.endpoint.exception.EndpointDirectoryException
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 nullorg.ow2.petals.clientserverapi.jbi.messaging.endpoint.exception.EndpointDirectoryException
- if a problem occurs in the registryvoid deregisterConnection(QName consInterface, QName provService, String provEndpoint) throws org.ow2.petals.clientserverapi.jbi.messaging.endpoint.exception.EndpointDirectoryException
consInterface
- consumer interface name; must be non nullprovService
- provider service name; must be non nullprovEndpoint
- provider endpoint name; must be non nullorg.ow2.petals.clientserverapi.jbi.messaging.endpoint.exception.EndpointDirectoryException
- if the connection can not be deletedvoid deregisterConnection(QName consService, String consEndpoint, QName provService, String provEndpoint) throws org.ow2.petals.clientserverapi.jbi.messaging.endpoint.exception.EndpointDirectoryException
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 nullorg.ow2.petals.clientserverapi.jbi.messaging.endpoint.exception.EndpointDirectoryException
- if the connection can not be deletedCollection<org.ow2.petals.jbi.servicedesc.endpoint.PetalsServiceEndpoint> getInternalEndpointsForInterface(QName interfaceName) throws org.ow2.petals.clientserverapi.jbi.messaging.endpoint.exception.EndpointDirectoryException
interfaceName
- qualified interface/portType that is implemented by the endpoints; must be non-nullorg.ow2.petals.clientserverapi.jbi.messaging.endpoint.exception.EndpointDirectoryException
Collection<org.ow2.petals.jbi.servicedesc.endpoint.PetalsServiceEndpoint> getInternalEndpointsForService(QName serviceName) throws org.ow2.petals.clientserverapi.jbi.messaging.endpoint.exception.EndpointDirectoryException
serviceName
- qualified name of the service that the endpoints are part of; must be non nullorg.ow2.petals.clientserverapi.jbi.messaging.endpoint.exception.EndpointDirectoryException
Collection<org.ow2.petals.jbi.servicedesc.endpoint.PetalsServiceEndpoint> getExternalEndpointsForInterface(QName interfaceName) throws org.ow2.petals.clientserverapi.jbi.messaging.endpoint.exception.EndpointDirectoryException
interfaceName
- qualified name of interface implemented by the endpoints; must be non nullorg.ow2.petals.clientserverapi.jbi.messaging.endpoint.exception.EndpointDirectoryException
Collection<org.ow2.petals.jbi.servicedesc.endpoint.PetalsServiceEndpoint> getExternalEndpointsForService(QName serviceName) throws org.ow2.petals.clientserverapi.jbi.messaging.endpoint.exception.EndpointDirectoryException
serviceName
- qualified name of service that contains endpoints; must be non nullorg.ow2.petals.clientserverapi.jbi.messaging.endpoint.exception.EndpointDirectoryException
org.ow2.petals.jbi.servicedesc.endpoint.PetalsServiceEndpoint getEndpoint(QName service, String name) throws org.ow2.petals.clientserverapi.jbi.messaging.endpoint.exception.EndpointDirectoryException
service
- qualified name of the endpoint's service; must be non nullname
- name of the endpoint; must be non nullorg.ow2.petals.clientserverapi.jbi.messaging.endpoint.exception.EndpointDirectoryException
org.ow2.petals.jbi.servicedesc.endpoint.PetalsServiceEndpoint getInternalEndpoint(QName service, String name) throws org.ow2.petals.clientserverapi.jbi.messaging.endpoint.exception.EndpointDirectoryException
service
- qualified name of the endpoint's service; must be non nullname
- name of the endpoint; must be non nullorg.ow2.petals.clientserverapi.jbi.messaging.endpoint.exception.EndpointDirectoryException
org.ow2.petals.jbi.servicedesc.endpoint.PetalsServiceEndpoint getExternalEndpoint(QName service, String name) throws org.ow2.petals.clientserverapi.jbi.messaging.endpoint.exception.EndpointDirectoryException
service
- qualified name of the external endpoint's service; must be non nullname
- name of the external endpoint; must be non nullorg.ow2.petals.clientserverapi.jbi.messaging.endpoint.exception.EndpointDirectoryException
Collection<org.ow2.petals.jbi.servicedesc.endpoint.PetalsServiceEndpoint> getEndpoints() throws org.ow2.petals.clientserverapi.jbi.messaging.endpoint.exception.EndpointDirectoryException
org.ow2.petals.clientserverapi.jbi.messaging.endpoint.exception.EndpointDirectoryException
Document getDescription(javax.jbi.servicedesc.ServiceEndpoint endpoint) throws org.ow2.petals.clientserverapi.jbi.messaging.endpoint.exception.EndpointDirectoryException
endpoint
- the endpointnull
if there is no such
descriptionEndpointDoesNotExistsException
- if the endpoint does not existorg.ow2.petals.clientserverapi.jbi.messaging.endpoint.exception.EndpointDirectoryException
- if an error occurs during endpoint description retrieval or if the endpoint does not existjavax.jbi.servicedesc.ServiceEndpoint resolveEndpointReference(DocumentFragment epr) throws org.ow2.petals.clientserverapi.jbi.messaging.endpoint.exception.EndpointDirectoryException
org.ow2.petals.clientserverapi.jbi.messaging.endpoint.exception.EndpointDirectoryException
Copyright © 2005-2016 Linagora. All Rights Reserved.