Used by administrative clients to view, update, and receive observer updates from the IceGrid registry.
More...
defined in <IceGrid/Admin.ice>
interface AdminSession extends Glacier2::Session { ... }
|
| void | finishUpdate () throws AccessDeniedException |
| | Finish updating the registry and release the exclusive lock.
|
| idempotent Admin * | getAdmin () |
| | Get the admin interface.
|
| idempotent Object * | getAdminCallbackTemplate () |
| | Get a "template" proxy for admin callback objects.
|
| idempotent string | getReplicaName () |
| | Get the name of the registry replica hosting this session.
|
| idempotent void | keepAlive () |
| | Keep the session alive.
|
| FileIterator * | openNodeStdErr (string name, int count) throws FileNotAvailableException, NodeNotExistException, NodeUnreachableException |
| | Open the given node stderr file for reading.
|
| FileIterator * | openNodeStdOut (string name, int count) throws FileNotAvailableException, NodeNotExistException, NodeUnreachableException |
| | Open the given node stdout file for reading.
|
| FileIterator * | openRegistryStdErr (string name, int count) throws FileNotAvailableException, RegistryNotExistException, RegistryUnreachableException |
| | Open the given registry stderr file for reading.
|
| FileIterator * | openRegistryStdOut (string name, int count) throws FileNotAvailableException, RegistryNotExistException, RegistryUnreachableException |
| | Open the given registry stdout file for reading.
|
| FileIterator * | openServerLog (string id, string path, int count) throws FileNotAvailableException, ServerNotExistException, NodeUnreachableException, DeploymentException |
| | Open the given server log file for reading.
|
| FileIterator * | openServerStdErr (string id, int count) throws FileNotAvailableException, ServerNotExistException, NodeUnreachableException, DeploymentException |
| | Open the given server stderr file for reading.
|
| FileIterator * | openServerStdOut (string id, int count) throws FileNotAvailableException, ServerNotExistException, NodeUnreachableException, DeploymentException |
| | Open the given server stdout file for reading.
|
| idempotent void | setObservers (RegistryObserver *registryObs, NodeObserver *nodeObs, ApplicationObserver *appObs, AdapterObserver *adptObs, ObjectObserver *objObs) throws ObserverAlreadyRegisteredException |
| | Set the observer proxies that receive notifications when the state of the registry or nodes changes.
|
| idempotent void | setObserversByIdentity (Ice::Identity registryObs, Ice::Identity nodeObs, Ice::Identity appObs, Ice::Identity adptObs, Ice::Identity objObs) throws ObserverAlreadyRegisteredException |
| | Set the observer identities that receive notifications the state of the registry or nodes changes.
|
| int | startUpdate () throws AccessDeniedException |
| | Acquires an exclusive lock to start updating the registry applications.
|
| void | destroy () |
| | Destroy the session.
|
Used by administrative clients to view, update, and receive observer updates from the IceGrid registry.
Admin sessions are created either via the Registry object or via the registry admin SessionManager object.
- See also
- Registry
◆ finishUpdate()
Finish updating the registry and release the exclusive lock.
- Exceptions
-
◆ getAdmin()
["nonmutating","cpp:const"]
| idempotent Admin * getAdmin |
( |
| ) |
|
Get the admin interface.
The admin object returned by this operation can only be accessed by the session.
- Returns
- The admin interface proxy.
◆ getAdminCallbackTemplate()
["cpp:const"]
| idempotent Object * getAdminCallbackTemplate |
( |
| ) |
|
Get a "template" proxy for admin callback objects.
An Admin client uses this proxy to set the category of its callback objects, and the published endpoints of the object adapter hosting the admin callback objects.
- Returns
- A template proxy. The returned proxy is null when the Admin session was established using Glacier2.
◆ getReplicaName()
["cpp:const"]
| idempotent string getReplicaName |
( |
| ) |
|
Get the name of the registry replica hosting this session.
- Returns
- The replica name of the registry.
◆ keepAlive()
| idempotent void keepAlive |
( |
| ) |
|
Keep the session alive.
Clients should call this operation regularly to prevent the server from reaping the session.
- See also
- Registry::getSessionTimeout
◆ openNodeStdErr()
Open the given node stderr file for reading.
The file can be read with the returned file iterator.
- Parameters
-
| name | The node name. |
| count | Specifies where to start reading the file. If negative, the file is read from the begining. If 0 or positive, the file is read from the last count lines. |
- Returns
- An iterator to read the file.
- Exceptions
-
◆ openNodeStdOut()
Open the given node stdout file for reading.
The file can be read with the returned file iterator.
- Parameters
-
| name | The node name. |
| count | Specifies where to start reading the file. If negative, the file is read from the begining. If 0 or positive, the file is read from the last count lines. |
- Returns
- An iterator to read the file.
- Exceptions
-
◆ openRegistryStdErr()
Open the given registry stderr file for reading.
The file can be read with the returned file iterator.
- Parameters
-
| name | The registry name. |
| count | Specifies where to start reading the file. If negative, the file is read from the begining. If 0 or positive, the file is read from the last count lines. |
- Returns
- An iterator to read the file.
- Exceptions
-
◆ openRegistryStdOut()
Open the given registry stdout file for reading.
The file can be read with the returned file iterator.
- Parameters
-
| name | The registry name. |
| count | Specifies where to start reading the file. If negative, the file is read from the begining. If 0 or positive, the file is read from the last count lines. |
- Returns
- An iterator to read the file.
- Exceptions
-
◆ openServerLog()
Open the given server log file for reading.
The file can be read with the returned file iterator.
- Parameters
-
| id | The server id. |
| path | The path of the log file. A log file can be opened only if it's declared in the server or service deployment descriptor. |
| count | Specifies where to start reading the file. If negative, the file is read from the begining. If 0 or positive, the file is read from the last count lines. |
- Returns
- An iterator to read the file.
- Exceptions
-
◆ openServerStdErr()
Open the given server stderr file for reading.
The file can be read with the returned file iterator.
- Parameters
-
| id | The server id. |
| count | Specifies where to start reading the file. If negative, the file is read from the begining. If 0 or positive, the file is read from the last count lines. |
- Returns
- An iterator to read the file.
- Exceptions
-
◆ openServerStdOut()
Open the given server stdout file for reading.
The file can be read with the returned file iterator.
- Parameters
-
| id | The server id. |
| count | Specifies where to start reading the file. If negative, the file is read from the begining. If 0 or positive, the file is read from the last count lines. |
- Returns
- An iterator to read the file.
- Exceptions
-
◆ setObservers()
Set the observer proxies that receive notifications when the state of the registry or nodes changes.
- Parameters
-
| registryObs | The registry observer. |
| nodeObs | The node observer. |
| appObs | The application observer. |
| adptObs | The adapter observer. |
| objObs | The object observer. |
- Exceptions
-
◆ setObserversByIdentity()
Set the observer identities that receive notifications the state of the registry or nodes changes.
This operation should be used by clients that are using a bidirectional connection to communicate with the session.
- Parameters
-
| registryObs | The registry observer identity. |
| nodeObs | The node observer identity. |
| appObs | The application observer. |
| adptObs | The adapter observer. |
| objObs | The object observer. |
- Exceptions
-
◆ startUpdate()
Acquires an exclusive lock to start updating the registry applications.
- Returns
- The current serial.
- Exceptions
-
| AccessDeniedException | Raised if the exclusive lock can't be acquired. This might happen if the lock is currently acquired by another session. |
The documentation for this interface was generated from the following file: