Merge pull request #2218 from jwillemsen/jwi-pthreadsigmask
[ACE_TAO.git] / TAO / tao / PortableServer / LifespanStrategyPersistent.h
blob5de7c9cb52ce7ed73abfa2a59054adaadd1442dd
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file LifespanStrategyPersistent.h
7 * @author Johnny Willemsen <jwillemsen@remedy.nl>
8 */
9 //=============================================================================
11 #ifndef TAO_LIFESPANSTRATEGYPERSISTENT_H
12 #define TAO_LIFESPANSTRATEGYPERSISTENT_H
13 #include /**/ "ace/pre.h"
15 #include "tao/PortableServer/LifespanStrategy.h"
17 #if !defined (ACE_LACKS_PRAGMA_ONCE)
18 # pragma once
19 #endif /* ACE_LACKS_PRAGMA_ONCE */
21 #include "tao/Object_KeyC.h"
23 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
25 class ServerObject_i;
27 namespace TAO
29 namespace Portable_Server
31 class LifespanStrategyPersistent
32 : public LifespanStrategy
34 public:
35 LifespanStrategyPersistent ();
37 void strategy_init(TAO_Root_POA *poa) override;
39 void notify_startup () override;
41 void notify_shutdown () override;
43 char key_type () const;
45 CORBA::Boolean is_persistent () const override;
47 CORBA::ULong key_length () const override;
49 void create_key (CORBA::Octet *buffer, CORBA::ULong& starting_at) override;
51 bool
52 validate (CORBA::Boolean is_persistent,
53 const TAO::Portable_Server::Temporary_Creation_Time& creation_time) const override;
55 /// Check the state of the POA.
56 void check_state () override;
58 bool use_imr () const override;
60 CORBA::Object_ptr imr_key_to_object(const TAO::ObjectKey &key, const char *type_id) const override;
62 private:
63 bool use_imr_;
65 } /* namespace Portable_Server */
66 } /* namespace TAO */
68 TAO_END_VERSIONED_NAMESPACE_DECL
70 #include /**/ "ace/post.h"
71 #endif /* TAO_LIFESPANSTRATEGYPERSISTENT_H */