Class GlobalInvocationTarget

  • All Implemented Interfaces:
    InvocationTarget

    public class GlobalInvocationTarget
    extends Object
    implements InvocationTarget
    The invocation target for global URIs resolving global URIs to local URIs and providing the corresponding invocation target.
    • Field Detail

      • gir

        protected final GlobalInvocationResolver gir
        The object handling the global registry invocation. This is used for resolving the global registry URI as well as invalidating the global registry in case of communication problems.
    • Constructor Detail

      • GlobalInvocationTarget

        protected GlobalInvocationTarget​(GlobalInvocationResolver gir)
        Creates a new invocation target for global URIs.
        Parameters:
        gir - The object handling the global registry invocation. This is used for resolving the global registry URI as well as invalidating the global registry in case of communication problems.
    • Method Detail

      • getInvocationHandling

        public InvocationTarget.InvocationHandling getInvocationHandling​(URI remId,
                                                                         URI regId)
        Description copied from interface: InvocationTarget
        Gets the interfaces required to handle the invocation for the designated URI. These are the invocation delegate for proxy calls, the export for callback objects as well as the communication service specific URI.
        Specified by:
        getInvocationHandling in interface InvocationTarget
        Parameters:
        remId - The (physical) remote identifier for which to get the invocation delegate, the callback export and the communication service specific URI.
        regId - The original (logical) remote identifier of the remote service to call, in case a URI mapping was applied on the original URI.
        Returns:
        The invocation delegate, the callback export and the communication service specific URI.
      • getInstanceNameFromServiceUri

        public String getInstanceNameFromServiceUri​(URI remId)
        Description copied from interface: InvocationTarget
        Returns the hierarchical instance name from the designated remote identifier.
        Only to be called by the registry or communication framework.

        Whenever the instance name needs to be derived from a service identifier, this method should be called. This keeps the way, how the instance name is stored in the identifier more exchangeable.

        Specified by:
        getInstanceNameFromServiceUri in interface InvocationTarget
        Parameters:
        remId - The remote identifier from which to retrieve the service instance name.
        Returns:
        The hierarchical instance name from the designated identifier.
      • getServiceInstNames

        public Pair<String,​String> getServiceInstNames​(URI remId)
        Description copied from interface: InvocationTarget
        Gets the component type name and the simple instance name of the service instance the designated remote identifier refers to.
        Specified by:
        getServiceInstNames in interface InvocationTarget
        Parameters:
        remId - The remote identifier from which to retrieve the service instance name.
        Returns:
        The component type name and the simple instance name of the service instance the designated remote identifier refers to.