#include <LifespanStrategyTransient.h>
Public Member Functions | |
LifespanStrategyTransient (void) | |
virtual void | notify_startup (void) |
virtual void | notify_shutdown (void) |
char | key_type (void) const |
virtual CORBA::Boolean | is_persistent (void) const |
Do we have set persistent or not,. | |
CORBA::ULong | key_length (void) const |
virtual void | create_key (CORBA::Octet *buffer, CORBA::ULong &starting_at) |
virtual bool | validate (CORBA::Boolean is_persistent, const TAO::Portable_Server::Temporary_Creation_Time &creation_time) const |
Validate whether this matches the set lifespan strategy. | |
virtual void | check_state (void) |
Check the state of the POA. | |
virtual ::PortableServer::LifespanPolicyValue | type () const |
virtual bool | use_imr () const |
Private Attributes | |
TAO::Portable_Server::Creation_Time | creation_time_ |
Definition at line 32 of file LifespanStrategyTransient.h.
TAO::Portable_Server::LifespanStrategyTransient::LifespanStrategyTransient | ( | void | ) |
Definition at line 5 of file LifespanStrategyTransient.cpp.
: LifespanStrategyTransient.cpp 76569 2007-01-24 18:54:26Z johnnyw $")
void TAO::Portable_Server::LifespanStrategyTransient::check_state | ( | void | ) | [virtual] |
Check the state of the POA.
Implements TAO::Portable_Server::LifespanStrategy.
Definition at line 75 of file LifespanStrategyTransient.cpp.
{
void TAO::Portable_Server::LifespanStrategyTransient::create_key | ( | CORBA::Octet * | buffer, | |
CORBA::ULong & | starting_at | |||
) | [virtual] |
Implements TAO::Portable_Server::LifespanStrategy.
Definition at line 50 of file LifespanStrategyTransient.cpp.
{ CORBA::ULong keylength = sizeof (char); #if (POA_NO_TIMESTAMP == 0) // Calculate the space required for the timestamp. keylength += TAO::Portable_Server::Creation_Time::creation_time_length (); #endif /* POA_NO_TIMESTAMP */ return keylength; } void
CORBA::Boolean TAO::Portable_Server::LifespanStrategyTransient::is_persistent | ( | void | ) | const [virtual] |
Do we have set persistent or not,.
Implements TAO::Portable_Server::LifespanStrategy.
Definition at line 21 of file LifespanStrategyTransient.cpp.
{ LifespanStrategyTransient::LifespanStrategyTransient () : creation_time_ (ACE_OS::gettimeofday ()) {
CORBA::ULong TAO::Portable_Server::LifespanStrategyTransient::key_length | ( | void | ) | const [virtual] |
Returns the length of the key type
Implements TAO::Portable_Server::LifespanStrategy.
Definition at line 36 of file LifespanStrategyTransient.cpp.
{ return false; } bool LifespanStrategyTransient::validate (CORBA::Boolean is_persistent, const TAO::Portable_Server:: Temporary_Creation_Time &creation_time) const
char TAO::Portable_Server::LifespanStrategyTransient::key_type | ( | void | ) | const |
Definition at line 69 of file LifespanStrategyTransient.cpp.
{ // Copy the persistence byte. buffer[starting_at] = (CORBA::Octet)this->key_type (); starting_at += this->key_type_length ();
void TAO::Portable_Server::LifespanStrategyTransient::notify_shutdown | ( | void | ) | [virtual] |
Implements TAO::Portable_Server::LifespanStrategy.
Definition at line 16 of file LifespanStrategyTransient.cpp.
{
void TAO::Portable_Server::LifespanStrategyTransient::notify_startup | ( | void | ) | [virtual] |
Implements TAO::Portable_Server::LifespanStrategy.
Definition at line 11 of file LifespanStrategyTransient.cpp.
{
PortableServer::LifespanPolicyValue TAO::Portable_Server::LifespanStrategyTransient::type | ( | void | ) | const [virtual] |
Implements TAO::Portable_Server::LifespanStrategy.
Definition at line 95 of file LifespanStrategyTransient.cpp.
{ throw ::CORBA::OBJECT_NOT_EXIST (CORBA::OMGVMCID | 4, CORBA::COMPLETED_NO); }
bool TAO::Portable_Server::LifespanStrategyTransient::use_imr | ( | ) | const [virtual] |
Implements TAO::Portable_Server::LifespanStrategy.
Definition at line 89 of file LifespanStrategyTransient.cpp.
{
bool TAO::Portable_Server::LifespanStrategyTransient::validate | ( | CORBA::Boolean | is_persistent, | |
const TAO::Portable_Server::Temporary_Creation_Time & | creation_time | |||
) | const [virtual] |
Validate whether this matches the set lifespan strategy.
Implements TAO::Portable_Server::LifespanStrategy.
Definition at line 27 of file LifespanStrategyTransient.cpp.
{ } void LifespanStrategyTransient::notify_shutdown (void)
TAO::Portable_Server::Creation_Time TAO::Portable_Server::LifespanStrategyTransient::creation_time_ [private] |
Definition at line 62 of file LifespanStrategyTransient.h.