Ice 3.7 Slice API Reference
Loading...
Searching...
No Matches
Admin.ice
Go to the documentation of this file.
1//
2// Copyright (c) ZeroC, Inc. All rights reserved.
3//
4
5#pragma once
6
7[["cpp:dll-export:ICEGRID_API"]]
8[["cpp:doxygen:include:IceGrid/IceGrid.h"]]
9[["cpp:header-ext:h"]]
10[["cpp:include:IceGrid/Config.h"]]
11
12[["ice-prefix"]]
13
14[["js:module:ice"]]
15[["js:cjs-module"]]
16
17[["objc:dll-export:ICEGRID_API"]]
18[["objc:header-dir:objc"]]
19
20[["python:pkgdir:IceGrid"]]
21
22#include <Ice/Identity.ice>
24#include <Ice/Properties.ice>
26#include <Glacier2/Session.ice>
27#include <IceGrid/Exception.ice>
29
30#ifndef __SLICE2JAVA_COMPAT__
31[["java:package:com.zeroc"]]
32#endif
33
34["objc:prefix:ICEGRID"]
35module IceGrid
36{
37
98
104dictionary<string, Object*> StringObjectProxyDict;
105
111["cpp:comparable"]
113{
119 Object* proxy;
120
126 string type;
127}
128
134sequence<ObjectInfo> ObjectInfoSeq;
135
141["cpp:comparable"]
143{
149 string id;
150
156 Object* proxy;
157
165}
166
172sequence<AdapterInfo> AdapterInfoSeq;
173
180{
187
193 string uuid;
194
201
207 string node;
208
215
221 string sessionId;
222}
223
230{
236 string name;
237
243 string os;
244
251 string hostname;
252
258 string release;
259
265 string version;
266
272 string machine;
273
282
288 string dataDir;
289}
290
297{
303 string name;
304
311 string hostname;
312}
313
319sequence<RegistryInfo> RegistryInfoSeq;
320
327{
329 float avg1;
330
332 float avg5;
333
335 float avg15;
336}
337
344{
346 string uuid;
347
350
353
356
359
362
365}
366
372["java:type:java.util.LinkedList<ApplicationInfo>"] sequence<ApplicationInfo> ApplicationInfoSeq;
373
393
402interface Admin
403{
420
442
463
488
512
529 void removeApplication(string name)
531
555 void instantiateServer(string application, string node, ServerInstanceDescriptor desc)
557
573 ["amd"] void patchApplication(string name, bool shutdown)
575
588 ["nonmutating", "cpp:const"] idempotent ApplicationInfo getApplicationInfo(string name)
590
601 ["nonmutating", "cpp:const"] idempotent ApplicationDescriptor getDefaultApplicationDescriptor()
602 throws DeploymentException;
603
611 ["nonmutating", "cpp:const"] idempotent Ice::StringSeq getAllApplicationNames();
612
624 ["nonmutating", "cpp:const"] idempotent ServerInfo getServerInfo(string id)
626
644 ["nonmutating", "cpp:const"] idempotent ServerState getServerState(string id)
646
665 ["nonmutating", "cpp:const"] idempotent int getServerPid(string id)
667
677 ["cpp:const"]
678 idempotent string getServerAdminCategory();
679
697 ["cpp:const"]
698 idempotent Object* getServerAdmin(string id)
700
721 idempotent void enableServer(string id, bool enabled)
723
742 ["nonmutating", "cpp:const"] idempotent bool isServerEnabled(string id)
744
764 ["amd"] void startServer(string id)
766
786 ["amd"] void stopServer(string id)
788
810 ["amd"] void patchServer(string id, bool shutdown)
812
834 void sendSignal(string id, string signal)
836
844 ["nonmutating", "cpp:const"] idempotent Ice::StringSeq getAllServerIds();
845
863 ["nonmutating", "cpp:const"] idempotent AdapterInfoSeq getAdapterInfo(string id)
865
877 void removeAdapter(string id)
879
887 ["nonmutating", "cpp:const"] idempotent Ice::StringSeq getAllAdapterIds();
888
905 void addObject(Object* obj)
907
925 void updateObject(Object* obj)
927
943 void addObjectWithType(Object* obj, string type)
945
964 void removeObject(Ice::Identity id)
966
979 ["nonmutating", "cpp:const"] idempotent ObjectInfo getObjectInfo(Ice::Identity id)
981
992 ["nonmutating", "cpp:const"] idempotent ObjectInfoSeq getObjectInfosByType(string type);
993
1007 ["nonmutating", "cpp:const"] idempotent ObjectInfoSeq getAllObjectInfos(string expr);
1008
1020 ["nonmutating", "cpp:const"] idempotent bool pingNode(string name)
1021 throws NodeNotExistException;
1022
1037 ["nonmutating", "cpp:const"] idempotent LoadInfo getNodeLoad(string name)
1039
1054 ["nonmutating", "cpp:const"] idempotent NodeInfo getNodeInfo(string name)
1056
1071 ["cpp:const"] idempotent Object* getNodeAdmin(string name)
1073
1095 ["nonmutating", "cpp:const"] idempotent int getNodeProcessorSocketCount(string name)
1097
1110 void shutdownNode(string name)
1112
1127 ["nonmutating", "cpp:const"] idempotent string getNodeHostname(string name)
1129
1137 ["nonmutating", "cpp:const"] idempotent Ice::StringSeq getAllNodeNames();
1138
1150 ["cpp:const"] idempotent bool pingRegistry(string name)
1152
1167 ["cpp:const"] idempotent RegistryInfo getRegistryInfo(string name)
1169
1181 ["cpp:const"] idempotent Object* getRegistryAdmin(string name)
1183
1196 idempotent void shutdownRegistry(string name)
1198
1206 ["cpp:const"] idempotent Ice::StringSeq getAllRegistryNames();
1207
1213 void shutdown();
1214
1222 ["nonmutating", "cpp:const"] idempotent Ice::SliceChecksumDict getSliceChecksums();
1223}
1224
1231{
1252 bool read(int size, out Ice::StringSeq lines)
1254
1260 void destroy();
1261}
1262
1269{
1275 string id;
1276
1283
1289 int pid;
1290
1297}
1298
1304["java:type:java.util.LinkedList<ServerDynamicInfo>"] sequence<ServerDynamicInfo> ServerDynamicInfoSeq;
1305
1312{
1318 string id;
1319
1325 Object* proxy;
1326}
1327
1333["java:type:java.util.LinkedList<AdapterDynamicInfo>"] sequence<AdapterDynamicInfo> AdapterDynamicInfoSeq;
1334
1363
1371{
1381
1391
1400 void registryDown(string name);
1401}
1402
1408sequence<NodeDynamicInfo> NodeDynamicInfoSeq;
1409
1418{
1428
1438
1447 void nodeDown(string name);
1448
1459 void updateServer(string node, ServerDynamicInfo updatedInfo);
1460
1471 void updateAdapter(string node, AdapterDynamicInfo updatedInfo);
1472}
1473
1482{
1496 void applicationInit(int serial, ApplicationInfoSeq applications);
1497
1508 void applicationAdded(int serial, ApplicationInfo desc);
1509
1520 void applicationRemoved(int serial, string name);
1521
1533}
1534
1542{
1553
1562
1572
1581 void adapterRemoved(string id);
1582}
1583
1590{
1601
1611
1621
1631}
1632
1644{
1653 idempotent void keepAlive();
1654
1663 ["nonmutating", "cpp:const"] idempotent Admin* getAdmin();
1664
1676 ["cpp:const"] idempotent Object* getAdminCallbackTemplate();
1677
1698 idempotent void setObservers(RegistryObserver* registryObs, NodeObserver* nodeObs, ApplicationObserver* appObs,
1699 AdapterObserver* adptObs, ObjectObserver* objObs)
1701
1724 idempotent void setObserversByIdentity(Ice::Identity registryObs, Ice::Identity nodeObs, Ice::Identity appObs,
1725 Ice::Identity adptObs, Ice::Identity objObs)
1727
1740 throws AccessDeniedException;
1741
1751 throws AccessDeniedException;
1752
1760 ["cpp:const"] idempotent string getReplicaName();
1761
1792 FileIterator* openServerLog(string id, string path, int count)
1794
1821 FileIterator* openServerStdErr(string id, int count)
1823
1850 FileIterator* openServerStdOut(string id, int count)
1852
1875 FileIterator* openNodeStdErr(string name, int count)
1877
1900 FileIterator* openNodeStdOut(string name, int count)
1902
1926 FileIterator* openRegistryStdErr(string name, int count)
1928
1952 FileIterator * openRegistryStdOut(string name, int count)
1954
1955}
1956
1957}
An Ice server descriptor.
Definition Descriptor.ice:337
This exception is raised if a registry lock wasn't acquired or is already held by a session.
Definition Exception.ice:305
This exception is raised if an adapter does not exist.
Definition Exception.ice:117
This exception is raised if an application does not exist.
Definition Exception.ice:43
This exception is raised if an unknown signal was sent to to a server.
Definition Exception.ice:274
An exception for deployment errors.
Definition Exception.ice:192
This exception is raised if a file is not available.
Definition Exception.ice:387
This exception is raised if a node does not exist.
Definition Exception.ice:162
This exception is raised if a node could not be reached.
Definition Exception.ice:207
This exception is raised if an object already exists.
Definition Exception.ice:132
This exception is raised if an object is not registered.
Definition Exception.ice:147
This exception is raised if an observer is already registered with the registry.
Definition Exception.ice:365
This exception is raised if a patch failed.
Definition Exception.ice:289
This exception is raised if a registry does not exist.
Definition Exception.ice:177
This exception is raised if a registry could not be reached.
Definition Exception.ice:251
This exception is raised if a server does not exist.
Definition Exception.ice:58
This exception is raised if a server failed to start.
Definition Exception.ice:73
This exception is raised if a server failed to stop.
Definition Exception.ice:95
A client-visible session object, which is tied to the lifecycle of a Router.
Definition Session.ice:57
This interface allows applications to monitor the state of object adapters that are registered with I...
Definition Admin.ice:1542
void adapterInit(AdapterInfoSeq adpts)
adapterInit is called after registration of an observer to indicate the state of the registry.
void adapterRemoved(string id)
The adapterRemoved operation is called to notify an observer when a dynamically-registered adapter wa...
void adapterAdded(AdapterInfo info)
The adapterAdded operation is called to notify an observer when a dynamically-registered adapter was ...
void adapterUpdated(AdapterInfo info)
The adapterUpdated operation is called to notify an observer when a dynamically-registered adapter wa...
Used by administrative clients to view, update, and receive observer updates from the IceGrid registr...
Definition Admin.ice:1644
FileIterator * openNodeStdOut(string name, int count)
Open the given node stdout file for reading.
idempotent Object * getAdminCallbackTemplate()
Get a "template" proxy for admin callback objects.
int startUpdate()
Acquires an exclusive lock to start updating the registry applications.
FileIterator * openServerLog(string id, string path, int count)
Open the given server log file for reading.
idempotent string getReplicaName()
Get the name of the registry replica hosting this session.
FileIterator * openRegistryStdErr(string name, int count)
Open the given registry stderr file for reading.
FileIterator * openServerStdErr(string id, int count)
Open the given server stderr file for reading.
idempotent void setObservers(RegistryObserver *registryObs, NodeObserver *nodeObs, ApplicationObserver *appObs, AdapterObserver *adptObs, ObjectObserver *objObs)
Set the observer proxies that receive notifications when the state of the registry or nodes changes.
FileIterator * openRegistryStdOut(string name, int count)
Open the given registry stdout file for reading.
idempotent void keepAlive()
Keep the session alive.
idempotent void setObserversByIdentity(Ice::Identity registryObs, Ice::Identity nodeObs, Ice::Identity appObs, Ice::Identity adptObs, Ice::Identity objObs)
Set the observer identities that receive notifications the state of the registry or nodes changes.
FileIterator * openNodeStdErr(string name, int count)
Open the given node stderr file for reading.
void finishUpdate()
Finish updating the registry and release the exclusive lock.
idempotent Admin * getAdmin()
Get the admin interface.
FileIterator * openServerStdOut(string id, int count)
Open the given server stdout file for reading.
The IceGrid administrative interface.
Definition Admin.ice:403
void removeObject(Ice::Identity id)
Remove an object from the object registry.
idempotent RegistryInfo getRegistryInfo(string name)
Get the registry information for the registry with the given name.
idempotent ApplicationDescriptor getDefaultApplicationDescriptor()
Get the default application descriptor.
idempotent ObjectInfoSeq getAllObjectInfos(string expr)
Get the object info of all the registered objects whose stringified identities match the given expres...
idempotent int getNodeProcessorSocketCount(string name)
Get the number of physical processor sockets for the machine running the node with the given name.
idempotent Ice::StringSeq getAllRegistryNames()
Get all the IceGrid registries currently registered.
idempotent Object * getNodeAdmin(string name)
Get a proxy to the IceGrid node's admin object.
idempotent string getNodeHostname(string name)
Get the hostname of this node.
idempotent Object * getServerAdmin(string id)
Get a proxy to the server's admin object.
idempotent Ice::StringSeq getAllServerIds()
Get all the server ids registered with IceGrid.
void removeAdapter(string id)
Remove the adapter with the given id.
idempotent bool isServerEnabled(string id)
Check if the server is enabled or disabled.
idempotent void enableServer(string id, bool enabled)
Enable or disable a server.
void updateObject(Object *obj)
Update an object in the object registry.
void updateApplication(ApplicationUpdateDescriptor descriptor)
Update a deployed application with the given update application descriptor.
idempotent bool pingNode(string name)
Ping an IceGrid node to see if it is active.
void instantiateServer(string application, string node, ServerInstanceDescriptor desc)
Instantiate a server template from an application on the given node.
idempotent ServerState getServerState(string id)
Get a server's state.
void patchServer(string id, bool shutdown)
Patch a server.
idempotent bool pingRegistry(string name)
Ping an IceGrid registry to see if it is active.
void startServer(string id)
Start a server and wait for its activation.
idempotent NodeInfo getNodeInfo(string name)
Get the node information for the node with the given name.
void syncApplication(ApplicationDescriptor descriptor)
Synchronize a deployed application with the given application descriptor.
void addObjectWithType(Object *obj, string type)
Add an object to the object registry and explicitly specify its type.
idempotent ServerInfo getServerInfo(string id)
Get the server information for the server with the given id.
idempotent string getServerAdminCategory()
Get the category for server admin objects.
void removeApplication(string name)
Remove an application from IceGrid.
idempotent ApplicationInfo getApplicationInfo(string name)
Get an application descriptor.
idempotent ObjectInfoSeq getObjectInfosByType(string type)
Get the object info of all the registered objects with the given type.
void addObject(Object *obj)
Add an object to the object registry.
idempotent AdapterInfoSeq getAdapterInfo(string id)
Get the adapter information for the replica group or adapter with the given id.
idempotent Ice::SliceChecksumDict getSliceChecksums()
Returns the checksums for the IceGrid Slice definitions.
void updateApplicationWithoutRestart(ApplicationUpdateDescriptor descriptor)
Update a deployed application with the given update application descriptor only if no server restarts...
void addApplication(ApplicationDescriptor descriptor)
Add an application to IceGrid.
idempotent Ice::StringSeq getAllApplicationNames()
Get all the IceGrid applications currently registered.
idempotent int getServerPid(string id)
Get a server's system process id.
idempotent void shutdownRegistry(string name)
Shutdown an IceGrid registry.
void shutdownNode(string name)
Shutdown an IceGrid node.
idempotent ObjectInfo getObjectInfo(Ice::Identity id)
Get the object info for the object with the given identity.
void syncApplicationWithoutRestart(ApplicationDescriptor descriptor)
Synchronize a deployed application with the given application descriptor.
void sendSignal(string id, string signal)
Send signal to a server.
void stopServer(string id)
Stop a server.
idempotent Ice::StringSeq getAllAdapterIds()
Get all the adapter ids registered with IceGrid.
void patchApplication(string name, bool shutdown)
Patch the given application data.
idempotent LoadInfo getNodeLoad(string name)
Get the load averages of the node.
idempotent Ice::StringSeq getAllNodeNames()
Get all the IceGrid nodes currently registered.
void shutdown()
Shut down the IceGrid registry.
idempotent Object * getRegistryAdmin(string name)
Get a proxy to the IceGrid registry's admin object.
The database observer interface.
Definition Admin.ice:1482
void applicationAdded(int serial, ApplicationInfo desc)
The applicationAdded operation is called to notify an observer that an application was added.
void applicationUpdated(int serial, ApplicationUpdateInfo desc)
The applicationUpdated operation is called to notify an observer that an application was updated.
void applicationInit(int serial, ApplicationInfoSeq applications)
applicationInit is called after the registration of an observer to indicate the state of the registry...
void applicationRemoved(int serial, string name)
The applicationRemoved operation is called to notify an observer that an application was removed.
This interface provides access to IceGrid log file contents.
Definition Admin.ice:1231
bool read(int size, out Ice::StringSeq lines)
Read lines from the log file.
void destroy()
Destroy the iterator.
The node observer interface.
Definition Admin.ice:1418
void updateServer(string node, ServerDynamicInfo updatedInfo)
The updateServer operation is called to notify an observer that the state of a server changed.
void nodeInit(NodeDynamicInfoSeq nodes)
The nodeInit operation indicates the current state of nodes.
void updateAdapter(string node, AdapterDynamicInfo updatedInfo)
The updateAdapter operation is called to notify an observer that the state of an adapter changed.
void nodeUp(NodeDynamicInfo node)
The nodeUp operation is called to notify an observer that a node came up.
void nodeDown(string name)
The nodeDown operation is called to notify an observer that a node went down.
This interface allows applications to monitor IceGrid well-known objects.
Definition Admin.ice:1590
void objectAdded(ObjectInfo info)
The objectAdded operation is called to notify an observer when an object was added to the Admin inter...
void objectUpdated(ObjectInfo info)
objectUpdated is called to notify an observer when an object registered with the Admin interface was ...
void objectInit(ObjectInfoSeq objects)
objectInit is called after the registration of an observer to indicate the state of the registry.
void objectRemoved(Ice::Identity id)
objectRemoved is called to notify an observer when an object registered with the Admin interface was ...
This interface allows applications to monitor changes the state of the registry.
Definition Admin.ice:1371
void registryUp(RegistryInfo node)
The nodeUp operation is called to notify an observer that a node came up.
void registryInit(RegistryInfoSeq registries)
The registryInit operation is called after registration of an observer to indicate the state of the r...
void registryDown(string name)
The nodeDown operation is called to notify an observer that a node went down.
Definition Admin.ice:36
sequence< NodeDynamicInfo > NodeDynamicInfoSeq
A sequence of node dynamic information structures.
Definition Admin.ice:1408
dictionary< string, Object > StringObjectProxyDict
A dictionary of proxies.
Definition Admin.ice:104
sequence< AdapterDynamicInfo > AdapterDynamicInfoSeq
A sequence of adapter dynamic information structures.
Definition Admin.ice:1333
ServerState
An enumeration representing the state of the server.
Definition Admin.ice:44
@ Destroyed
The server is destroyed.
Definition Admin.ice:96
@ ActivationTimedOut
The activation timed out state indicates that the server activation timed out.
Definition Admin.ice:68
@ Activating
The server is being activated and will change to the active state when the registered server object a...
Definition Admin.ice:60
@ Deactivating
The server is being deactivated.
Definition Admin.ice:82
@ Active
The server is running.
Definition Admin.ice:75
@ Destroying
The server is being destroyed.
Definition Admin.ice:89
@ Inactive
The server is not running.
Definition Admin.ice:50
sequence< ApplicationInfo > ApplicationInfoSeq
A sequence of ApplicationInfo structures.
Definition Admin.ice:372
sequence< AdapterInfo > AdapterInfoSeq
A sequence of adapter information structures.
Definition Admin.ice:172
sequence< RegistryInfo > RegistryInfoSeq
A sequence of RegistryInfo structures.
Definition Admin.ice:319
sequence< ObjectInfo > ObjectInfoSeq
A sequence of object information structures.
Definition Admin.ice:134
sequence< ServerDynamicInfo > ServerDynamicInfoSeq
A sequence of server dynamic information structures.
Definition Admin.ice:1304
The Ice core library.
Definition BuiltinSequences.ice:27
sequence< string > StringSeq
A sequence of strings.
Definition BuiltinSequences.ice:51
Dynamic information about the state of an adapter.
Definition Admin.ice:1312
string id
The id of the adapter.
Definition Admin.ice:1318
Object * proxy
The direct proxy containing the adapter endpoints.
Definition Admin.ice:1325
Information about an adapter registered with the IceGrid registry.
Definition Admin.ice:143
Object * proxy
A dummy direct proxy that contains the adapter endpoints.
Definition Admin.ice:156
string id
The id of the adapter.
Definition Admin.ice:149
string replicaGroupId
The replica group id of the object adapter, or empty if the adapter doesn't belong to a replica group...
Definition Admin.ice:164
An application descriptor.
Definition Descriptor.ice:797
Information about an IceGrid application.
Definition Admin.ice:344
string uuid
Unique application identifier.
Definition Admin.ice:346
long updateTime
The update time.
Definition Admin.ice:355
ApplicationDescriptor descriptor
The application descriptor.
Definition Admin.ice:364
string createUser
The user who created the application.
Definition Admin.ice:352
string updateUser
The user who updated the application.
Definition Admin.ice:358
int revision
The application revision number.
Definition Admin.ice:361
long createTime
The creation time.
Definition Admin.ice:349
An application update descriptor to describe the updates to apply to a deployed application.
Definition Descriptor.ice:986
Information about updates to an IceGrid application.
Definition Admin.ice:380
ApplicationUpdateDescriptor descriptor
The update descriptor.
Definition Admin.ice:391
string updateUser
The user who updated the application.
Definition Admin.ice:385
int revision
The application revision number.
Definition Admin.ice:388
long updateTime
The update time.
Definition Admin.ice:382
Information about the load of a node.
Definition Admin.ice:327
float avg5
The load average over the past 5 minutes.
Definition Admin.ice:332
float avg15
The load average over the past 15 minutes.
Definition Admin.ice:335
float avg1
The load average over the past minute.
Definition Admin.ice:329
Dynamic information about the state of a node.
Definition Admin.ice:1341
ServerDynamicInfoSeq servers
The dynamic information of the servers deployed on this node.
Definition Admin.ice:1354
NodeInfo info
Some static information about the node.
Definition Admin.ice:1347
AdapterDynamicInfoSeq adapters
The dynamic information of the adapters deployed on this node.
Definition Admin.ice:1361
Information about an IceGrid node.
Definition Admin.ice:230
string release
The operation system release level (as defined in uname()).
Definition Admin.ice:258
string version
The operation system version (as defined in uname()).
Definition Admin.ice:265
string dataDir
The path to the node data directory.
Definition Admin.ice:288
string name
The name of the node.
Definition Admin.ice:236
int nProcessors
The number of processor threads on the node.
Definition Admin.ice:281
string hostname
The network name of the host running this node (as defined in uname()).
Definition Admin.ice:251
string os
The operating system name.
Definition Admin.ice:243
string machine
The machine hardware type (as defined in uname()).
Definition Admin.ice:272
Information about an Ice object.
Definition Admin.ice:113
Object * proxy
The proxy of the object.
Definition Admin.ice:119
string type
The type of the object.
Definition Admin.ice:126
Information about an IceGrid registry replica.
Definition Admin.ice:297
string hostname
The network name of the host running this registry (as defined in uname()).
Definition Admin.ice:311
string name
The name of the registry.
Definition Admin.ice:303
Dynamic information about the state of a server.
Definition Admin.ice:1269
bool enabled
Indicates whether the server is enabled.
Definition Admin.ice:1296
ServerState state
The state of the server.
Definition Admin.ice:1282
int pid
The process id of the server.
Definition Admin.ice:1289
string id
The id of the server.
Definition Admin.ice:1275
Information about a server managed by an IceGrid node.
Definition Admin.ice:180
string node
The server node.
Definition Admin.ice:207
string uuid
The application uuid.
Definition Admin.ice:193
int revision
The application revision.
Definition Admin.ice:200
ServerDescriptor descriptor
The server descriptor.
Definition Admin.ice:214
string sessionId
The id of the session which allocated the server.
Definition Admin.ice:221
string application
The server application.
Definition Admin.ice:186
A server template instance descriptor.
Definition Descriptor.ice:481
The identity of an Ice object.
Definition Identity.ice:40