psdi.iface.mic

Class InvokeChannel

  • java.lang.Object
    • psdi.iface.mic.InvokeChannel
  • All Implemented Interfaces:
    MetaDataProperties, ServiceInvoker


    public final class InvokeChannel
    extends java.lang.Object
    implements ServiceInvoker, MetaDataProperties
    This channel provides an implementation for the ServiceInvoker interface. This is used for invoking any service endpoint from Maximo. Endpoints can be configured or set programmatically for this channel. This implementation gives preference to the configured value over programmatic setting. If not endpoint name is configured it looks into the context for programmatically set endpoint name. The channel creates an IntegrationContex for storing invocation metadata and target and source objects as well as endpoint name. This context can be accessed and modified by any participating classes [processing classes (request/response), user exits (request/response) and endpoint handler].
    See Also:
    IntegrationContext, ServiceInvoker
    • Method Detail

      • getInvokeInfo

        public InvokeInfo getInvokeInfo()
        Returns:
        the channel info.
      • getName

        public java.lang.String getName()
        Returns:
        the channel name.
      • invoke

        public byte[] invoke(java.util.Map metaData,
                             MboRemote sourceMbo,
                             MboRemote targetMbo,
                             java.lang.String endPointName)
                      throws MXException,
                             java.rmi.RemoteException
        Description copied from interface: ServiceInvoker
        Service invocation for Source and Target Mbo
        Specified by:
        invoke in interface ServiceInvoker
        Parameters:
        metaData - the meta data for the service invocation.
        sourceMbo - the source Mbo for the service invocation.
        targetMbo - the target Mbo for the service invocation.
        endPointName - the endpoint name for the service invocation.
        Returns:
        the response from the endpoint invocation if no target was available to set the response to.
        Throws:
        MXException
        java.rmi.RemoteException
      • invoke

        public byte[] invoke(java.util.Map metaData,
                             MboRemote sourceMbo,
                             MboSetRemote targetMboSet,
                             int action,
                             java.lang.String endPointName)
                      throws MXException,
                             java.rmi.RemoteException
        Description copied from interface: ServiceInvoker
        Service invocation for Source Mbo and Target MboSet
        Specified by:
        invoke in interface ServiceInvoker
        Parameters:
        metaData - the meta data for the service invocation.
        sourceMbo - the source Mbo for the service invocation.
        targetMboSet - the target MboSet for the service invocation.
        action - determites whether to update or add (to) the target MboSet. the value are MboSetRemote.INSERTONLY or MboSetRemote.UPDATEONLY
        endPointName - the endpoint name for the service invocation.
        Returns:
        the response from the endpoint invocation if no target was available to set the response to.
        Throws:
        MXException
        java.rmi.RemoteException
      • invoke

        public byte[] invoke(java.util.Map metaData,
                             MboSetRemote sourceMboSet,
                             MboRemote targetMbo,
                             java.lang.String endPointName)
                      throws MXException,
                             java.rmi.RemoteException
        Description copied from interface: ServiceInvoker
        Service invocation for Source MboSet and Target Mbo
        Specified by:
        invoke in interface ServiceInvoker
        Parameters:
        metaData - the meta data for the service invocation.
        sourceMboSet - the source MboSet for the service invocation.
        targetMbo - the target Mbo for the service invocation.
        endPointName - the endpoint name for the service invocation.
        Returns:
        the response from the endpoint invocation if no target was available to set the response to.
        Throws:
        MXException
        java.rmi.RemoteException
      • invoke

        public byte[] invoke(java.util.Map metaData,
                             MboSetRemote sourceMboSet,
                             MboSetRemote targetMboSet,
                             int action,
                             java.lang.String endPointName)
                      throws MXException,
                             java.rmi.RemoteException
        Description copied from interface: ServiceInvoker
        Service invocation for Source and Target MboSet
        Specified by:
        invoke in interface ServiceInvoker
        Parameters:
        metaData - the meta data for the service invocation.
        sourceMboSet - the source MboSet for the service invocation.
        targetMboSet - the target MboSet for the service invocation.
        action - determites whether to update or add (to) the target MboSet. the value are MboSetRemote.INSERTONLY or MboSetRemote.UPDATEONLY
        endPointName - the endpoint name for the service invocation.
        Returns:
        the response from the endpoint invocation if no target was available to set the response to.
        Throws:
        MXException
        java.rmi.RemoteException