TAO_CosTime
2.1.9
|
TimeService Object Implementation. More...
#include <TAO_Time_Service_Clerk.h>
Public Types | |
typedef ACE_Array_Base < CosTime::TimeService_var > | IORS |
Unbounded set of IORs. More... | |
Public Member Functions | |
TAO_Time_Service_Clerk (int timer_value, int timer_value_usecs, const IORS &server) | |
Constructor. More... | |
~TAO_Time_Service_Clerk (void) | |
Destructor. More... | |
virtual CosTime::UTO_ptr | universal_time (void) |
virtual CosTime::UTO_ptr | secure_universal_time (void) |
virtual CosTime::UTO_ptr | new_universal_time (TimeBase::TimeT time, TimeBase::InaccuracyT inaccuracy, TimeBase::TdfT tdf) |
This creates a new UTO based on the given parameters. More... | |
virtual CosTime::UTO_ptr | uto_from_utc (const TimeBase::UtcT &utc) |
This creates a new UTO given a time in the UtcT form. More... | |
virtual CosTime::TIO_ptr | new_interval (TimeBase::TimeT lower, TimeBase::TimeT upper) |
This creates a new TIO with the given parameters. More... | |
virtual CORBA::ULongLong | get_time (void) |
Return the globally synchronized time. More... | |
CORBA::Short | time_displacement_factor (void) |
Returns the time displacement factor. More... | |
void | time_displacement_factor (CORBA::Short) |
Set the TDF. More... | |
TimeBase::InaccuracyT | inaccuracy (void) |
Get method for inaccuracy. More... | |
void | inaccuracy (TimeBase::InaccuracyT inaccuracy) |
Set method for inaccuracy. More... | |
Public Attributes | |
CORBA::ULongLong | time_ |
Clerk's notion of time. More... | |
Private Attributes | |
CORBA::Short | time_displacement_factor_ |
Time displacement factor in minutes. More... | |
TimeBase::InaccuracyT | inaccuracy_ |
Inaccuracy in the time. More... | |
IORS | server_ |
Set of server Time Server IORs. More... | |
CORBA::ULongLong | update_timestamp_ |
Time when last global synchronization was done. More... | |
Timer_Helper | helper_ |
Friends | |
class | Timer_Helper |
Helper class to help in the updation of time. More... | |
TimeService Object Implementation.
The Object implementation implements methods to retrieve GLOBAL time as well as secure GLOBAL time. The times are retrieved as UTOs. The object also allows creation of a TIO for a given time interval. In general, the TimeService clerk manages the UTOs and the TIOs. The notion of time returned here is the globally synchronized time.
typedef ACE_Array_Base<CosTime::TimeService_var> TAO_Time_Service_Clerk::IORS |
Unbounded set of IORs.
TAO_Time_Service_Clerk::TAO_Time_Service_Clerk | ( | int | timer_value, |
int | timer_value_usecs, | ||
const IORS & | server | ||
) |
Constructor.
TAO_Time_Service_Clerk::~TAO_Time_Service_Clerk | ( | void | ) |
Destructor.
|
virtual |
Return the globally synchronized time.
TimeBase::InaccuracyT TAO_Time_Service_Clerk::inaccuracy | ( | void | ) |
Get method for inaccuracy.
void TAO_Time_Service_Clerk::inaccuracy | ( | TimeBase::InaccuracyT | inaccuracy | ) |
Set method for inaccuracy.
|
virtual |
This creates a new TIO with the given parameters.
|
virtual |
This creates a new UTO based on the given parameters.
|
virtual |
This operation returns the global time in a UTO only if the time can be guaranteed to have been obtained securely. Currently this operation is not implemented and throws a CORBA::NO_IMPLEMENT exception, if called.
CORBA::Short TAO_Time_Service_Clerk::time_displacement_factor | ( | void | ) |
Returns the time displacement factor.
void TAO_Time_Service_Clerk::time_displacement_factor | ( | CORBA::Short | tdf | ) |
Set the TDF.
|
virtual |
This operation returns the global time and an estimate of inaccuracy in a UTO.
|
virtual |
This creates a new UTO given a time in the UtcT form.
|
friend |
Helper class to help in the updation of time.
|
private |
This is a friend class that inherits from the Event Handler class. The handle_timeout method of this class is scheduled for periodic invocation by the reactor. This method, in turn, updates the clerks notion of time. Using this class obviates the need for the clerk to multiple inherit from the servant base as well as the event handler.
|
private |
Inaccuracy in the time.
|
private |
Set of server Time Server IORs.
CORBA::ULongLong TAO_Time_Service_Clerk::time_ |
Clerk's notion of time.
|
private |
Time displacement factor in minutes.
|
private |
Time when last global synchronization was done.