Interface Query

All Superinterfaces:
Object

public interface Query extends Object
The IceGrid query interface. This interface is accessible to Ice clients who wish to look up well-known objects.
  • Method Details

    • findObjectById

      ObjectPrx findObjectById(Identity id, Current current)
      Find a well-known object by identity.
      Parameters:
      id - The identity.
      current - The Current object for the invocation.
      Returns:
      The proxy or null if no such object has been found.
    • findObjectByType

      ObjectPrx findObjectByType(String type, Current current)
      Find a well-known object by type. If there are several objects registered for the given type, the object is randomly selected.
      Parameters:
      type - The object type.
      current - The Current object for the invocation.
      Returns:
      The proxy or null, if no such object has been found.
    • findObjectByTypeOnLeastLoadedNode

      ObjectPrx findObjectByTypeOnLeastLoadedNode(String type, LoadSample sample, Current current)
      Find a well-known object by type on the least-loaded node. If the registry does not know which node hosts the object (for example, because the object was registered with a direct proxy), the registry assumes the object is hosted on a node that has a load average of 1.0.
      Parameters:
      type - The object type.
      sample - The sampling interval.
      current - The Current object for the invocation.
      Returns:
      The proxy or null, if no such object has been found.
    • findAllObjectsByType

      ObjectPrx[] findAllObjectsByType(String type, Current current)
      Find all the well-known objects with the given type.
      Parameters:
      type - The object type.
      current - The Current object for the invocation.
      Returns:
      The proxies or an empty sequence, if no such objects have been found.
    • findAllReplicas

      ObjectPrx[] findAllReplicas(ObjectPrx proxy, Current current)
      Find all the object replicas associated with the given proxy. If the given proxy is not an indirect proxy from a replica group, an empty sequence is returned.
      Parameters:
      proxy - The object proxy.
      current - The Current object for the invocation.
      Returns:
      The proxies of each object replica or an empty sequence, if the given proxy is not from a replica group.
    • ice_ids

      default String[] ice_ids(Current current)
      Description copied from interface: Object
      Returns the Slice type IDs of the interfaces supported by this object.
      Specified by:
      ice_ids in interface Object
      Parameters:
      current - The Current object for the invocation.
      Returns:
      The Slice type IDs of the interfaces supported by this object, in base-to-derived order. The first element of the returned array is always ::Ice::Object.
    • ice_id

      default String ice_id(Current current)
      Description copied from interface: Object
      Returns the Slice type ID of the most-derived interface supported by this object.
      Specified by:
      ice_id in interface Object
      Parameters:
      current - The Current object for the invocation.
      Returns:
      The Slice type ID of the most-derived interface.
    • ice_staticId

      static String ice_staticId()
      Description copied from interface: Object
      Returns the Slice type ID of the interface supported by this object.
      Returns:
      The return value is always ::Ice::Object.