summaryrefslogtreecommitdiff
path: root/CIAO/DAnCE/NodeApplicationManager
diff options
context:
space:
mode:
Diffstat (limited to 'CIAO/DAnCE/NodeApplicationManager')
-rw-r--r--CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp169
-rw-r--r--CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.h41
-rw-r--r--CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.inl8
3 files changed, 85 insertions, 133 deletions
diff --git a/CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp b/CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp
index 4a21bc5a5e4..b6e24eb6cae 100644
--- a/CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp
+++ b/CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.cpp
@@ -49,7 +49,7 @@ is_external_component (ACE_CString & name)
Deployment::Connections *
CIAO::NodeApplicationManager_Impl_Base::
-create_connections (void)
+create_connections ()
ACE_THROW_SPEC ((CORBA::SystemException,
Deployment::ResourceNotAvailable,
Deployment::StartError,
@@ -181,14 +181,13 @@ Deployment::Application_ptr
CIAO::NodeApplicationManager_Impl_Base::
startLaunch (const Deployment::Properties & configProperty,
Deployment::Connections_out providedReference,
- CORBA::Boolean start
- ACE_ENV_ARG_DECL)
+ CORBA::Boolean start)
ACE_THROW_SPEC ((CORBA::SystemException,
Deployment::ResourceNotAvailable,
Deployment::StartError,
Deployment::InvalidProperty))
{
- ACE_TRY
+ try
{
CIAO_TRACE("CIAO::NodeApplicationManager_Impl::startLaunch");
ACE_UNUSED_ARG (configProperty);
@@ -226,7 +225,7 @@ startLaunch (const Deployment::Properties & configProperty,
"CIAO::NodeApplicationManager_Impl::startLaunch -"
"Failed to create Node Implementation Infos!\n"));
- ACE_TRY_THROW
+ throw
(Deployment::StartError ("NodeApplicationManager_Imp::startLaunch",
"Unable to get node level infos"));
}
@@ -271,7 +270,7 @@ startLaunch (const Deployment::Properties & configProperty,
}
Deployment::NodeApplication_var tmp =
- create_node_application (cmd_option.c_str () ACE_ENV_ARG_PARAMETER);
+ create_node_application (cmd_option.c_str ());
if (CIAO::debug_level () > 9)
{
@@ -301,7 +300,7 @@ startLaunch (const Deployment::Properties & configProperty,
Deployment::ComponentInfos_var comp_info;
// This will install all homes and components.
- comp_info = this->nodeapp_->install (*node_info ACE_ENV_ARG_PARAMETER);
+ comp_info = this->nodeapp_->install (*node_info);
// Now fill in the map we have for the "newly installed" components.
@@ -319,7 +318,7 @@ startLaunch (const Deployment::Properties & configProperty,
ACE_CString error ("Duplicate component instance name ");
error += comp_info[len].component_instance_name.in();
- ACE_TRY_THROW
+ throw
(Deployment::StartError
("NodeApplicationManager_Impl::startLaunch",
error.c_str ()));
@@ -339,7 +338,7 @@ startLaunch (const Deployment::Properties & configProperty,
ACE_CString error ("Duplicate component instance name ");
error += this->shared_components_[j].name.in();
- ACE_TRY_THROW
+ throw
(Deployment::StartError
("NodeApplicationManager_Impl::startLaunch",
error.c_str ()));
@@ -352,31 +351,30 @@ startLaunch (const Deployment::Properties & configProperty,
if (providedReference == 0)
{
- ACE_TRY_THROW
+ throw
(Deployment::StartError
("NodeApplicationManager_Impl::startLaunch",
"Error creating connections for components during startLaunch."));
}
}
- ACE_CATCH (Deployment::UnknownImplId, e)
+ catch (const Deployment::UnknownImplId& e)
{
ACE_THROW_RETURN (Deployment::StartError (e.name.in (),
e.reason.in ()),
Deployment::Application::_nil());
}
- ACE_CATCH (Deployment::ImplEntryPointNotFound, e)
+ catch (const Deployment::ImplEntryPointNotFound& e)
{
ACE_THROW_RETURN (Deployment::StartError (e.name.in (),
e.reason.in ()),
Deployment::Application::_nil());
}
- ACE_CATCH (Deployment::InstallationFailure,e)
+ catch (const Deployment::InstallationFailure& e)
{
ACE_THROW_RETURN (Deployment::StartError (e.name.in (),
e.reason.in ()),
Deployment::Application::_nil());
}
- ACE_ENDTRY;
return Deployment::NodeApplication::_duplicate (this->nodeapp_.in ());
}
@@ -387,8 +385,7 @@ CIAO::NodeApplicationManager_Impl_Base::
perform_redeployment (const Deployment::Properties & configProperty,
Deployment::Connections_out providedReference,
CORBA::Boolean /*add_or_remove*/, // true means "add" only
- CORBA::Boolean start
- ACE_ENV_ARG_DECL)
+ CORBA::Boolean start)
ACE_THROW_SPEC ((::CORBA::SystemException,
::Deployment::PlanError,
::Deployment::InstallationFailure,
@@ -427,7 +424,7 @@ perform_redeployment (const Deployment::Properties & configProperty,
ACE_DEBUG ((LM_DEBUG,
"CIAO (%P|%t) NodeApplicationManager_Impl_Base: "
"invoked CIAO::NodeApplicationManager_Impl_Base::perform_redeployment \n"));
- ACE_TRY
+ try
{
if (! CORBA::is_nil (this->nodeapp_.in ()))
{
@@ -462,7 +459,7 @@ perform_redeployment (const Deployment::Properties & configProperty,
// Install the components
// This is what we will get back, a sequence of compoent object refs.
Deployment::ComponentInfos_var comp_info;
- comp_info = this->nodeapp_->install (*node_info ACE_ENV_ARG_PARAMETER);
+ comp_info = this->nodeapp_->install (*node_info);
// Now fill in the map we have for the components.
const CORBA::ULong comp_len = comp_info->length ();
@@ -479,7 +476,7 @@ perform_redeployment (const Deployment::Properties & configProperty,
ACE_CString error ("Duplicate component instance name ");
error += comp_info[len].component_instance_name.in();
- ACE_TRY_THROW
+ throw
(Deployment::PlanError
("NodeApplicationManager_Impl::startLaunch",
error.c_str ()));
@@ -493,7 +490,7 @@ perform_redeployment (const Deployment::Properties & configProperty,
if (providedReference == 0)
{
- ACE_TRY_THROW
+ throw
(Deployment::InstallationFailure
("NodeApplicationManager_Impl::startLaunch",
"Error creating connections during startLaunch."));
@@ -504,29 +501,27 @@ perform_redeployment (const Deployment::Properties & configProperty,
{
this->startLaunch (configProperty,
providedReference,
- start
- ACE_ENV_ARG_PARAMETER);
+ start);
}
}
- ACE_CATCH (Deployment::UnknownImplId, e)
+ catch (const Deployment::UnknownImplId& e)
{
ACE_THROW_RETURN (Deployment::UnknownImplId (e.name.in (),
e.reason.in ()),
Deployment::Application::_nil());
}
- ACE_CATCH (Deployment::ImplEntryPointNotFound, e)
+ catch (const Deployment::ImplEntryPointNotFound& e)
{
ACE_THROW_RETURN (Deployment::ImplEntryPointNotFound (e.name.in (),
e.reason.in ()),
Deployment::Application::_nil());
}
- ACE_CATCH (Deployment::InstallationFailure,e)
+ catch (const Deployment::InstallationFailure& e)
{
ACE_THROW_RETURN (Deployment::InstallationFailure (e.name.in (),
e.reason.in ()),
Deployment::Application::_nil());
}
- ACE_ENDTRY;
return Deployment::NodeApplication::_duplicate (this->nodeapp_.in ());
}
@@ -543,7 +538,7 @@ add_new_components ()
::Deployment::InvalidConnection,
::Deployment::InvalidProperty))
{
- ACE_TRY
+ try
{
// We ignored those components that are already in the <component_map_>, for
// the rest ones, we pack them into NodeImplementationInfo.
@@ -579,7 +574,7 @@ add_new_components ()
"CIAO::NodeApplicationManager_Impl::perform_redeployment -"
"Failed to create Node Implementation Infos!\n"));
- ACE_TRY_THROW
+ throw
(Deployment::PlanError ("NodeApplicationManager_Imp::perform_redeployment",
"Unable to get node level infos"));
}
@@ -587,7 +582,7 @@ add_new_components ()
// Install the components
// This is what we will get back, a sequence of component object refs.
Deployment::ComponentInfos_var comp_info;
- comp_info = this->nodeapp_->install (*node_info ACE_ENV_ARG_PARAMETER);
+ comp_info = this->nodeapp_->install (*node_info);
// Now fill in the map we have for the components.
const CORBA::ULong comp_len = comp_info->length ();
@@ -604,20 +599,19 @@ add_new_components ()
ACE_CString error ("Duplicate component instance name ");
error += comp_info[len].component_instance_name.in();
- ACE_TRY_THROW
+ throw
(Deployment::PlanError
("NodeApplicationManager_Impl::startLaunch",
error.c_str ()));
}
}
}
- ACE_CATCHANY
+ catch (const CORBA::Exception& ex)
{
ACE_ERROR ((LM_ERROR, "NodeApplicationManager_Impl_Base::"
"add_new_components () exception caught.\n"));
- ACE_RE_THROW;
+ throw;
}
- ACE_ENDTRY;
}
@@ -628,7 +622,7 @@ remove_existing_components ()
::Deployment::PlanError,
::Components::RemoveFailure))
{
- ACE_TRY
+ try
{
ACE_Vector<ACE_CString> gone_component_list;
@@ -651,13 +645,12 @@ remove_existing_components ()
for (size_t i = 0; i < gone_component_list.size (); ++i)
this->component_map_.unbind (gone_component_list[i]);
}
- ACE_CATCHANY
+ catch (const CORBA::Exception& ex)
{
ACE_ERROR ((LM_ERROR, "NodeApplicationManager_Impl_Base::"
"remove_existing_components () exception caught.\n"));
- ACE_RE_THROW;
+ throw;
}
- ACE_ENDTRY;
}
bool
@@ -680,8 +673,7 @@ is_to_be_removed (const char * name)
void
CIAO::NodeApplicationManager_Impl_Base::
-set_shared_components (const Deployment::ComponentPlans & shared
- ACE_ENV_ARG_DECL)
+set_shared_components (const Deployment::ComponentPlans & shared)
ACE_THROW_SPEC ((::CORBA::SystemException))
{
this->shared_components_ = shared;
@@ -689,8 +681,7 @@ set_shared_components (const Deployment::ComponentPlans & shared
void
CIAO::NodeApplicationManager_Impl_Base::
-destroyApplication (Deployment::Application_ptr app
- ACE_ENV_ARG_DECL)
+destroyApplication (Deployment::Application_ptr app)
ACE_THROW_SPEC ((CORBA::SystemException,
Deployment::StopError))
{
@@ -702,7 +693,7 @@ destroyApplication (Deployment::Application_ptr app
//@@ Since we know there is only 1 nodeapp so the passed in
// parameter is ignored for now.
if (CORBA::is_nil (this->nodeapp_.in () ))
- ACE_THROW (Deployment::StopError ());
+ throw Deployment::StopError ();
// Iterate over all the components within this NAM, and if it's
// not a shared component, then remove it. If all the components
@@ -742,8 +733,7 @@ destroyApplication (Deployment::Application_ptr app
::CORBA::Long
CIAO::NodeApplicationManager_Impl_Base::set_priority (
const char * cid,
- const ::Deployment::Sched_Params & params
- ACE_ENV_ARG_DECL)
+ const ::Deployment::Sched_Params & params)
ACE_THROW_SPEC ((::CORBA::SystemException))
{
if (CIAO::debug_level () > 20)
@@ -832,14 +822,13 @@ CIAO::NodeApplicationManager_Impl::init (
const CORBA::ULong delay,
const Deployment::DeploymentPlan & plan,
const PortableServer::POA_ptr callback_poa,
- NodeManager_Impl_Base * nm
- ACE_ENV_ARG_DECL)
+ NodeManager_Impl_Base * nm)
ACE_THROW_SPEC ((CORBA::SystemException,
Deployment::InvalidProperty))
{
PortableServer::ObjectId_var oid;
- ACE_TRY
+ try
{
if (nodeapp_location == 0)
{
@@ -847,7 +836,7 @@ CIAO::NodeApplicationManager_Impl::init (
"DAnCE (%P|%t) NodeApplicationManager_Impl.cpp -"
"CIAO::NodeApplicationManager_Impl::init -"
"NULL NodeApplication location. \n"));
- ACE_TRY_THROW (CORBA::BAD_PARAM ());
+ throw CORBA::BAD_PARAM ();
}
if (delay == 0)
@@ -857,7 +846,7 @@ CIAO::NodeApplicationManager_Impl::init (
"CIAO::NodeApplicationManager_Impl::init -"
"NodeManager must be started with a -d "
"of greter than zero.\n"));
- ACE_TRY_THROW (CORBA::BAD_PARAM ());
+ throw CORBA::BAD_PARAM ();
}
this->nodeapp_path_.set (nodeapp_location);
@@ -872,17 +861,14 @@ CIAO::NodeApplicationManager_Impl::init (
this->callback_poa_ = PortableServer::POA::_duplicate (callback_poa);
// Activate the ourself.
- oid = this->poa_->activate_object (this
- ACE_ENV_ARG_PARAMETER);
+ oid = this->poa_->activate_object (this);
CORBA::Object_var obj =
- this->poa_->id_to_reference (oid.in ()
- ACE_ENV_ARG_PARAMETER);
+ this->poa_->id_to_reference (oid.in ());
// And cache the object reference.
this->objref_ =
- Deployment::NodeApplicationManager::_narrow (obj.in ()
- ACE_ENV_ARG_PARAMETER);
+ Deployment::NodeApplicationManager::_narrow (obj.in ());
// add the signal handler to the ACE_REACTOR
@@ -899,13 +885,11 @@ CIAO::NodeApplicationManager_Impl::init (
*/
}
- ACE_CATCHANY
+ catch (const CORBA::Exception& ex)
{
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "NodeApplicationManager_Impl_Base::init\t\n");
- ACE_RE_THROW;
+ ex._tao_print_exception ("NodeApplicationManager_Impl_Base::init\t\n");
+ throw;
}
- ACE_ENDTRY;
//return this object reference
return oid.in ();
@@ -913,8 +897,7 @@ CIAO::NodeApplicationManager_Impl::init (
Deployment::NodeApplication_ptr
CIAO::NodeApplicationManager_Impl::
-create_node_application (const ACE_CString & options
- ACE_ENV_ARG_DECL)
+create_node_application (const ACE_CString & options)
ACE_THROW_SPEC ((CORBA::SystemException,
Deployment::ResourceNotAvailable,
Deployment::StartError,
@@ -939,27 +922,23 @@ create_node_application (const ACE_CString & options
PortableServer::ServantBase_var servant_var (callback_servant);
PortableServer::ObjectId_var cb_id
- = this->callback_poa_->activate_object (callback_servant
- ACE_ENV_ARG_PARAMETER);
+ = this->callback_poa_->activate_object (callback_servant);
ACE_Process_Options p_options;
ACE_Process_Manager process_manager;
process_manager.open (10, ACE_Reactor::instance ());
- ACE_TRY
+ try
{
CORBA::Object_var cb_obj =
- this->callback_poa_->id_to_reference (cb_id.in ()
- ACE_ENV_ARG_PARAMETER);
+ this->callback_poa_->id_to_reference (cb_id.in ());
CIAO::NodeApplication_Callback_var cb =
- CIAO::NodeApplication_Callback::_narrow (cb_obj.in ()
- ACE_ENV_ARG_PARAMETER);
+ CIAO::NodeApplication_Callback::_narrow (cb_obj.in ());
CORBA::String_var cb_ior =
- this->orb_->object_to_string (cb.in ()
- ACE_ENV_ARG_PARAMETER);
+ this->orb_->object_to_string (cb.in ());
// spawn the new NodeApplication.
p_options.command_line ("%s -k %s "
@@ -981,7 +960,7 @@ create_node_application (const ACE_CString & options
"Fail to spawn a NodeApplication process\n"));
}
- ACE_TRY_THROW
+ throw
(Deployment::ResourceNotAvailable
("Failed to spawn process",
"NodeApplication",
@@ -998,8 +977,7 @@ create_node_application (const ACE_CString & options
while (looping)
{
- this->orb_->perform_work (timeout
- ACE_ENV_ARG_PARAMETER);
+ this->orb_->perform_work (timeout);
retval = callback_servant->get_nodeapp_ref ();
@@ -1015,7 +993,7 @@ create_node_application (const ACE_CString & options
"Fail to acquire the NodeApplication object\n"));
}
- ACE_TRY_THROW (Deployment::ResourceNotAvailable ());
+ throw Deployment::ResourceNotAvailable ();
}
{
@@ -1024,15 +1002,14 @@ create_node_application (const ACE_CString & options
Deployment::NodeApplication::_duplicate (retval.in ());
}
}
- ACE_CATCHANY
+ catch (const CORBA::Exception& ex)
{
this->callback_poa_->deactivate_object (cb_id.in ());
- ACE_RE_THROW;
+ throw;
}
- ACE_ENDTRY;
- this->callback_poa_->deactivate_object (cb_id.in () ACE_ENV_ARG_PARAMETER);
+ this->callback_poa_->deactivate_object (cb_id.in ());
if (CIAO::debug_level () > 1)
{
@@ -1091,8 +1068,7 @@ CIAO::Static_NodeApplicationManager_Impl::init (
const CORBA::ULong delay,
const Deployment::DeploymentPlan & plan,
const PortableServer::POA_ptr callback_poa,
- NodeManager_Impl_Base * nm
- ACE_ENV_ARG_DECL)
+ NodeManager_Impl_Base * nm)
ACE_THROW_SPEC ((CORBA::SystemException,
Deployment::InvalidProperty))
{
@@ -1103,7 +1079,7 @@ CIAO::Static_NodeApplicationManager_Impl::init (
ACE_UNUSED_ARG (delay);
ACE_UNUSED_ARG (callback_poa);
- ACE_TRY
+ try
{
this->node_manager_ = nm;
@@ -1111,25 +1087,20 @@ CIAO::Static_NodeApplicationManager_Impl::init (
this->plan_ = plan;
// Activate the ourself.
- oid = this->poa_->activate_object (this
- ACE_ENV_ARG_PARAMETER);
+ oid = this->poa_->activate_object (this);
CORBA::Object_var obj =
- this->poa_->id_to_reference (oid.in ()
- ACE_ENV_ARG_PARAMETER);
+ this->poa_->id_to_reference (oid.in ());
// And cache the object reference.
this->objref_ =
- Deployment::NodeApplicationManager::_narrow (obj.in ()
- ACE_ENV_ARG_PARAMETER);
+ Deployment::NodeApplicationManager::_narrow (obj.in ());
}
- ACE_CATCHANY
+ catch (const CORBA::Exception& ex)
{
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "NodeApplicationManager_Impl_Base::init\t\n");
- ACE_RE_THROW;
+ ex._tao_print_exception ("NodeApplicationManager_Impl_Base::init\t\n");
+ throw;
}
- ACE_ENDTRY;
//return this object reference
return oid.in ();
@@ -1137,8 +1108,7 @@ CIAO::Static_NodeApplicationManager_Impl::init (
Deployment::NodeApplication_ptr
CIAO::Static_NodeApplicationManager_Impl::
-create_node_application (const ACE_CString & options
- ACE_ENV_ARG_DECL)
+create_node_application (const ACE_CString & options)
ACE_THROW_SPEC ((CORBA::SystemException,
Deployment::ResourceNotAvailable,
Deployment::StartError,
@@ -1166,16 +1136,13 @@ create_node_application (const ACE_CString & options
// CONFIGURING NodeApplication
PortableServer::ObjectId_var nodeapp_oid
- = poa_->activate_object (nodeapp_servant
- ACE_ENV_ARG_PARAMETER);
+ = poa_->activate_object (nodeapp_servant);
CORBA::Object_var
- obj = poa_->id_to_reference (nodeapp_oid.in ()
- ACE_ENV_ARG_PARAMETER);
+ obj = poa_->id_to_reference (nodeapp_oid.in ());
Deployment::NodeApplication_var nodeapp_obj =
- Deployment::NodeApplication::_narrow (obj.in ()
- ACE_ENV_ARG_PARAMETER);
+ Deployment::NodeApplication::_narrow (obj.in ());
if (CORBA::is_nil (nodeapp_obj.in ()))
{
diff --git a/CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.h b/CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.h
index a379313dee6..5ea55596f1b 100644
--- a/CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.h
+++ b/CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.h
@@ -64,16 +64,14 @@ namespace CIAO
virtual Deployment::Application_ptr
startLaunch (const Deployment::Properties & configProperty,
Deployment::Connections_out providedReference,
- CORBA::Boolean start
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ CORBA::Boolean start)
ACE_THROW_SPEC ((CORBA::SystemException,
Deployment::ResourceNotAvailable,
Deployment::StartError,
Deployment::InvalidProperty));
//@@ Destroy the whole applicaton.
- virtual void destroyApplication (Deployment::Application_ptr
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ virtual void destroyApplication (Deployment::Application_ptr)
ACE_THROW_SPEC ((CORBA::SystemException,
Deployment::StopError));
@@ -81,8 +79,7 @@ namespace CIAO
perform_redeployment (const Deployment::Properties & configProperty,
Deployment::Connections_out providedReference,
CORBA::Boolean add_or_remove,
- CORBA::Boolean start
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ CORBA::Boolean start)
ACE_THROW_SPEC ((::CORBA::SystemException,
::Deployment::PlanError,
::Deployment::InstallationFailure,
@@ -93,13 +90,11 @@ namespace CIAO
::Components::RemoveFailure));
virtual void
- reset_plan (const ::Deployment::DeploymentPlan & plan
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ reset_plan (const ::Deployment::DeploymentPlan & plan)
ACE_THROW_SPEC ((::CORBA::SystemException));
virtual void
- set_shared_components (const Deployment::ComponentPlans & shared
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ set_shared_components (const Deployment::ComponentPlans & shared)
ACE_THROW_SPEC ((::CORBA::SystemException));
/**
@@ -139,8 +134,7 @@ namespace CIAO
const CORBA::ULong delay,
const Deployment::DeploymentPlan & plan,
const PortableServer::POA_ptr callback_poa,
- NodeManager_Impl_Base * nm
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ NodeManager_Impl_Base * nm)
ACE_THROW_SPEC ((CORBA::SystemException,
Deployment::InvalidProperty))=0;
@@ -150,8 +144,7 @@ namespace CIAO
/// Set the priority of the NodeApplication process which this NAM manages
virtual ::CORBA::Long set_priority (
const char * cid,
- const ::Deployment::Sched_Params & params
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ const ::Deployment::Sched_Params & params)
ACE_THROW_SPEC ((CORBA::SystemException ));
protected:
@@ -183,8 +176,7 @@ namespace CIAO
/// Internal help function to create new NodeApplicationProcess
virtual Deployment::NodeApplication_ptr
- create_node_application (const ACE_CString & options
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ create_node_application (const ACE_CString & options)
ACE_THROW_SPEC ((CORBA::SystemException,
Deployment::ResourceNotAvailable,
Deployment::StartError,
@@ -192,7 +184,7 @@ namespace CIAO
/// Helper function to get the connection.
virtual Deployment::Connections *
- create_connections (void)
+ create_connections ()
ACE_THROW_SPEC ((CORBA::SystemException,
Deployment::ResourceNotAvailable,
Deployment::StartError,
@@ -202,8 +194,7 @@ namespace CIAO
* Find the configurations in the plan and prepare them to pass to the
* NodeApplication, from command line probably.
*/
- void parse_config_value (ACE_CString & str
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ void parse_config_value (ACE_CString & str)
ACE_THROW_SPEC ((CORBA::SystemException,
Deployment::InvalidProperty));
@@ -331,8 +322,7 @@ namespace CIAO
const CORBA::ULong delay,
const Deployment::DeploymentPlan & plan,
const PortableServer::POA_ptr callback_poa,
- NodeManager_Impl_Base * nm
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ NodeManager_Impl_Base * nm)
ACE_THROW_SPEC ((CORBA::SystemException,
Deployment::InvalidProperty));
@@ -343,8 +333,7 @@ namespace CIAO
// Internal help function to create new NodeApplicationProcess
// Here we override it to create an in-process NodeApplication object
virtual Deployment::NodeApplication_ptr
- create_node_application (const ACE_CString & options
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ create_node_application (const ACE_CString & options)
ACE_THROW_SPEC ((CORBA::SystemException,
Deployment::ResourceNotAvailable,
Deployment::StartError,
@@ -384,8 +373,7 @@ namespace CIAO
const CORBA::ULong delay,
const Deployment::DeploymentPlan & plan,
const PortableServer::POA_ptr callback_poa,
- NodeManager_Impl_Base * nm
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ NodeManager_Impl_Base * nm)
ACE_THROW_SPEC ((CORBA::SystemException,
Deployment::InvalidProperty));
@@ -396,8 +384,7 @@ namespace CIAO
/// Internal help function to create new NodeApplicationProcess
/// Here we override it to create an in-process NodeApplication object
virtual Deployment::NodeApplication_ptr
- create_node_application (const ACE_CString & options
- ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ create_node_application (const ACE_CString & options)
ACE_THROW_SPEC ((CORBA::SystemException,
Deployment::ResourceNotAvailable,
Deployment::StartError,
diff --git a/CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.inl b/CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.inl
index e744e953876..49bdc80098e 100644
--- a/CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.inl
+++ b/CIAO/DAnCE/NodeApplicationManager/NodeApplicationManager_Impl.inl
@@ -22,15 +22,14 @@ NodeApplicationManager_Impl_Base (CORBA::ORB_ptr o,
ACE_INLINE
void
CIAO::NodeApplicationManager_Impl_Base::
-parse_config_value (ACE_CString & str
- ACE_ENV_ARG_DECL)
+parse_config_value (ACE_CString & str)
ACE_THROW_SPEC ((CORBA::SystemException,
Deployment::InvalidProperty))
{
// The unused arg is for future improvemnts.
ACE_UNUSED_ARG (str);
- ACE_THROW ( CORBA::NO_IMPLEMENT() );
+ throw CORBA::NO_IMPLEMENT();
}
ACE_INLINE
@@ -42,8 +41,7 @@ CIAO::NodeApplicationManager_Impl_Base::get_nodeapp_manager (void)
ACE_INLINE void
CIAO::NodeApplicationManager_Impl_Base::
-reset_plan (const ::Deployment::DeploymentPlan & plan
- ACE_ENV_ARG_DECL)
+reset_plan (const ::Deployment::DeploymentPlan & plan)
ACE_THROW_SPEC ((::CORBA::SystemException))
{
this->plan_ = plan;