Nevelex Corporation Nevelex Utilities 1.1.4 09/06/2003
Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

nevelex_util::ACEHelper Class Reference

#include <ACEHelper.h>

List of all members.

Static Public Methods

bool isLocalAddress (unsigned long address)
bool isLocalAddress (const ACE_INET_Addr &address)
bool isTaskActive (const char *name, ACE_Task< ACE_MT_SYNCH > &task)
void stopTask (const char *name, ACE_Task< ACE_MT_SYNCH > &task)
bool isTaskActive (const char *name, ACE_Task< ACE_NULL_SYNCH > &task)
void stopTask (const char *name, ACE_Task< ACE_NULL_SYNCH > &task)


Detailed Description

Interface used as an abstraction for generating log entries.

Author:
Michel Dalal
Date:
Tue Nov 12 2002
Version:
1.0: Initial version.
1.1 11/13/2002: Add isTaskActive method.
1.2 11/14/2002: Added isLocalAddress methods.
1.3 06/18/2003: Added additional isTaskActive and stopTask methods to handle all types of ACE_Tasks (ACE_SYNCH_DECL).
1.3.1 06/23/2003: Ported to Mac OS X. Explicitly specified std namespace for STL classes.


Member Function Documentation

bool nevelex_util::ACEHelper::isLocalAddress ( const ACE_INET_Addr & address ) [static]
 

Determines if the supplied ACE_INET_Addr is a local IP address.

Parameters:
address   the address to check.
Returns:
true if the address is a local IP address.
Exceptions:
std::runtime_error   if unable to determine local IP addresses.

bool nevelex_util::ACEHelper::isLocalAddress ( unsigned long address ) [static]
 

Determines if the supplied IPv4 address is a local IP address.

Parameters:
address   the address to check. Must be in host byte order.
Returns:
true if the address is a local IP address.
Exceptions:
std::runtime_error   if unable to determine local IP addresses.

bool nevelex_util::ACEHelper::isTaskActive ( const char * name,
ACE_Task< ACE_NULL_SYNCH > & task ) [static]
 

Determines if there are 1 or more active threads associated with the supplied task.

Parameters:
name   the name of the task.
task   the task to be checked.
Returns:
true if there are any active threads associated with the task.

bool nevelex_util::ACEHelper::isTaskActive ( const char * name,
ACE_Task< ACE_MT_SYNCH > & task ) [static]
 

Determines if there are 1 or more active threads associated with the supplied task.

Parameters:
name   the name of the task.
task   the task to be checked.
Returns:
true if there are any active threads associated with the task.

void nevelex_util::ACEHelper::stopTask ( const char * name,
ACE_Task< ACE_NULL_SYNCH > & task ) [static]
 

Stops all running threads associated with the supplied ACE_Task object. First cancels the threads. If the cancel fails, it will kill the threads.

Parameters:
name   the name of the task.
task   the task whos threads are to be stopped.

void nevelex_util::ACEHelper::stopTask ( const char * name,
ACE_Task< ACE_MT_SYNCH > & task ) [static]
 

Stops all running threads associated with the supplied ACE_Task object. First cancels the threads. If the cancel fails, it will kill the threads.

Parameters:
name   the name of the task.
task   the task whos threads are to be stopped.


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