Ice
3.8
Slice API Reference
Loading...
Searching...
No Matches
IceDiscovery
Lookup.ice
1
// Copyright (c) ZeroC, Inc.
2
3
#pragma once
4
5
[[
"cpp:header-ext:h"
]]
6
7
[[
"js:module:@zeroc/ice"
]]
8
9
#include "Ice/Identity.ice"
10
11
[
"java:identifier:com.zeroc.IceDiscovery"
]
12
module IceDiscovery
13
{
14
/// Represents a callback object implemented by IceDiscovery clients. It allows IceDiscovery clients to receive
15
/// replies to {@link Lookup} requests.
16
interface
LookupReply
17
{
18
/// Provides a reply to a {@link Lookup#findObjectById} request.
19
/// @param id The identity of the object.
20
/// @param prx The proxy of the object. This proxy is never null.
21
void
foundObjectById(Ice::Identity
id
,
Object
* prx);
22
23
/// Provides a reply to a {@link Lookup#findAdapterById} request.
24
/// @param id The adapter ID.
25
/// @param prx The adapter proxy (a dummy proxy created by the adapter). The proxy provides the adapter
26
/// endpoints. This proxy is never null.
27
/// @param isReplicaGroup Indicates whether the adapter is a member of a replica group.
28
void
foundAdapterById(
string
id
,
Object
* prx,
bool
isReplicaGroup);
29
}
30
31
/// Looks up objects and object adapters using UDP multicast.
32
interface
Lookup
33
{
34
/// Finds a well-known Ice object.
35
/// @param domainId The IceDiscovery domain identifier. An IceDiscovery client only replies to requests with a
36
/// matching domain identifier.
37
/// @param id The well-known object identity.
38
/// @param reply The proxy of the {@link LookupReply} interface that should be used to send the reply if a
39
/// matching object is found. The reply proxy is never null.
40
idempotent
void
findObjectById(
string
domainId, Ice::Identity
id
, LookupReply* reply);
41
42
/// Finds an object adapter.
43
/// @param domainId The IceDiscovery domain identifier. An IceDiscovery client only replies to requests with a
44
/// matching domain identifier.
45
/// @param id The adapter ID.
46
/// @param reply The proxy of the {@link LookupReply} interface that should be used to send the reply if a
47
/// matching adapter is found. The reply proxy is never null.
48
idempotent
void
findAdapterById(
string
domainId,
string
id
, LookupReply* reply);
49
}
50
}
Generated by
1.14.0