|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RemoteComponentContext
the Component context interface.
| Method Summary | |
|---|---|
javax.jbi.servicedesc.ServiceEndpoint |
activateEndpoint(javax.xml.namespace.QName interfaceName,
javax.xml.namespace.QName serviceName,
java.lang.String endpointName)
Activates the named endpoint with the NMR. |
void |
deactivateEndpoint(javax.jbi.servicedesc.ServiceEndpoint endpoint)
Deactivates the given endpoint with the NMR. |
void |
deregisterExternalEndpoint(javax.jbi.servicedesc.ServiceEndpoint externalEndpoint)
Deregisters the given external endpoint with the NMR. |
java.lang.String |
getComponentName()
Get the unique component name of this component, as assigned by the identification section of this component's installation descriptor. |
RemoteDeliveryChannel |
getDeliveryChannel()
Get a channel for this component to use to communicate with the Normalized Message Router. |
javax.jbi.servicedesc.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 |
getEndpointDescriptor(javax.jbi.servicedesc.ServiceEndpoint endpoint)
TODO getEndpointDescriptor works only with implementation InternalEndpoint Retrieve the service description metadata for the specified endpoint. |
javax.jbi.servicedesc.ServiceEndpoint[] |
getEndpoints(javax.xml.namespace.QName interfaceName)
Queries the NMR for active endpoints that implement the given interface. |
javax.jbi.servicedesc.ServiceEndpoint[] |
getEndpointsForService(javax.xml.namespace.QName serviceName)
Queries the NMR for active endpoints belonging to the given service. |
javax.jbi.servicedesc.ServiceEndpoint[] |
getExternalEndpoints(javax.xml.namespace.QName interfaceName)
Queries the NMR for external endpoints that implement the given interface name. |
javax.jbi.servicedesc.ServiceEndpoint[] |
getExternalEndpointsForService(javax.xml.namespace.QName serviceName)
Queries the NMR for external endpoints that are part of the given service. |
java.lang.String |
getInstallRoot()
Get the installation root directory path for this component. |
java.util.logging.Logger |
getLogger(java.lang.String suffix,
java.lang.String resourceBundleName)
TODO getLogger return a simple Logger, not integrated to the platform Get a logger instance from JBI. |
javax.jbi.management.MBeanNames |
getMBeanNames()
Get a reference to the MBeanNames creator for use in creating custom MBean names. |
javax.management.MBeanServer |
getMBeanServer()
Get the JMX MBean server used to register all MBeans in the JBI environment. |
javax.naming.InitialContext |
getNamingContext()
TODO getNamingContext not integrated Get the JNDI naming context for this component. |
java.lang.Object |
getTransactionManager()
TODO getTransactionManager not integrated Get the TransactionManager for this implementation. |
java.lang.String |
getWorkspaceRoot()
Get the root directory path for this component's private workspace. |
void |
registerExternalEndpoint(javax.jbi.servicedesc.ServiceEndpoint externalEndpoint)
Registers the given external endpoint with the NMR. |
javax.jbi.servicedesc.ServiceEndpoint |
resolveEndpointReference(org.w3c.dom.DocumentFragment epr)
Resolve the given endpoint reference into a service endpoint. |
| Method Detail |
|---|
javax.jbi.servicedesc.ServiceEndpoint activateEndpoint(javax.xml.namespace.QName interfaceName,
javax.xml.namespace.QName serviceName,
java.lang.String endpointName)
throws javax.jbi.JBIException,
java.rmi.RemoteException
Note that the JBI implementation may call this component's Component#getServiceDescription(ServiceEndpoint) method before returning
from this method call; the component's implementation must be ready to
supply service description metadata before the result of this activation
call (a ServiceEndpoint) is known.
interfaceName - qualified name of the interface the endpoint exposes; must be
non-null.serviceName - qualified name of the service the endpoint exposes; must be
non-null.endpointName - the name of the endpoint to be activated; must be non-null and
non-empty.
javax.jbi.JBIException - if the endpoint cannot be activated.
java.rmi.RemoteException - impossible to realize a remote access
void deactivateEndpoint(javax.jbi.servicedesc.ServiceEndpoint endpoint)
throws javax.jbi.JBIException,
java.rmi.RemoteException
endpoint - reference to the endpoint to be deactivated; must be non-null.
javax.jbi.JBIException - if the endpoint cannot be deactivated.
java.rmi.RemoteException - impossible to realize a remote access
void deregisterExternalEndpoint(javax.jbi.servicedesc.ServiceEndpoint externalEndpoint)
throws javax.jbi.JBIException,
java.rmi.RemoteException
externalEndpoint - the external endpoint to be deregistered; must be non-null.
javax.jbi.JBIException - if the given external endpoint was not previously registered.
java.rmi.RemoteException - impossible to realize a remote access
java.lang.String getComponentName()
throws java.rmi.RemoteException
java.rmi.RemoteException - impossible to realize a remote access
RemoteDeliveryChannel getDeliveryChannel()
throws javax.jbi.messaging.MessagingException,
java.rmi.RemoteException
javax.jbi.messaging.MessagingException - if a channel has already been opened, but not yet closed.
java.rmi.RemoteException - impossible to realize a remote access
javax.jbi.servicedesc.ServiceEndpoint getEndpoint(javax.xml.namespace.QName service,
java.lang.String name)
throws java.rmi.RemoteException
service - qualified-name of the endpoint's service; must be non-null.name - name of the endpoint; must be non-null.
null if the named endpoint
is not activated.
java.rmi.RemoteException - impossible to realize a remote access
org.w3c.dom.Document getEndpointDescriptor(javax.jbi.servicedesc.ServiceEndpoint endpoint)
throws javax.jbi.JBIException,
java.rmi.RemoteException
Note that the result can use either the WSDL 1.1 or WSDL 2.0 description language.
endpoint - endpoint reference; must be non-null.
null if metadata
is unavailable.
javax.jbi.JBIException - invalid endpoint reference.
java.rmi.RemoteException - impossible to realize a remote access
javax.jbi.servicedesc.ServiceEndpoint[] getEndpoints(javax.xml.namespace.QName interfaceName)
throws java.rmi.RemoteException
registerExternalEndpoint(ServiceEndpoint).
interfaceName - qualified name of interface/portType that is implemented by
the endpoint; if null then all activated
endpoints in the JBI environment must be returned.
java.rmi.RemoteException - impossible to realize a remote access
javax.jbi.servicedesc.ServiceEndpoint[] getEndpointsForService(javax.xml.namespace.QName serviceName)
throws java.rmi.RemoteException
registerExternalEndpoint(ServiceEndpoint).
serviceName - qualified name of the service that the endpoints are part of;
must be non-null.
java.rmi.RemoteException - impossible to realize a remote access
javax.jbi.servicedesc.ServiceEndpoint[] getExternalEndpoints(javax.xml.namespace.QName interfaceName)
throws java.rmi.RemoteException
registerExternalEndpoint(ServiceEndpoint).
interfaceName - qualified name of interface implemented by the endpoints; must
be non-null.
java.rmi.RemoteException - impossible to realize a remote access
javax.jbi.servicedesc.ServiceEndpoint[] getExternalEndpointsForService(javax.xml.namespace.QName serviceName)
throws java.rmi.RemoteException
serviceName - qualified name of service that contains the endpoints; must be
non-null.
java.rmi.RemoteException - impossible to realize a remote access
java.lang.String getInstallRoot()
throws java.rmi.RemoteException
This method MUST return the file path formatted for the underlying platform.
java.rmi.RemoteException - impossible to realize a remote access
java.util.logging.Logger getLogger(java.lang.String suffix,
java.lang.String resourceBundleName)
throws javax.jbi.JBIException,
java.rmi.RemoteException
suffix - for creating subloggers; use an empty string for the base
component logger; must be non-null.resourceBundleName - name of ResourceBundle to be used for
localizing messages for the logger. May be null
if none of the messages require localization. The resource, if
non-null, must be loadable using the component's class loader
as the initiating loader.
javax.jbi.JBIException - if the resourceBundleName has changed from a previous
invocation by this component of this method with the same
suffix.
java.rmi.RemoteException - impossible to realize a remote access
javax.jbi.management.MBeanNames getMBeanNames()
throws java.rmi.RemoteException
java.rmi.RemoteException - impossible to realize a remote access
javax.management.MBeanServer getMBeanServer()
throws java.rmi.RemoteException
java.rmi.RemoteException - impossible to realize a remote access
javax.naming.InitialContext getNamingContext()
throws java.rmi.RemoteException
InitialContext but its content will vary
based on the environment in which the JBI implementation is running.
java.rmi.RemoteException - impossible to realize a remote access
java.lang.Object getTransactionManager()
throws java.rmi.RemoteException
null.
The object returned by this method is untyped, to allow this interface to
be compiled in environments that do not support JTA. If not null, the
object returned must be of type
javax.transaction.TransactionManager.
This downcast is necessary because JBI is used in environments that do not support JTA (i.e., J2SE). Explicit use of JTA types would cause compilation failures in such environments.
java.rmi.RemoteException - impossible to realize a remote access
java.lang.String getWorkspaceRoot()
throws java.rmi.RemoteException
This method MUST return the file path formatted for the underlying platform.
The returned value must indicate a valid file path that the component may use to write files to, and read files from.
java.rmi.RemoteException - impossible to realize a remote access
void registerExternalEndpoint(javax.jbi.servicedesc.ServiceEndpoint externalEndpoint)
throws javax.jbi.JBIException,
java.rmi.RemoteException
externalEndpoint - the external endpoint to be registered, must be non-null.
javax.jbi.JBIException - if an external endpoint with the same name is already
registered, by this or another component.
java.rmi.RemoteException - impossible to realize a remote access
javax.jbi.servicedesc.ServiceEndpoint resolveEndpointReference(org.w3c.dom.DocumentFragment epr)
throws java.rmi.RemoteException
Note that the service endpoint returned refers to a dynamic endpoint; the endpoint will exist only as long as this component retains a strong reference to the object returned by this method. The endpoint may not be included in the list of "activated" endpoints.
epr - endpoint reference as an XML fragment; must be non-null.
java.rmi.RemoteException - impossible to realize a remote access
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||