Interface Locator

All Superinterfaces:
Locator, Object

public interface Locator extends Locator
Provides access to the QueryPrx and RegistryPrx objects implemented by the IceGrid registry.
  • Method Details

    • getLocalRegistry

      RegistryPrx getLocalRegistry(Current current)
      Gets a proxy to the registry object hosted by this IceGrid registry.
      Parameters:
      current - The Current object of the incoming request.
      Returns:
      A proxy to the registry object. This proxy is never null.
    • getLocalQuery

      QueryPrx getLocalQuery(Current current)
      Gets a proxy to the query object hosted by this IceGrid registry.
      Parameters:
      current - The Current object of the incoming request.
      Returns:
      A proxy to the query object. This proxy is never null.
    • ice_staticId

      static String ice_staticId()
      Gets the type ID of the associated Slice interface.
      Returns:
      the string "::IceGrid::Locator"
    • dispatch

      default CompletionStage<OutgoingResponse> dispatch(IncomingRequest request) throws UserException
      Dispatches an incoming request to one of the methods of this generated interface, based on the operation name carried by the request.
      Specified by:
      dispatch in interface Locator
      Specified by:
      dispatch in interface Object
      Parameters:
      request - the incoming request
      Returns:
      the outgoing response
      Throws:
      UserException - if a UserException is thrown, Ice will marshal it as the response payload.