summaryrefslogtreecommitdiff
path: root/TAO/CIAO/ciao/ComponentServer_Impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/CIAO/ciao/ComponentServer_Impl.h')
-rw-r--r--TAO/CIAO/ciao/ComponentServer_Impl.h153
1 files changed, 0 insertions, 153 deletions
diff --git a/TAO/CIAO/ciao/ComponentServer_Impl.h b/TAO/CIAO/ciao/ComponentServer_Impl.h
deleted file mode 100644
index d715da0a2cd..00000000000
--- a/TAO/CIAO/ciao/ComponentServer_Impl.h
+++ /dev/null
@@ -1,153 +0,0 @@
-// -*- C++ -*-
-
-//=============================================================================
-/**
- * @file ComponentServer_Impl.h
- *
- * $Id$
- *
- * This file contains implementation for the servant of
- * Components::Deployment::ComponentServer interface.
- *
- * @author Nanbor Wang <nanbor@cs.wustl.edu>
- */
-//=============================================================================
-
-
-#ifndef CIAO_COMPONENTSERVER_IMPL_H
-#define CIAO_COMPONENTSERVER_IMPL_H
-#include /**/ "ace/pre.h"
-
-#include "ace/config-all.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "CCM_DeploymentS.h"
-#include "Object_Set_T.h"
-
-namespace CIAO
-{
- struct Static_Config_EntryPoints_Maps;
- /**
- * @class ComponentServer_Impl
- *
- * @brief Servant implementation for Components::Deployment::ComponentServer
- *
- * This class implements the Components::Deployment::ComponentServer
- * interface as defined by the CCM spcification. As the interface
- * implies, this is actually part of the deployment interface and is
- * used to manage the lifecycle of containers running on the server.
- */
- class CIAO_SERVER_Export ComponentServer_Impl
- : public virtual POA_Components::Deployment::ComponentServer,
- public virtual PortableServer::RefCountServantBase
- {
- public:
- /// Constructor
- ComponentServer_Impl (CORBA::ORB_ptr o,
- PortableServer::POA_ptr p,
- int static_config_flag = 0,
- const Static_Config_EntryPoints_Maps* static_entrypts_maps = 0
- );
-
- /// Destructor
- virtual ~ComponentServer_Impl (void);
-
- /// Get the containing POA. This operation does *not*
- /// increase the reference count of the POA.
- virtual PortableServer::POA_ptr _default_POA (void);
-
- /// Initialize the ComponentServer with a name.
- int init (::Components::ConfigValues &options
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- /// Components::Deployment::ComponentServer defined attributes/operations.
-
- virtual ::Components::ConfigValues *
- configuration (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual ::Components::Deployment::ServerActivator_ptr
- get_server_activator (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual ::Components::Deployment::Container_ptr
- create_container (const Components::ConfigValues & config
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::CreateFailure,
- Components::InvalidConfiguration));
-
- virtual void remove_container (Components::Deployment::Container_ptr cref
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::RemoveFailure));
-
- virtual ::Components::Deployment::Containers *
- get_containers (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- virtual void remove (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException,
- Components::RemoveFailure));
-
- // ------------ CIAO Internal operations -------------
- /// Set the cached object reference
- void set_objref (Components::Deployment::ServerActivator_ptr act,
- const Components::ConfigValues &config,
- Components::Deployment::ComponentServer_ptr cs = 0
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
- ACE_THROW_SPEC ((CORBA::SystemException));
-
- /// Return the cached object reference of this ComponentServer object.
- /// This operation does *NOT* increase the reference count.
- Components::Deployment::ComponentServer_ptr
- get_objref (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS);
-
- /// Get the cached ComponentInstallation object reference.
- /// This operation does *NOT* increase the reference count.
- Components::Deployment::ComponentInstallation_ptr
- get_component_installation (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS);
-
-protected:
- /// Keep a pointer to the managing ORB serving this servant.
- CORBA::ORB_var orb_;
-
- /// Keep a pointer to the managing POA.
- PortableServer::POA_var poa_;
-
- /// Cached ConfigValues.
- Components::ConfigValues_var config_;
-
- /// And a reference to the ServerActivator that created us.
- Components::Deployment::ServerActivator_var activator_;
-
- /// Cache the object reference to ourselves.
- Components::Deployment::ComponentServer_var objref_;
-
- /// And a reference to the ServerActivator that created us.
- Components::Deployment::ComponentInstallation_var installation_;
-
- /// Synchronize access to the object set.
- TAO_SYNCH_MUTEX lock_;
-
- /// Keep a list of managed Container objects.
- Object_Set<Components::Deployment::Container, ::Components::Deployment::Container_var> container_set_;
-
- /// Flag to indicate static configuration.
- int static_config_flag_;
-
- /// Reference to CIAO static config entry points map.
- const Static_Config_EntryPoints_Maps* static_entrypts_maps_;
- };
-}
-
-#if defined (__ACE_INLINE__)
-# include "ComponentServer_Impl.inl"
-#endif /* __ACE_INLINE__ */
-
-#include /**/ "ace/post.h"
-#endif /* CIAO_COMPONENTSERVER_IMPL_H */