01: /*
02: * BEGIN_HEADER - DO NOT EDIT
03: *
04: * The contents of this file are subject to the terms
05: * of the Common Development and Distribution License
06: * (the "License"). You may not use this file except
07: * in compliance with the License.
08: *
09: * You can obtain a copy of the license at
10: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
11: * See the License for the specific language governing
12: * permissions and limitations under the License.
13: *
14: * When distributing Covered Code, include this CDDL
15: * HEADER in each file and include the License file at
16: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
17: * If applicable add the following below this CDDL HEADER,
18: * with the fields enclosed by brackets "[]" replaced with
19: * your own identifying information: Portions Copyright
20: * [year] [name of copyright owner]
21: */
22:
23: /*
24: * @(#)ConnectionManager.java
25: * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
26: *
27: * END_HEADER - DO NOT EDIT
28: */
29: package com.sun.jbi.messaging;
30:
31: import javax.xml.namespace.QName;
32:
33: /**
34: * This interface provides a facility for adding and deleting service
35: * connnections in the NMR. The primary consumer of this interface will
36: * be the DeploymentService. Connection information is contained in the
37: * deployment descriptor for SAs and SUs.
38: * @author Sun Microsystems, Inc.
39: */
40: public interface ConnectionManager {
41: /**
42: * Add an interface-to-endpoint mapping to the NMR connection table.
43: * @param fromInterface interface used by the consumer
44: * @param toService service name used by the provider
45: * @param toEndpoint endpoint name used by the provider
46: */
47: void addInterfaceConnection(QName fromInterface, QName toService,
48: String toEndpoint)
49: throws javax.jbi.messaging.MessagingException;
50:
51: /**
52: * Add an endpoint-to-endpoint mapping to the NMR connection table.
53: * @param fromService service name used by the consumer
54: * @param fromEndpoint endpoint name used by the consumer
55: * @param toService service name used by the provider
56: * @param toEndpoint endpoint name used by the provider
57: */
58: void addEndpointConnection(QName fromService, String fromEndpoint,
59: QName toService, String toEndpoint, Link linkType)
60: throws javax.jbi.messaging.MessagingException;
61:
62: /**
63: * Removes an interface-to-endpoint mapping from the NMR connection table.
64: * @param fromInterface interface used by the consumer
65: * @param toService service name used by the provider
66: * @param toEndpoint endpoint name used by the provider
67: * @return true if the connection was removed, false otherwise.
68: */
69: boolean removeInterfaceConnection(QName fromInterface,
70: QName toService, String toEndpoint);
71:
72: /**
73: * Removes an endpoint-to-endpoint mapping from the NMR connection table.
74: * @param fromService service name used by the consumer
75: * @param fromEndpoint endpoint name used by the consumer
76: * @param toService service name used by the provider
77: * @param toEndpoint endpoint name used by the provider
78: */
79: boolean removeEndpointConnection(QName fromService,
80: String fromEndpoint, QName toService, String toEndpoint);
81: }
|