|
||||||||||
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 | |
---|---|
static String |
COMPONENT_LOGGER_NAME
|
Method Summary | |
---|---|
ServiceEndpoint |
activateEndpoint(QName serviceName,
String endpointName,
List<QName> interfaces,
Document description,
ServiceEndpoint address)
Register an endpoint in the endpoints registry. |
void |
deactivateEndpoint(String endpointName,
QName serviceName)
Deactivates the local given endpoint. |
void |
deregisterConnection(QName consInterface,
QName provService,
String provEndpoint)
Delete a connection |
void |
deregisterConnection(QName consService,
String consEndpoint,
QName provService,
String provEndpoint)
Delete a connection |
void |
deregisterExternalEndpoint(String endpointName,
QName serviceName)
Deregister external endpoint |
ServiceEndpoint |
getEndpoint(QName service,
String name)
Get the service endpoint for the named activated endpoint, if any. |
Document |
getEndpointDescriptorForEndpoint(ServiceEndpoint endpoint)
Return the descriptor for a specified endpoint. |
List<ServiceEndpoint> |
getEndpoints()
|
List<ServiceEndpoint> |
getExternalEndpoints()
|
ServiceEndpoint[] |
getExternalEndpointsForInterface(QName interfaceName)
Queries the registry for external endpoints that implements the given interface name |
ServiceEndpoint[] |
getExternalEndpointsForService(QName serviceName)
Queries the registry for external endpoints that are part of the given service name |
QName[] |
getInterfacesForEndpoint(ServiceEndpoint endpoint)
Return the interfaces for the specified endpoint. |
List<ServiceEndpoint> |
getInternalEndpoints()
|
ServiceEndpoint[] |
getInternalEndpointsForInterface(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(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. |
List<RegistryListener> |
getListeners()
Get the list of registry listeners. |
List<ServiceEndpoint> |
query(String endpoint,
QName itf,
QName service,
String containerName,
String componentName,
String subDomainName,
String type)
|
void |
registerConnection(QName consInterface,
QName provService,
String provEndpoint)
Register a connection |
void |
registerConnection(QName consService,
String consEndpoint,
QName provService,
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.microkernel.api.jbi.messaging.registry.EndpointRegistryMBean |
---|
getAllEndpoints, getAllExternalEndpoints, getAllInternalEndpoints, getDescription, synchronizeRegistry |
Field Detail |
---|
static final String COMPONENT_LOGGER_NAME
Method Detail |
---|
List<RegistryListener> getListeners()
List<ServiceEndpoint> getInternalEndpoints() throws RegistryException
RegistryException
List<ServiceEndpoint> getExternalEndpoints() throws RegistryException
RegistryException
List<ServiceEndpoint> getEndpoints() throws RegistryException
RegistryException
ServiceEndpoint activateEndpoint(QName serviceName, String endpointName, List<QName> interfaces, 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(String endpointName, 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(String endpointName, 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(QName consInterface, QName provService, 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(QName consService, String consEndpoint, QName provService, 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(QName consInterface, QName provService, 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(QName consService, String consEndpoint, QName provService, 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
Document getEndpointDescriptorForEndpoint(ServiceEndpoint endpoint) throws RegistryException
endpoint
- endpoint on which we want to retrieve the descriptor; must be
non null
RegistryException
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(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(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(QName interfaceName) throws RegistryException
interfaceName
- qualified name of interface implemented by the endpoints; can
be null
RegistryException
ServiceEndpoint[] getExternalEndpointsForService(QName serviceName) throws RegistryException
serviceName
- qualified name of service that contains endpoints; must be non
null
RegistryException
ServiceEndpoint getEndpoint(QName service, 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
List<ServiceEndpoint> query(String endpoint, QName itf, QName service, String containerName, String componentName, String subDomainName, 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 |