#include <maciSimpleClient.h>
Collaboration diagram for maci::SimpleClient:
Public Member Functions | |
SimpleClient () | |
virtual | ~SimpleClient () |
int | destroy () |
int | initCORBA (int argc, char *argv[]) |
CORBA::ORB_ptr | getORB () |
int | doneCORBA () |
int | login () |
int | logout () |
int | init (int argc, char *argv[]) |
int | run (ACE_Time_Value &tv) |
int | run () |
maci::Manager_ptr | manager () |
maci::Handle | handle () |
CORBA::Object_ptr | getComponent (const char *name, const char *domain, bool activate) |
CORBA::Object_ptr | get_object (const char *name, const char *domain, bool activate) |
template<class T> T * | getComponent (const char *name, const char *domain, bool activate) |
CORBA::Object * | getDynamicComponent (maci::ComponentSpec compSpec, bool markAsDefault) |
template<class T> T * | getDynamicComponent (maci::ComponentSpec compSpec, bool markAsDefault) |
template<class T> ComponentSmartPtr< T > | getComponentSmartPtr (const char *name, const char *domain, bool activate) |
template<class T> ComponentSmartPtr< T > | getDynamicComponentSmartPtr (maci::ComponentSpec compSpec, bool markAsDefault) |
template<class T> T * | get_object (const char *name, const char *domain, bool activate) |
CORBA::Object * | getComponentNonSticky (const char *name) |
template<class T> T * | getComponentNonSticky (const char *name) |
template<class T> ComponentSmartPtr< T > | getComponentNonStickySmartPtr (const char *name) |
long | releaseComponent (const char *name) |
virtual char * | name () |
virtual void | disconnect () |
virtual::maci::AuthenticationData * | authenticate (::maci::ExecutionId execution_id, const char *question) |
virtual void | message (CORBA::Short type, const char *message) |
virtual void | taggedmessage (CORBA::Short type, CORBA::Short tag, const char *message) |
virtual void | components_available (const maci::ComponentInfoSeq &cobs) |
virtual void | components_unavailable (const maci::stringSeq &cob_names) |
virtual CORBA::Boolean | ping () |
Static Public Member Functions | |
void | initThread (const char *threadName) |
void | doneThread () |
LoggingProxy * | getLoggerProxy () |
const char * | getProcessName () |
Private Attributes | |
maci::Manager_var | m_manager |
Reference to the Manager. | |
maci::Handle | m_handle |
Handle. | |
bool | m_initialized |
Initialization status. | |
PortableServer::POA_var | m_poaRoot |
Root POA. | |
PortableServer::POA_var | m_poaPersistent |
Persistent POA. | |
PortableServer::POA_var | m_poaTransient |
Persistent POA. | |
CORBA::ORB_var | m_orb |
The CORBA ORB. | |
maci::SimpleClientThreadHook | m_simpleClientThreadHook |
threads' standard start-up hook | |
maci::ExecutionId | m_executionId |
execution id | |
ACS::Time | m_startTime |
client start time | |
Static Private Attributes | |
LoggingProxy * | m_logger |
Logger. | |
ACE_CString | m_processName |
The name of the process. |
|
Constructor. |
|
Destructor. |
|
Authentication method. Method authenticate is the challenge issued to the client after it tries to login. The login will be successful if the client's authenticate() produces the expected result. Only in this case will the Manager's login method return a valid handle, which the client will later use as the id parameter with all calls to the Manager.
|
|
Notify client about the change (availability) of the components currently in use by this client. For administrative clients, notification is issued for the change of availability of any component in the domain.
|
|
Notify client that some of the components currently in use by client have become unavailable.
|
|
Destroys Client.
|
|
Disconnect notification. The disconnect method is called by the Manager to notify the client that it will be unavailable and that the client should log off. |
|
Finalizes CORBA.
|
|
|
|
It just redirected call to getComponent (template version)
|
|
It just redirect call to the getComponent
|
|
Get a component, activating it if necessary and directly narrows it to the type declared in the template definition. The client must have adequate access rights to access the component. This is untrue of components: NameService, Log, LogFactory, NotifyEventChannelFactory, ArchivingChannel, LoggingChannel, InterfaceRepository, CDB and PDB.
|
|
Get a component, activating it if necessary. The client must have adequate access rights to access the component. This is untrue of components: NameService, Log, LogFactory, NotifyEventChannelFactory, ArchivingChannel, LoggingChannel, InterfaceRepository, CDB and PDB.
|
|
template version of getComponentNonSticky Returns a non-sticky reference to a component
|
|
Returns a non-sticky reference to a component
|
|
template version of getComponentNonSticky Returns a SmartPointer to a component
|
|
Get a SmartPointer to a component, activating it if necessary and directly narrows it to the type declared in the template definition. The client must have adequate access rights to access the component. This is untrue of components: NameService, Log, LogFactory, NotifyEventChannelFactory, ArchivingChannel, LoggingChannel, InterfaceRepository, CDB and PDB.
|
|
|
|
|
|
|
|
Get logging proxy instance
|
|
Get ORB |
|
Get SimpleClient's proces name
|
|
Get handle of the client.
|
|
The init method logs in to the requested manager. Default is the local manager (if no arguments are given). To specify a remote manager give the parameter -m corbaloc::<host name="">:<port number="">/<manager> example: -m corbaloc::te1.hq.eso.org:xxxx/Manager
|
|
Initializes CORBA.
|
|
|
|
Login method Logins client to the manager.
|
|
Logout method.
|
|
Get manager CORBA reference.
|
|
The Manager and administrators use this method for sending textual messages to the client.
|
|
Client name |
|
Manager pings its clients (both GUI clients, as well as Containers) repeatedly to verify that they still exist. The return value can be either
|
|
Releases the componet.
|
|
Run the ORB event loop until terminated or shutdown.
|
|
Run the ORB event loop with the specified <tv> time value.
|
|
The Manager and administrators use this method for sending tagged textual messages to the client.
|
|
execution id
|
|
Handle.
|
|
Initialization status.
|
|
Logger.
|
|
Reference to the Manager.
|
|
The CORBA ORB.
|
|
Persistent POA.
|
|
Root POA.
|
|
Persistent POA.
|
|
The name of the process.
|
|
threads' standard start-up hook
|
|
client start time
|