INTRODUCTION
Overview
Download and Install
Quick Start
Documentation
Publications

NONFRAMEWORK CODE
Driver Interfaces
Drivers
Libraries
Utilities

FRAMEWORK CODE
Interfaces
Components
Libraries
Utilities

Full Software Listings

DEVELOPER
Tutorials
Examples
Dev Guide
Dashboard

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         

orcaicegrid::IceGridManager Class Reference

Wraps up functions remotely controlling an IceGrid Registry. More...

#include <icegridmanager.h>

Inherits orcaicegrid::AbstractIceGridManager, and orcaicegrid::IceGridSession.

List of all members.

Public Member Functions

 IceGridManager (const orcaice::Context &context, const IceGrid::RegistryObserverPrx &reg=IceGrid::RegistryObserverPrx(), const IceGrid::NodeObserverPrx &node=IceGrid::NodeObserverPrx(), const IceGrid::ApplicationObserverPrx &app=IceGrid::ApplicationObserverPrx(), const IceGrid::AdapterObserverPrx &adpt=IceGrid::AdapterObserverPrx(), const IceGrid::ObjectObserverPrx &obj=IceGrid::ObjectObserverPrx())
 Constructor.
virtual IceGrid::ApplicationInfo getApplicationInfo (const std::string &appName, int timeoutMs=-1)
 Tells IceGrid to get app info.
virtual void addApplication (IceGrid::ApplicationDescriptor descriptor, int timeoutMs=-1)
 Tells IceGrid to add app from file.
virtual void updateApplication (IceGrid::ApplicationUpdateDescriptor descriptor, int timeoutMs=-1)
 Tells IceGrid to upadate app from file.
virtual void patchApplication (const std::string &appName, bool shutdown, int timeoutMs=-1)
 Tells IceGrid to patch app.
virtual void removeApplication (const std::string &appName, int timeoutMs=-1)
 Tells IceGrid to remove app.
virtual IceGrid::ServerState getServerState (const std::string &serverId, int timeoutMs=-1)
 Tells IceGrid to get server state.
virtual void startServer (const std::string &serverId, int timeoutMs=-1)
 Tells IceGrid to start server.
virtual void stopServer (const std::string &serverId, int timeoutMs=-1)
 Tells IceGrid to stop server.
virtual IceGridManagerState state ()
 Returns current state of the manager.
virtual void setObserver (IceGridManagerObserver *observer)
 There can be only one observer.
virtual bool connectedEvent ()
virtual void disconnectedEvent ()

Detailed Description

Wraps up functions remotely controlling an IceGrid Registry.

This thing is thread-safe.

Only two exceptions are caught: TimeoutException and ObjectNotExistException. Both indicate that the remote call time out (just now or earlier). Both conditions lead to reinitialization of the session.

Implementations of all methods inhereted from AbstractIceGridManager throw gbxutilacfr::Exception when something goes wrong.

All operations may throw SessionNotConnectedException.

Author:
Alex Brooks

Member Function Documentation

bool orcaicegrid::IceGridManager::connectedEvent (  )  [virtual]

Reimplement this to perform custom action right after a new session is created. Returns TRUE if successful. On FALSE the session is destroyed and another one is created.

Reimplemented from orcaicegrid::IceGridSession.

References orcaice::Context::tracer().

void orcaicegrid::IceGridManager::disconnectedEvent (  )  [virtual]

Reimplement this to perform custom action right after a existing session was lost (intentionally or not). (No value is returned because nothing can be done if something does go wrong).

Reimplemented from orcaicegrid::IceGridSession.

References orcaice::Context::tracer().


The documentation for this class was generated from the following files:
 

Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)


Generated for Orca Robotics by  doxygen 1.4.5