|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.petals.jbi.messaging.registry.AbstractEndpointRegistry
org.ow2.petals.jbi.messaging.registry.BaseEndpointRegistry
public abstract class BaseEndpointRegistry
The base endpoint registry class. This will be extended to provide standalone or distributed behavior.
| Field Summary | |
|---|---|
protected org.ow2.petals.registry.client.api.RegistryClient |
client
|
protected static java.lang.String |
CONFIG
Default configuration is in the petals configuration file |
static java.lang.String |
LISTENER_FRACTAL_PREFIX
|
protected org.ow2.petals.registry.api.LocalRegistry |
registry
|
| Fields inherited from class org.ow2.petals.jbi.messaging.registry.AbstractEndpointRegistry |
|---|
log |
| 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 |
| Constructor Summary | |
|---|---|
BaseEndpointRegistry()
|
|
| 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 |
java.lang.String |
getDescription(java.lang.String serviceName,
java.lang.String endpointName)
Returns an InputStream representation of a ServiceEndpoint description |
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> |
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. |
protected java.lang.String |
getKey(java.lang.String epName,
javax.xml.namespace.QName serviceName)
|
protected abstract java.lang.String |
getRootPath()
Get the root path where the endpoints will be stored. |
java.util.List<ServiceEndpoint> |
query(java.lang.String endpointName,
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 |
protected void |
registerEndpoint(ServiceEndpoint serviceEndpoint)
|
void |
registerExternalEndpoint(javax.jbi.servicedesc.ServiceEndpoint externalEndpoint)
FIXME ! Register this given external endpoint |
void |
removeAllLocalEndpoints()
Remove all the local endpoints. |
| Methods inherited from class org.ow2.petals.jbi.messaging.registry.AbstractEndpointRegistry |
|---|
getAllEndpoints, getAllExternalEndpoints, getAllInternalEndpoints, getEndpoints, interfaceQNameToString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.ow2.petals.jbi.messaging.registry.EndpointRegistry |
|---|
getListeners |
| Methods inherited from interface org.ow2.petals.jbi.messaging.registry.RegistryManagement |
|---|
synchronizeData |
| Field Detail |
|---|
public static final java.lang.String LISTENER_FRACTAL_PREFIX
protected static final java.lang.String CONFIG
protected org.ow2.petals.registry.api.LocalRegistry registry
protected org.ow2.petals.registry.client.api.RegistryClient client
| Constructor Detail |
|---|
public BaseEndpointRegistry()
| Method Detail |
|---|
public 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 WSDL
ServiceEndpoint associated to the registered endpoint.
EndpointAlreadyExistsException - The endpoint is already registered.
RegistryException
protected void registerEndpoint(ServiceEndpoint serviceEndpoint)
throws RegistryException
RegistryException
public void deactivateEndpoint(java.lang.String endpointName,
javax.xml.namespace.QName serviceName)
throws RegistryException
RegistryException
public 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
RegistryException
public 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
RegistryException
public void deregisterExternalEndpoint(java.lang.String endpointName,
javax.xml.namespace.QName serviceName)
throws RegistryException
RegistryException
public 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
public org.w3c.dom.Document getEndpointDescriptorForEndpoint(ServiceEndpoint endpoint)
throws RegistryException
endpoint - endpoint on which we want to retrieve the descriptor; must be
non null
RegistryException
public ServiceEndpoint[] getExternalEndpointsForInterface(javax.xml.namespace.QName interfaceName)
throws RegistryException
EndpointRegistry
interfaceName - qualified name of interface implemented by the endpoints; can
be null
RegistryException
public ServiceEndpoint[] getExternalEndpointsForService(javax.xml.namespace.QName serviceName)
throws RegistryException
EndpointRegistry
serviceName - qualified name of service that contains endpoints; must be non
null
RegistryExceptionpublic javax.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
public 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
public ServiceEndpoint[] getInternalEndpointsForService(javax.xml.namespace.QName serviceName,
org.ow2.petals.jbi.descriptor.original.generated.LinkType linktype)
throws RegistryException
EndpointRegistry
serviceName - qualified name of the service that the endpoints are part of;
must be non null
RegistryException
public void registerConnection(javax.xml.namespace.QName consInterface,
javax.xml.namespace.QName provService,
java.lang.String provEndpoint)
throws RegistryException
EndpointRegistry
consInterface - consumer interface name; must be non nullprovService - provider service name; must be non nullprovEndpoint - provider endpoint name; must be non null
RegistryException
public void registerConnection(javax.xml.namespace.QName consService,
java.lang.String consEndpoint,
javax.xml.namespace.QName provService,
java.lang.String provEndpoint)
throws RegistryException
EndpointRegistry
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
RegistryException
public void registerExternalEndpoint(javax.jbi.servicedesc.ServiceEndpoint externalEndpoint)
throws RegistryException
RegistryException
public java.lang.String getDescription(java.lang.String serviceName,
java.lang.String endpointName)
throws RegistryException
serviceName - the service QName of this endpointendpointName - the unique name of this endpoint
RegistryException
protected java.lang.String getKey(java.lang.String epName,
javax.xml.namespace.QName serviceName)
protected abstract java.lang.String getRootPath()
public java.util.List<ServiceEndpoint> getExternalEndpoints()
throws RegistryException
RegistryException
public java.util.List<ServiceEndpoint> getInternalEndpoints()
throws RegistryException
RegistryException
public java.util.List<ServiceEndpoint> query(java.lang.String endpointName,
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
RegistryException
public void removeAllLocalEndpoints()
throws RegistryException
RegistryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||