public class DeliveryChannelImpl extends Object implements DeliveryChannel, ChannelStatistics
| Modifier and Type | Field and Description |
|---|---|
static String |
REG_NOTIFICATION_TYPE |
| Modifier and Type | Method and Description |
|---|---|
MessageExchange |
accept()
Blocking call which samples the channel at a pre-determined interval
for available exchanges.
|
MessageExchange |
accept(long timeout) |
RegisteredEndpoint |
activateEndpoint(QName service,
String endpoint)
Activate an endpoint.
|
boolean |
activeReference(MessageExchange me)
Check if a MessageExchange is being tracked.
|
void |
addServiceConnection(QName serviceLink,
String endpointLink,
QName service,
String endpoint,
String type) |
void |
close()
Close the channel.
|
ServiceEndpoint |
createEndpoint(QName service,
String endpoint) |
MessageExchange |
createExchange(URI pattern,
String id) |
MessageExchangeFactory |
createExchangeFactory()
Create a message exchange factory.
|
MessageExchangeFactory |
createExchangeFactory(QName interfaceName)
Create a message exchange factory for the given interface name.
|
MessageExchangeFactory |
createExchangeFactory(ServiceEndpoint endpoint)
Create a message exchange factory for the given endpoint.
|
MessageExchangeFactory |
createExchangeFactoryForService(QName serviceName)
Create a message exchange factory for the given service name.
|
void |
deactivateEndpoint(ServiceEndpoint ref)
Used by a BC to deactivate an endpoint which it has registered.
|
void |
deregisterExternalEndpoint(ServiceEndpoint externalEndpoint)
Deregisters the specified external endpoint with the NMR.
|
ClassLoader |
getClassLoader() |
String[] |
getConsumingEndpointNames() |
ServiceEndpoint |
getEndpoint(QName service,
String name)
Get the service description for the named endpoint, if any exists.
|
Document |
getEndpointDescriptor(ServiceEndpoint endpoint)
Uses the owner id of the reference to query the appopriate channel.
|
String[] |
getEndpointNames() |
ServiceEndpoint[] |
getEndpoints() |
ServiceEndpoint[] |
getEndpoints(QName interfaceName)
Queries the NMR for active endpoints that implement the given interface.
|
ServiceEndpoint[] |
getEndpointsForService(QName service)
Used by ComponentContext.getEndpointsForService().
|
EndpointStatistics |
getEndpointStatistics(String name) |
ServiceEndpoint[] |
getExternalEndpoints(QName interfaceName)
Queries the NMR for external endpoints that implement the specified
interface name.
|
ServiceEndpoint[] |
getExternalEndpointsForService(QName serviceName)
Queries the NMR for external endpoints that are part of the specified
service.
|
String |
getName() |
CompositeData |
getStatistics() |
boolean |
isClosed() |
boolean |
isExchangeOkay(MessageExchange me) |
boolean |
isTransactional() |
void |
registerExternalEndpoint(ServiceEndpoint externalEndpoint)
Registers the specified external endpoint with the NMR.
|
void |
registerXAResource(XAResource resource)
Register an XAResource
|
void |
removeServiceConnection(QName serviceLink,
String endpointLink,
QName service,
String endpoint) |
ServiceEndpoint |
resolveEndpointReference(DocumentFragment endpointReference)
Resolves the specified endpoint reference into a service endpoint.
|
void |
send(MessageExchange exchange)
Defers routing to the message service.
|
boolean |
sendLast(MessageExchange exchange)
Defers routing to the message service.
|
boolean |
sendSync(MessageExchange exchange) |
boolean |
sendSync(MessageExchange exchange,
long timeout) |
void |
setEndpointListener(EndpointListener listener) |
void |
setExchangeIdGenerator(ExchangeIdGenerator generator) |
void |
setTimeoutListener(TimeoutListener timeout) |
void |
setTransactional(boolean transactional) |
String |
toString() |
public static final String REG_NOTIFICATION_TYPE
public MessageExchange accept() throws MessagingException
accept in interface DeliveryChannelMessagingException - error while reading
exchange.public MessageExchange accept(long timeout) throws MessagingException
accept in interface DeliveryChannelMessagingExceptionpublic void send(MessageExchange exchange) throws MessagingException
send in interface DeliveryChannelMessagingExceptionpublic boolean sendLast(MessageExchange exchange) throws MessagingException
MessagingExceptionpublic boolean sendSync(MessageExchange exchange) throws MessagingException
sendSync in interface DeliveryChannelMessagingExceptionpublic boolean sendSync(MessageExchange exchange, long timeout) throws MessagingException
sendSync in interface DeliveryChannelMessagingExceptionpublic MessageExchangeFactory createExchangeFactory()
createExchangeFactory in interface DeliveryChannelpublic MessageExchangeFactory createExchangeFactory(QName interfaceName)
createExchangeFactory in interface DeliveryChannelinterfaceName - name of the interface for which all exchanges
created by the returned factory will be setpublic MessageExchangeFactory createExchangeFactoryForService(QName serviceName)
createExchangeFactoryForService in interface DeliveryChannelserviceName - name of the service for which all exchanges
created by the returned factory will be setpublic MessageExchangeFactory createExchangeFactory(ServiceEndpoint endpoint)
createExchangeFactory in interface DeliveryChannelendpoint - endpoint for which all exchanges created by the
returned factory will be set forpublic void registerXAResource(XAResource resource)
resource - to be added.public RegisteredEndpoint activateEndpoint(QName service, String endpoint) throws MessagingException
service - QName of serviceendpoint - NCName of endpointMessagingException - failed to register endpointpublic void deactivateEndpoint(ServiceEndpoint ref) throws MessagingException
ref - endpoint referenceMessagingException - failed to deactivate
endpoint.public void registerExternalEndpoint(ServiceEndpoint externalEndpoint) throws MessagingException
MessagingExceptionpublic void deregisterExternalEndpoint(ServiceEndpoint externalEndpoint) throws MessagingException
MessagingExceptionpublic ServiceEndpoint getEndpoint(QName service, String name)
service - the qualified name of the endpoint's service.public Document getEndpointDescriptor(ServiceEndpoint endpoint) throws MessagingException
MessagingExceptionpublic ServiceEndpoint[] getExternalEndpoints(QName interfaceName)
public ServiceEndpoint[] getEndpoints(QName interfaceName)
interfaceName - qualified name of interface/portType that is
implemented by the endpointpublic ServiceEndpoint[] getEndpoints()
public ServiceEndpoint[] getExternalEndpointsForService(QName serviceName)
public ServiceEndpoint resolveEndpointReference(DocumentFragment endpointReference)
public ServiceEndpoint[] getEndpointsForService(QName service)
public void addServiceConnection(QName serviceLink, String endpointLink, QName service, String endpoint, String type) throws MessagingException
MessagingExceptionpublic void removeServiceConnection(QName serviceLink, String endpointLink, QName service, String endpoint)
public void setTransactional(boolean transactional)
public final boolean isTransactional()
public ClassLoader getClassLoader()
public void close()
throws MessagingException
close in interface DeliveryChannelMessagingException - failure during close.public boolean isClosed()
public boolean activeReference(MessageExchange me)
public void setEndpointListener(EndpointListener listener)
public void setTimeoutListener(TimeoutListener timeout)
public MessageExchange createExchange(URI pattern, String id) throws MessagingException
MessagingExceptionpublic ServiceEndpoint createEndpoint(QName service, String endpoint) throws MessagingException
MessagingExceptionpublic void setExchangeIdGenerator(ExchangeIdGenerator generator)
public boolean isExchangeOkay(MessageExchange me)
public String getName()
getName in interface ChannelStatisticspublic String[] getEndpointNames()
getEndpointNames in interface ChannelStatisticspublic String[] getConsumingEndpointNames()
getConsumingEndpointNames in interface ChannelStatisticspublic EndpointStatistics getEndpointStatistics(String name)
getEndpointStatistics in interface ChannelStatisticspublic CompositeData getStatistics()
getStatistics in interface ChannelStatisticsCopyright © 2011-2016 OpenESB Community. All Rights Reserved.