/usr/share/ice/slice/IceGrid/Registry.ice is in zeroc-ice-slice 3.7.0-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 | // **********************************************************************
//
// Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************
#pragma once
[["ice-prefix", "cpp:header-ext:h", "cpp:dll-export:ICEGRID_API", "objc:header-dir:objc", "objc:dll-export:ICEGRID_API", "js:ice-build", "python:pkgdir:IceGrid"]]
[["cpp:include:IceGrid/Config.h"]]
#include <IceGrid/Exception.ice>
#include <IceGrid/Session.ice>
#include <IceGrid/Admin.ice>
#include <Ice/Locator.ice>
#ifndef __SLICE2JAVA_COMPAT__
[["java:package:com.zeroc"]]
#endif
["objc:prefix:ICEGRID"]
module IceGrid
{
/**
*
* Determines which load sampling interval to use.
*
**/
enum LoadSample
{
/**
* Sample every minute.
**/
LoadSample1,
/**
* Sample every five minutes.
**/
LoadSample5,
/**
* Sample every fifteen minutes.
**/
LoadSample15
}
/**
*
* The IceGrid query interface. This interface is accessible to
* Ice clients who wish to look up well-known objects.
*
**/
interface Query
{
/**
*
* Find a well-known object by identity.
*
* @param id The identity.
*
* @return The proxy or null if no such object has been found.
*
**/
["nonmutating", "cpp:const"] idempotent Object* findObjectById(Ice::Identity id);
/**
*
* Find a well-known object by type. If there are several objects
* registered for the given type, the object is randomly
* selected.
*
* @param type The object type.
*
* @return The proxy or null, if no such object has been found.
*
**/
["nonmutating", "cpp:const"] idempotent Object* findObjectByType(string type);
/**
*
* 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.
*
* @param type The object type.
*
* @param sample The sampling interval.
*
* @return The proxy or null, if no such object has been found.
*
**/
["nonmutating", "cpp:const"] idempotent Object* findObjectByTypeOnLeastLoadedNode(string type, LoadSample sample);
/**
*
* Find all the well-known objects with the given type.
*
* @param type The object type.
*
* @return The proxies or an empty sequence, if no such objects
* have been found.
*
**/
["nonmutating", "cpp:const"] idempotent Ice::ObjectProxySeq findAllObjectsByType(string type);
/**
*
* 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.
*
* @param proxy The object proxy.
*
* @return The proxies of each object replica or an empty sequence,
* if the given proxy is not from a replica group.
*
**/
["cpp:const"] idempotent Ice::ObjectProxySeq findAllReplicas(Object* proxy);
}
/**
*
* The IceGrid registry allows clients create sessions
* directly with the registry.
*
* @see Session
* @see AdminSession
*
**/
interface Registry
{
/**
*
* Create a client session.
*
* @return A proxy for the newly created session.
*
* @param userId The user id.
*
* @param password The password for the given user id.
*
* @throws PermissionDeniedException Raised if the password for
* the given user id is not correct, or if the user is not allowed
* access.
*
**/
Session* createSession(string userId, string password)
throws PermissionDeniedException;
/**
*
* Create an administrative session.
*
* @return A proxy for the newly created session.
*
* @param userId The user id.
*
* @param password The password for the given user id.
*
* @throws PermissionDeniedException Raised if the password for
* the given user id is not correct, or if the user is not allowed
* access.
*
**/
AdminSession* createAdminSession(string userId, string password)
throws PermissionDeniedException;
/**
*
* Create a client session from a secure connection.
*
* @return A proxy for the newly created session.
*
* @throws PermissionDeniedException Raised if the password for
* the given user id is not correct, or if the user is not allowed
* access.
*
**/
Session* createSessionFromSecureConnection()
throws PermissionDeniedException;
/**
*
* Create an administrative session from a secure connection.
*
* @return A proxy for the newly created session.
*
* @throws PermissionDeniedException Raised if the password for
* the given user id is not correct, or if the user is not allowed
* access.
*
**/
AdminSession* createAdminSessionFromSecureConnection()
throws PermissionDeniedException;
/**
*
* Get the session timeout. If a client or administrative client
* doesn't call the session keepAlive method in the time interval
* defined by this timeout, IceGrid might reap the session.
*
* @see Session#keepAlive
* @see AdminSession#keepAlive
*
* @return The timeout (in seconds).
*
**/
["nonmutating", "cpp:const"] idempotent int getSessionTimeout();
/**
*
* Get the value of the ACM timeout. Clients supporting ACM
* connection heartbeats can enable them instead of explicitly
* sending keep alives requests.
*
* NOTE: This method is only available since Ice 3.6.
*
* @return The timeout (in seconds).
*
**/
["nonmutating", "cpp:const"] idempotent int getACMTimeout();
}
/**
*
* The IceGrid locator interface provides access to the {@link Query}
* and {@link Registry} object of the IceGrid registry.
*
* @see Query
* @see Registry
*
**/
interface Locator extends Ice::Locator
{
/**
*
* Get the proxy of the registry object hosted by this IceGrid
* registry.
*
* @return The proxy of the registry object.
*
**/
["cpp:const"] idempotent Registry* getLocalRegistry();
/**
*
* Get the proxy of the query object hosted by this IceGrid
* registry.
*
* @return The proxy of the query object.
*
**/
["cpp:const"] idempotent Query* getLocalQuery();
}
}
|