Ice 3.6 Slice API Reference
All Classes Interfaces Structs Exceptions Modules Files Operations Constants Sequences Dictionaries Enumerations Enumerator Pages
Observer.ice
Go to the documentation of this file.
1 // **********************************************************************
2 //
3 // Copyright (c) 2003-2018 ZeroC, Inc. All rights reserved.
4 //
5 // This copy of Ice is licensed to you under the terms described in the
6 // ICE_LICENSE file included in this distribution.
7 //
8 // **********************************************************************
9 
10 #pragma once
11 
12 [["cpp:header-ext:h", "objc:header-dir:objc", "js:ice-build"]]
13 [["cpp:include:IceGrid/Config.h"]]
14 
15 #include <Glacier2/Session.ice>
16 #include <IceGrid/Exception.ice>
17 #include <IceGrid/Descriptor.ice>
18 #include <IceGrid/Admin.ice>
19 
20 ["objc:prefix:ICEGRID"]
21 module IceGrid
22 {
23 
30 {
36  string id;
37 
44 
50  int pid;
51 
57  bool enabled;
58 };
59 
65 ["java:type:java.util.LinkedList<ServerDynamicInfo>"] sequence<ServerDynamicInfo> ServerDynamicInfoSeq;
66 
73 {
79  string id;
80 
86  Object* proxy;
87 };
88 
94 ["java:type:java.util.LinkedList<AdapterDynamicInfo>"] sequence<AdapterDynamicInfo> AdapterDynamicInfoSeq;
95 
102 {
109 
116 
123 };
124 
130 sequence<NodeDynamicInfo> NodeDynamicInfoSeq;
131 
139 interface NodeObserver
140 {
149  void nodeInit(NodeDynamicInfoSeq nodes);
150 
159  void nodeUp(NodeDynamicInfo node);
160 
169  void nodeDown(string name);
170 
181  void updateServer(string node, ServerDynamicInfo updatedInfo);
182 
193  void updateAdapter(string node, AdapterDynamicInfo updatedInfo);
194 };
195 
204 {
218  void applicationInit(int serial, ApplicationInfoSeq applications);
219 
230  void applicationAdded(int serial, ApplicationInfo desc);
231 
242  void applicationRemoved(int serial, string name);
243 
254  void applicationUpdated(int serial, ApplicationUpdateInfo desc);
255 };
256 
264 {
274  void adapterInit(AdapterInfoSeq adpts);
275 
283  void adapterAdded(AdapterInfo info);
284 
293  void adapterUpdated(AdapterInfo info);
294 
303  void adapterRemoved(string id);
304 };
305 
311 interface ObjectObserver
312 {
322  void objectInit(ObjectInfoSeq objects);
323 
332  void objectAdded(ObjectInfo info);
333 
342  void objectUpdated(ObjectInfo info);
343 
352  void objectRemoved(Ice::Identity id);
353 };
354 
362 {
371  void registryInit(RegistryInfoSeq registries);
372 
381  void registryUp(RegistryInfo node);
382 
391  void registryDown(string name);
392 };
393 
394 };
395 
Dynamic information about the state of a node.
Definition: Observer.ice:101
ServerDynamicInfoSeq servers
The dynamic information of the servers deployed on this node.
Definition: Observer.ice:115
sequence< NodeDynamicInfo > NodeDynamicInfoSeq
A sequence of node dynamic information structures.
Definition: Observer.ice:130
Dynamic information about the state of a server.
Definition: Observer.ice:29
AdapterDynamicInfoSeq adapters
The dynamic information of the adapters deployed on this node.
Definition: Observer.ice:122
The database observer interface.
Definition: Observer.ice:203
int pid
The process id of the server.
Definition: Observer.ice:50
bool enabled
Indicates whether the server is enabled.
Definition: Observer.ice:57
ServerState
An enumeration representing the state of the server.
Definition: Admin.ice:32
This interface allows applications to monitor IceGrid well-known objects.
Definition: Observer.ice:311
NodeInfo info
Some static information about the node.
Definition: Observer.ice:108
The identity of an Ice object.
Definition: Identity.ice:28
This interface allows applications to monitor changes the state of the registry.
Definition: Observer.ice:361
Dynamic information about the state of an adapter.
Definition: Observer.ice:72
sequence< RegistryInfo > RegistryInfoSeq
A sequence of RegistryInfo structures.
Definition: Admin.ice:308
Object * proxy
The direct proxy containing the adapter endpoints.
Definition: Observer.ice:86
sequence< ObjectInfo > ObjectInfoSeq
A sequence of object information structures.
Definition: Admin.ice:123
Information about an IceGrid node.
Definition: Admin.ice:218
Information about an adapter registered with the IceGrid registry.
Definition: Admin.ice:131
string id
The id of the server.
Definition: Observer.ice:36
Information about an IceGrid registry replica.
Definition: Admin.ice:285
sequence< ServerDynamicInfo > ServerDynamicInfoSeq
A sequence of server dynamic information structures.
Definition: Observer.ice:65
Information about an IceGrid application.
Definition: Admin.ice:332
sequence< ApplicationInfo > ApplicationInfoSeq
A sequence of ApplicationInfo structures.
Definition: Admin.ice:361
The node observer interface.
Definition: Observer.ice:139
Information about updates to an IceGrid application.
Definition: Admin.ice:368
sequence< AdapterDynamicInfo > AdapterDynamicInfoSeq
A sequence of adapter dynamic information structures.
Definition: Observer.ice:94
ServerState state
The state of the server.
Definition: Observer.ice:43
IceGrid is a server activation and deployment tool.
Definition: Admin.ice:24
sequence< AdapterInfo > AdapterInfoSeq
A sequence of adapter information structures.
Definition: Admin.ice:161
Information about an Ice object.
Definition: Admin.ice:101
string id
The id of the adapter.
Definition: Observer.ice:79
This interface allows applications to monitor the state of object adapters that are registered with I...
Definition: Observer.ice:263