1 22 package org.objectweb.petals.jbi.management.service; 23 24 import javax.jbi.JBIException; 25 import javax.jbi.messaging.MessageExchange; 26 import javax.jbi.servicedesc.ServiceEndpoint; 27 import javax.xml.namespace.QName ; 28 29 import org.objectweb.petals.jbi.registry.AbstractEndpoint; 30 import org.objectweb.petals.jbi.registry.ConsumerEndpoint; 31 import org.objectweb.petals.jbi.registry.InternalEndpoint; 32 import org.w3c.dom.Document ; 33 34 40 public interface EndpointService { 41 42 55 InternalEndpoint activateEndpoint(QName serviceName, String endpointName, 56 ConsumerEndpoint address) throws JBIException; 57 58 70 void createConnection(QName consInterface, QName provService, 71 String provEndpoint) throws JBIException; 72 73 87 void createConnection(QName consService, String consEndpoint, 88 QName provService, String provEndpoint) throws JBIException; 89 90 98 void deactivateEndpoint(ServiceEndpoint endpoint) throws JBIException; 99 100 112 void deleteConnection(QName consInterface, QName provService, 113 String provEndpoint) throws JBIException; 114 115 130 void deleteConnection(QName consService, String consEndpoint, 131 QName provService, String provEndpoint) throws JBIException; 132 133 141 void deregisterExternalEndpoint(ServiceEndpoint endpoint) 142 throws JBIException; 143 144 154 ServiceEndpoint getEndpoint(QName service, String name); 155 156 168 ServiceEndpoint getEndpoint(QName service, String name,boolean resolveLink); 169 170 179 Document getEndpointDescriptorForEndpoint(ServiceEndpoint endpoint) 180 throws JBIException; 181 182 192 ServiceEndpoint[] getExternalEndpointsForInterface(QName interfaceName); 193 194 204 ServiceEndpoint[] getExternalEndpointsForService(QName serviceName); 205 206 214 QName [] getInterfacesForEndpoint(AbstractEndpoint endpoint); 215 216 227 ServiceEndpoint[] getInternalEndpointsForInterface(QName interfaceName); 228 229 238 ServiceEndpoint[] getInternalEndpointsForService(QName serviceName); 239 240 251 boolean isExchangeWithConsumerOkayForComponent( 252 InternalEndpoint internalEndpoint, MessageExchange exchange); 253 254 265 boolean isExchangeWithProviderOkayForComponent( 266 InternalEndpoint internalEndpoint, MessageExchange exchange); 267 268 277 void registerExternalEndpoint(ServiceEndpoint externalEndpoint) 278 throws JBIException; 279 280 288 boolean isContainerStarted(AbstractEndpoint endpoint); 289 290 } 291 | Popular Tags |