OmniEvents
|
Classes | |
class | Callback |
Interface for classes that wish to receive callbacks from deferred requests. More... | |
class | ConsumerAdmin_i |
class | Daemon |
Interface class that contains various methods for running omniEvents as a background task. More... | |
class | DaemonImpl |
Utility class that contains various methods for running omniEvents as a Unix daemon. More... | |
class | Win |
Utility class, contains functions that Windows should have, but doesn't. More... | |
class | RegistryKey |
Opens a windows registry key, and closed it upon destruction. More... | |
class | Service |
Singleton class that contains various methods for running a Windows service. More... | |
class | EventChannel_i |
Servant for CosEventChannelAdmin::EventChannel objects, also inherits from omni_thread. More... | |
class | EventChannelStore |
Container for Event Channels. More... | |
class | EventChannelFactory_i |
class | EventQueue |
The EventQueue is a circular buffer, that contains _size-1 events. More... | |
class | Filter |
Event filter interface. More... | |
class | FilterByTCKind |
The most basic event filter allows only events of a certain CORBA TCKind to pass. More... | |
class | FilterByRepositoryId |
Allows only events of a certain CORBA RepositoryId to pass. More... | |
class | Mapper |
A dummy servant that installs itself into the INSPOA and redirects all calls to the real destination. More... | |
class | timestamp |
This class can be used to generate timestamps. More... | |
class | omniEventsLog |
class | omniEventsLogWorker |
class | WriteLock |
Obtains an output stream to the active persistancy logfile, and locks it for exclusive access. More... | |
class | Orb |
Singleton class that owns the ORB and various initial references. More... | |
class | PersistNode |
class | ProxyManager |
Base class for ServantActivator classes that manage Proxy servants. More... | |
class | Proxy |
Base class for three of the four Proxy servants. More... | |
class | ProxyPullConsumerManager |
class | ProxyPullConsumer_i |
Implementation of the ProxyPullConsumer interface. More... | |
class | ProxyPullSupplierManager |
class | ProxyPullSupplier_i |
Servant for ProxyPullSupplier interface. More... | |
class | ProxyPushConsumer_i |
Default servant for ProxyPushConsumer objects. More... | |
class | omni_mutex_kcol |
The opposite of omni_mutex_lock, unlocks the mutex upon construction and re-locks it upon destruction. More... | |
class | ProxyPushSupplierManager |
class | ProxyPushSupplier_i |
class | Servant |
Base class for servants. More... | |
class | SupplierAdmin_i |
Functions | |
void | shutdown0 (void) |
Param to atexit(). More... | |
void | shutdown2 (int s, void *) |
Param to on_exit(). More... | |
void | usage (int argc, char **argv) |
void | insertArgs (int &argc, char **&argv, int idx, int nargs) |
Utility function, used to manipulate argv when using omniORB3. More... | |
template<class T > | |
T::_ptr_type | string_to_ (const char *oidStr) |
Converts a string to a narrowed reference. More... | |
CORBA::Object_ptr | createReference (PortableServer::POA_ptr poa, const char *repositoryId) |
Helper method called by createNarrowedReference(). More... | |
char * | newUniqueId () |
Generates a unique object ID string, based upon the current PID and time. More... | |
template<class T > | |
T::_ptr_type | createNarrowedReference (PortableServer::POA_ptr poa, const char *repositoryId) |
Helper method that creates a new CORBA object and then narrows it to the appropriate type. More... | |
const char * | version () |
Returns the constant version ID and copyright string. More... | |
Variables | |
DaemonImpl | daemon |
Singleton - only at file scope. More... | |
static Service | service |
Singleton - only at file scope. More... | |
timestamp | ts |
T::_ptr_type OmniEvents::createNarrowedReference | ( | PortableServer::POA_ptr | poa, |
const char * | repositoryId | ||
) |
Helper method that creates a new CORBA object and then narrows it to the appropriate type.
Wrapper around POA::create_reference_with_id. The type T must match the repositoryId parameter. Called by a class' createObject() method.
poa | POA to own new object. |
repositoryId | Identifies the type of object to make. e.g. _tc_ProxyPushSupplier->id(). |
Definition at line 96 of file Servant.h.
References createReference().
CORBA::Object_ptr OmniEvents::createReference | ( | PortableServer::POA_ptr | poa, |
const char * | repositoryId | ||
) |
Helper method called by createNarrowedReference().
poa | POA to own new object. |
repositoryId | Identifies the type of object to make. e.g. _tc_ProxyPushSupplier->id(). |
Definition at line 54 of file Servant.cc.
References newUniqueId().
Referenced by createNarrowedReference().
void OmniEvents::insertArgs | ( | int & | argc, |
char **& | argv, | ||
int | idx, | ||
int | nargs | ||
) |
Utility function, used to manipulate argv when using omniORB3.
Definition at line 97 of file omniEvents.cc.
char * OmniEvents::newUniqueId | ( | ) |
Generates a unique object ID string, based upon the current PID and time.
Definition at line 71 of file Servant.cc.
References mutex.
Referenced by OmniEvents::EventChannelFactory_i::create_object(), and createReference().
void OmniEvents::shutdown0 | ( | void | ) |
Param to atexit().
Param to atexit()
Definition at line 114 of file daemon_unix.cc.
References daemon, and OmniEvents::DaemonImpl::shutdown().
Referenced by OmniEvents::DaemonImpl::daemonize(), and OmniEvents::Service::daemonize().
void OmniEvents::shutdown2 | ( | int | s, |
void * | |||
) |
Param to on_exit().
Definition at line 115 of file daemon_unix.cc.
References daemon, and OmniEvents::DaemonImpl::shutdown().
Referenced by OmniEvents::DaemonImpl::daemonize().
T::_ptr_type OmniEvents::string_to_ | ( | const char * | oidStr | ) |
void OmniEvents::usage | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 49 of file omniEvents.cc.
References OMNIEVENTS_LOG_DEFAULT_LOCATION, OMNIEVENTS_LOGDIR_ENV_VAR, and PACKAGE_NAME.
const char * OmniEvents::version | ( | ) |
Returns the constant version ID and copyright string.
Definition at line 32 of file version.cc.
References PACKAGE_STRING.
DaemonImpl OmniEvents::daemon |
Singleton - only at file scope.
Although we initialize the value to NULL, we don't trust that the runtime will actually initialise it.
Definition at line 94 of file daemon_unix.cc.
Referenced by OmniEvents::Daemon::Daemon(), OmniEvents::Daemon::daemonize(), OmniEvents::Daemon::foreground(), OmniEvents::DaemonImpl::log(), main(), OmniEvents::Daemon::pidfile(), OmniEvents::Daemon::runningOk(), shutdown0(), shutdown2(), OmniEvents::Daemon::tracefile(), and OmniEvents::Daemon::~Daemon().
|
static |
Singleton - only at file scope.
Definition at line 166 of file daemon_windows.cc.
Referenced by OmniEvents::Service::ctrlHandler(), OmniEvents::Service::install(), OmniEvents::Service::log(), and OmniEvents::Service::uninstall().
timestamp OmniEvents::ts |
Definition at line 275 of file omniEventsLog.cc.
Referenced by OmniEvents::omniEventsLog::checkpoint().