Class GlobalInvocationTarget

java.lang.Object
de.aristaflow.adept2.base.registry.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 Details

    • 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 Details

    • 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 Details

    • 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.
    • 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.