com.ibm.ia.connectivity.management

Interface ConnectivityManagerMXBean



  • @MXBean
    public interface ConnectivityManagerMXBean

    The interface used to deploy and manage solution connectivity configuration for a single inbound or outbound connectivity server. The MBean is available on inbound and outbound connectivity servers to which one of the connectivity server features is deployed, using the name com.ibm.ia:type=ConnectivityManager

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String HTTP
      Protocol name for HTTP connectivity.
      static java.lang.String JMS
      Protocol name for JMS connectivity.
      static java.lang.String MXBEAN_OBJECT_NAME
      The object name by which a JMX client can find the ConnectivityManagerMXBean
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      boolean activateSolutionConnectivity(java.lang.String solutionName)
      Activate solution connectivity for the named solution on the connectivity server.
      boolean deactivateSolutionConnectivity(java.lang.String solutionName)
      Deactivate solution connectivity for the named solution on the connectivity server.
      java.util.Set<java.lang.String> getServerConnectivityFeatures()
      Obtain the list of connectivity features enabled on the connectivity server.
      boolean installSolutionConnectivity(java.lang.String solutionName, boolean inboundRequired, boolean overwrite, boolean copyOnly)
      Install and optionally activate the connectivity configuration for the named solution on the connectivity server.
      java.util.Set<java.lang.String> listConfiguredInboundEndpointPatterns(java.lang.String protocol)
      Returns the inbound endpoint patterns configured for a given protocol on this server by <ia_inboundHttpEndpoint /> or <ia_inboundJmsEndpoint /> entries in deployed connectivity server solution configuration files.
      java.util.Set<java.lang.String> listConfiguredInboundEndpoints(java.lang.String protocol, java.lang.String endpointNamePattern)
      Returns the qualified names of the inbound endpoints of active solutions that configured on this server by matching <ia_inboundHttpEndpoint /> or <ia_inboundJmsEndpoint /> entries in deployed connectivity server solution configuration files.
      java.util.Set<java.lang.String> listConfiguredOutboundEndpointPatterns(java.lang.String protocol)
      Returns the outbound endpoint patterns configured for a given protocol on this server by <ia_outboundHttpEndpoint /> or <ia_outboundJmsEndpoint /> entries in deployed connectivity server solution configuration files.
      java.util.Set<java.lang.String> listConfiguredOutboundEndpoints(java.lang.String protocol, java.lang.String endpointNamePattern)
      Returns the qualified names of the outbound endpoints of active solutions that configured on this server by matching <ia_outboundHttpEndpoint /> or <ia_outboundJmsEndpoint /> entries in deployed connectivity server solution configuration files.
      boolean undeploySolutionConnectivity(java.lang.String solutionName)
      Undeploy solution connectivity for the named solution from the connectivity server.
    • Field Detail

      • MXBEAN_OBJECT_NAME

        static final java.lang.String MXBEAN_OBJECT_NAME
        The object name by which a JMX client can find the ConnectivityManagerMXBean
        See Also:
        Constant Field Values
      • HTTP

        static final java.lang.String HTTP
        Protocol name for HTTP connectivity.
        See Also:
        Constant Field Values
      • JMS

        static final java.lang.String JMS
        Protocol name for JMS connectivity.
        See Also:
        Constant Field Values
    • Method Detail

      • installSolutionConnectivity

        boolean installSolutionConnectivity(java.lang.String solutionName,
                                          boolean inboundRequired,
                                          boolean overwrite,
                                          boolean copyOnly)

        Install and optionally activate the connectivity configuration for the named solution on the connectivity server. For an inbound connectivity server, the inbound connectivity application is also deployed.

        The solution configuration file must be placed in the work area directory of the server before the MBean is invoked. If required, the inbound connectivity application must have been placed in the work area directory of the server before the MBean is invoked and inboundRequired must be true.

        The solution configuration file must be named <solutionName>-config.xml. If required, the solution inbound connectivity application must be named <solutionName>-inbound.ear

        The solution configuration file is copied from the work area directory to the server configuration directory. If required, the solution inbound connectivity application is copied from the work area directory to the server application directory. If the target files already exist and overwrite is false, the operation will fail.

        If copyOnly is true, the files are copied to their target directories but the solution connectivity will not be activated. The solution connectivity can be activated later using activateSolutionConnectivity(String)

        Parameters:
        solutionName - the name of the solution for which to install connectivity.
        inboundRequired - true if the inbound connectivity application is to be deployed.
        overwrite - true to overwrite files that already exist.
        copyOnly - true to copy files for later activation.
        Returns:
        true if solution connectivity is installed successfully.
      • activateSolutionConnectivity

        boolean activateSolutionConnectivity(java.lang.String solutionName)

        Activate solution connectivity for the named solution on the connectivity server. The solution connectivity configuration must previously have been copied to the server or deactivated.

        Note: The solution configuration can be copied to the server using either connectivityManager or installSolutionConnectivity(String, boolean, boolean, boolean)

        Parameters:
        solutionName - the name of the solution for which to activate connectivity.
        Returns:
        true if solution connectivity is activated successfully.
      • deactivateSolutionConnectivity

        boolean deactivateSolutionConnectivity(java.lang.String solutionName)

        Deactivate solution connectivity for the named solution on the connectivity server.

        Parameters:
        solutionName - the name of the solution for which to deactivate connectivity.
        Returns:
        true if solution connectivity is deactivated successfully.
      • undeploySolutionConnectivity

        boolean undeploySolutionConnectivity(java.lang.String solutionName)

        Undeploy solution connectivity for the named solution from the connectivity server. The solution configuration file and associated connectivity application will be deactivated and then deleted.

        Parameters:
        solutionName - the name of the solution for which to undeploy connectivity.
        Returns:
        true if solution connectivity is undeployed successfully.
      • getServerConnectivityFeatures

        java.util.Set<java.lang.String> getServerConnectivityFeatures()

        Obtain the list of connectivity features enabled on the connectivity server.

        Note: The features must be configured in the server.xml of the server. Configuration included in other files will not be checked.

        Returns:
        a set containing the names of the connectivity features enabled on the connectivity server.
      • listConfiguredInboundEndpointPatterns

        java.util.Set<java.lang.String> listConfiguredInboundEndpointPatterns(java.lang.String protocol)
                                                                              throws java.lang.IllegalStateException

        Returns the inbound endpoint patterns configured for a given protocol on this server by <ia_inboundHttpEndpoint /> or <ia_inboundJmsEndpoint /> entries in deployed connectivity server solution configuration files.

        The patterns use the form solution_name/endpoint_name and can be terminated with a wildcard * character to match multiple endpoint names, or multiple solutions. The returned endpoint patterns are those that are deployed in the configuration of this connectivity server, and for which this server will attempt to process messages. This does not imply that an endpoint is defined by an active solution. Use listConfiguredInboundEndpoints(String,String) to resolve names of matching endpoints that are defined by active solutions.

        Throws:
        java.lang.IllegalStateException - if the operation cannot be performed.
        Parameters:
        protocol - the name of the protocol
        Returns:
        the set of configured inbound endpoint patterns in the form solution_name/endpoint_name.
      • listConfiguredOutboundEndpointPatterns

        java.util.Set<java.lang.String> listConfiguredOutboundEndpointPatterns(java.lang.String protocol)
                                                                               throws java.lang.IllegalStateException

        Returns the outbound endpoint patterns configured for a given protocol on this server by <ia_outboundHttpEndpoint /> or <ia_outboundJmsEndpoint /> entries in deployed connectivity server solution configuration files.

        The patterns use the form solution_name/endpoint_name and can be terminated with a wildcard * character to match multiple endpoint names, or multiple solutions. The returned endpoint patterns are those that are deployed in the configuration of this connectivity server, and for which this server will attempt to process messages. This does not imply that an endpoint is defined by an active solution. Use listConfiguredOutboundEndpoints(String,String) to resolve names of matching endpoints that are defined by active solutions.

        Throws:
        java.lang.IllegalStateException - if the operation cannot be performed.
        Parameters:
        protocol - the name of the protocol
        Returns:
        the set of configured outbound endpoint patterns in the form solution_name/endpoint_name.
      • listConfiguredInboundEndpoints

        java.util.Set<java.lang.String> listConfiguredInboundEndpoints(java.lang.String protocol,
                                                                     java.lang.String endpointNamePattern)
                                                                       throws java.lang.IllegalStateException

        Returns the qualified names of the inbound endpoints of active solutions that configured on this server by matching <ia_inboundHttpEndpoint /> or <ia_inboundJmsEndpoint /> entries in deployed connectivity server solution configuration files.

        Returns only endpoint names that match the specified endpoint name pattern. You can terminate the endpoint name pattern with a wildcard * character to match multiple endpoint names, or multiple solutions.

        The result set is empty if the solution is not active, the endpoint does not exist, or no endpoints match the specified pattern.

        Throws:
        java.lang.IllegalStateException - if the operation cannot be performed.
        Parameters:
        protocol - the name of the protocol, or null to return endpoints for all protocols.
        endpointNamePattern - an inbound endpoint name of the form solution_name/endpoint_name, or a pattern ending a wildcard * character.
        Returns:
        the set of matching inbound endpoint names in the form solution_name/endpoint_name.
      • listConfiguredOutboundEndpoints

        java.util.Set<java.lang.String> listConfiguredOutboundEndpoints(java.lang.String protocol,
                                                                      java.lang.String endpointNamePattern)
                                                                        throws java.lang.IllegalStateException

        Returns the qualified names of the outbound endpoints of active solutions that configured on this server by matching <ia_outboundHttpEndpoint /> or <ia_outboundJmsEndpoint /> entries in deployed connectivity server solution configuration files.

        Returns only endpoint names that match the specified endpoint name pattern. You can terminate the endpoint name pattern with a wildcard * character to match multiple endpoint names, or multiple solutions.

        The result set is empty if the solution is not active, the endpoint does not exist, or no endpoints match the specified pattern.

        Throws:
        java.lang.IllegalStateException - if the operation cannot be performed.
        Parameters:
        protocol - the name of the protocol, or null to return endpoints for all protocols.
        endpointNamePattern - an outbound endpoint name of the form solution_name/endpoint_name, or a pattern ending a wildcard * character.
        Returns:
        the set of matching outbound endpoint names in the form: solution_name/endpoint_name.

© Copyright IBM 2017