Ice 3.7 C++11 API Reference
|
Used by administrative clients to view, update, and receive observer updates from the IceGrid registry. More...
#include <IceGrid/IceGrid.h>
Public Types | |
using | ProxyType = AdminSessionPrx |
Public Types inherited from Glacier2::Session | |
using | ProxyType = SessionPrx |
Public Member Functions | |
virtual void | finishUpdate (const ::Ice::Current ¤t)=0 |
Finish updating the registry and release the exclusive lock. More... | |
virtual ::std::shared_ptr< AdminPrx > | getAdmin (const ::Ice::Current ¤t) const =0 |
Get the admin interface. More... | |
virtual ::std::shared_ptr<::Ice::ObjectPrx > | getAdminCallbackTemplate (const ::Ice::Current ¤t) const =0 |
Get a "template" proxy for admin callback objects. More... | |
virtual ::std::string | getReplicaName (const ::Ice::Current ¤t) const =0 |
Get the name of the registry replica hosting this session. More... | |
virtual ::std::string | ice_id (const ::Ice::Current ¤t) const override |
Obtains a Slice type ID representing the most-derived interface supported by this object. More... | |
virtual ::std::vector<::std::string > | ice_ids (const ::Ice::Current ¤t) const override |
Obtains a list of the Slice type IDs representing the interfaces supported by this object. More... | |
virtual bool | ice_isA (::std::string id, const ::Ice::Current ¤t) const override |
Determines whether this object supports an interface with the given Slice type ID. More... | |
virtual void | keepAlive (const ::Ice::Current ¤t)=0 |
Keep the session alive. More... | |
virtual ::std::shared_ptr< FileIteratorPrx > | openNodeStdErr (::std::string name, int count, const ::Ice::Current ¤t)=0 |
Open the given node stderr file for reading. More... | |
virtual ::std::shared_ptr< FileIteratorPrx > | openNodeStdOut (::std::string name, int count, const ::Ice::Current ¤t)=0 |
Open the given node stdout file for reading. More... | |
virtual ::std::shared_ptr< FileIteratorPrx > | openRegistryStdErr (::std::string name, int count, const ::Ice::Current ¤t)=0 |
Open the given registry stderr file for reading. More... | |
virtual ::std::shared_ptr< FileIteratorPrx > | openRegistryStdOut (::std::string name, int count, const ::Ice::Current ¤t)=0 |
Open the given registry stdout file for reading. More... | |
virtual ::std::shared_ptr< FileIteratorPrx > | openServerLog (::std::string id, ::std::string path, int count, const ::Ice::Current ¤t)=0 |
Open the given server log file for reading. More... | |
virtual ::std::shared_ptr< FileIteratorPrx > | openServerStdErr (::std::string id, int count, const ::Ice::Current ¤t)=0 |
Open the given server stderr file for reading. More... | |
virtual ::std::shared_ptr< FileIteratorPrx > | openServerStdOut (::std::string id, int count, const ::Ice::Current ¤t)=0 |
Open the given server stdout file for reading. More... | |
virtual void | setObservers (::std::shared_ptr< RegistryObserverPrx > registryObs, ::std::shared_ptr< NodeObserverPrx > nodeObs, ::std::shared_ptr< ApplicationObserverPrx > appObs, ::std::shared_ptr< AdapterObserverPrx > adptObs, ::std::shared_ptr< ObjectObserverPrx > objObs, const ::Ice::Current ¤t)=0 |
Set the observer proxies that receive notifications when the state of the registry or nodes changes. More... | |
virtual void | setObserversByIdentity (::Ice::Identity registryObs, ::Ice::Identity nodeObs, ::Ice::Identity appObs, ::Ice::Identity adptObs, ::Ice::Identity objObs, const ::Ice::Current ¤t)=0 |
Set the observer identities that receive notifications the state of the registry or nodes changes. More... | |
virtual int | startUpdate (const ::Ice::Current ¤t)=0 |
Acquires an exclusive lock to start updating the registry applications. More... | |
Public Member Functions inherited from Glacier2::Session | |
virtual void | destroy (const ::Ice::Current ¤t)=0 |
Destroy the session. More... | |
virtual ::std::string | ice_id (const ::Ice::Current ¤t) const override |
Obtains a Slice type ID representing the most-derived interface supported by this object. More... | |
virtual ::std::vector<::std::string > | ice_ids (const ::Ice::Current ¤t) const override |
Obtains a list of the Slice type IDs representing the interfaces supported by this object. More... | |
Public Member Functions inherited from Ice::Object | |
virtual bool | ice_dispatch (Ice::Request &request, std::function< bool()> response=nullptr, std::function< bool(std::exception_ptr)> error=nullptr) |
Dispatches an invocation to a servant. More... | |
virtual std::string | ice_id (const Current ¤t) const |
Returns the Slice type ID of the most-derived interface supported by this object. More... | |
virtual std::vector< std::string > | ice_ids (const Current ¤t) const |
Returns the Slice type IDs of the interfaces supported by this object. More... | |
virtual bool | ice_isA (std::string s, const Current ¤t) const |
Tests whether this object supports a specific Slice interface. More... | |
virtual void | ice_ping (const Current ¤t) const |
Tests whether this object can be reached. More... | |
virtual | ~Object ()=default |
Static Public Member Functions | |
static const ::std::string & | ice_staticId () |
Obtains the Slice type ID corresponding to this class. More... | |
Static Public Member Functions inherited from Glacier2::Session | |
static const ::std::string & | ice_staticId () |
Obtains the Slice type ID corresponding to this class. More... | |
Static Public Member Functions inherited from Ice::Object | |
static const std::string & | ice_staticId () |
Obtains the Slice type ID of this type. More... | |
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.
|
pure virtual |
Finish updating the registry and release the exclusive lock.
current | The Current object for the invocation. |
IceGrid::AccessDeniedException | Raised if the session doesn't hold the exclusive lock. |
|
pure virtual |
Get the admin interface.
The admin object returned by this operation can only be accessed by the session.
current | The Current object for the invocation. |
|
pure virtual |
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.
current | The Current object for the invocation. |
|
pure virtual |
Get the name of the registry replica hosting this session.
current | The Current object for the invocation. |
|
override |
Obtains a Slice type ID representing the most-derived interface supported by this object.
current | The Current object for the invocation. |
|
override |
Obtains a list of the Slice type IDs representing the interfaces supported by this object.
current | The Current object for the invocation. |
|
overridevirtual |
Determines whether this object supports an interface with the given Slice type ID.
id | The fully-scoped Slice type ID. |
current | The Current object for the invocation. |
Reimplemented from Glacier2::Session.
|
static |
Obtains the Slice type ID corresponding to this class.
|
pure virtual |
Keep the session alive.
Clients should call this operation regularly to prevent the server from reaping the session.
current | The Current object for the invocation. |
|
pure virtual |
Open the given node stderr file for reading.
The file can be read with the returned file iterator.
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. |
current | The Current object for the invocation. |
IceGrid::FileNotAvailableException | Raised if the file can't be read. |
IceGrid::NodeNotExistException | Raised if the node doesn't exist. |
IceGrid::NodeUnreachableException | Raised if the node could not be reached. |
|
pure virtual |
Open the given node stdout file for reading.
The file can be read with the returned file iterator.
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. |
current | The Current object for the invocation. |
IceGrid::FileNotAvailableException | Raised if the file can't be read. |
IceGrid::NodeNotExistException | Raised if the node doesn't exist. |
IceGrid::NodeUnreachableException | Raised if the node could not be reached. |
|
pure virtual |
Open the given registry stderr file for reading.
The file can be read with the returned file iterator.
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. |
current | The Current object for the invocation. |
IceGrid::FileNotAvailableException | Raised if the file can't be read. |
IceGrid::RegistryNotExistException | Raised if the registry doesn't exist. |
IceGrid::RegistryUnreachableException | Raised if the registry could not be reached. |
|
pure virtual |
Open the given registry stdout file for reading.
The file can be read with the returned file iterator.
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. |
current | The Current object for the invocation. |
IceGrid::FileNotAvailableException | Raised if the file can't be read. |
IceGrid::RegistryNotExistException | Raised if the registry doesn't exist. |
IceGrid::RegistryUnreachableException | Raised if the registry could not be reached. |
|
pure virtual |
Open the given server log file for reading.
The file can be read with the returned file iterator.
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. |
current | The Current object for the invocation. |
IceGrid::DeploymentException | Raised if the server couldn't be deployed on the node. |
IceGrid::FileNotAvailableException | Raised if the file can't be read. |
IceGrid::NodeUnreachableException | Raised if the node could not be reached. |
IceGrid::ServerNotExistException | Raised if the server doesn't exist. |
|
pure virtual |
Open the given server stderr file for reading.
The file can be read with the returned file iterator.
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. |
current | The Current object for the invocation. |
IceGrid::DeploymentException | Raised if the server couldn't be deployed on the node. |
IceGrid::FileNotAvailableException | Raised if the file can't be read. |
IceGrid::NodeUnreachableException | Raised if the node could not be reached. |
IceGrid::ServerNotExistException | Raised if the server doesn't exist. |
|
pure virtual |
Open the given server stdout file for reading.
The file can be read with the returned file iterator.
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. |
current | The Current object for the invocation. |
IceGrid::DeploymentException | Raised if the server couldn't be deployed on the node. |
IceGrid::FileNotAvailableException | Raised if the file can't be read. |
IceGrid::NodeUnreachableException | Raised if the node could not be reached. |
IceGrid::ServerNotExistException | Raised if the server doesn't exist. |
|
pure virtual |
Set the observer proxies that receive notifications when the state of the registry or nodes changes.
registryObs | The registry observer. |
nodeObs | The node observer. |
appObs | The application observer. |
adptObs | The adapter observer. |
objObs | The object observer. |
current | The Current object for the invocation. |
IceGrid::ObserverAlreadyRegisteredException | Raised if an observer is already registered with this registry. |
|
pure virtual |
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.
registryObs | The registry observer identity. |
nodeObs | The node observer identity. |
appObs | The application observer. |
adptObs | The adapter observer. |
objObs | The object observer. |
current | The Current object for the invocation. |
IceGrid::ObserverAlreadyRegisteredException | Raised if an observer is already registered with this registry. |
|
pure virtual |
Acquires an exclusive lock to start updating the registry applications.
current | The Current object for the invocation. |
IceGrid::AccessDeniedException | Raised if the exclusive lock can't be acquired. This might happen if the lock is currently acquired by another session. |