imr_locatorc.cpp
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C++ 代码 · 共 1,238 行 · 第 1/3 页
CPP
1,238 行
if (this->the_TAO_Locator_Proxy_Broker_ == 0)
{
ImplementationRepository_Locator_setup_collocation (
this->ACE_NESTED_CLASS (CORBA, Object)::_is_collocated ()
);
}
TAO::Arg_Traits<void>::ret_val _tao_retval;
TAO::Arg_Traits<CORBA::Char *>::in_arg_val _tao_server (server);
TAO::Arg_Traits<CORBA::Char *>::in_arg_val _tao_activator (activator);
TAO::Argument *_tao_signature [] =
{
&_tao_retval,
&_tao_server,
&_tao_activator
};
static TAO::Exception_Data
_tao_ImplementationRepository_Locator_remove_server_in_activator_exceptiondata [] =
{
{
"IDL:ImplementationRepository/NotFound:1.0",
ImplementationRepository::NotFound::_alloc,
ImplementationRepository::_tc_NotFound
}
};
TAO::Invocation_Adapter _tao_call (
this,
_tao_signature,
3,
"remove_server_in_activator",
26,
this->the_TAO_Locator_Proxy_Broker_
);
_tao_call.invoke (
_tao_ImplementationRepository_Locator_remove_server_in_activator_exceptiondata,
1
ACE_ENV_ARG_PARAMETER
);
ACE_CHECK;
}
// TAO_IDL - Generated from
// c:\cvsdoc\ace_wrappers\build\vc71\tao\tao_idl\be\be_visitor_operation/operation_cs.cpp:78
void ImplementationRepository::Locator::shutdown_server_in_activator (
const char * server,
const char * activator
ACE_ENV_ARG_DECL
)
ACE_THROW_SPEC ((
CORBA::SystemException
, ImplementationRepository::NotFound
))
{
if (!this->is_evaluated ())
{
ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
}
if (this->the_TAO_Locator_Proxy_Broker_ == 0)
{
ImplementationRepository_Locator_setup_collocation (
this->ACE_NESTED_CLASS (CORBA, Object)::_is_collocated ()
);
}
TAO::Arg_Traits<void>::ret_val _tao_retval;
TAO::Arg_Traits<CORBA::Char *>::in_arg_val _tao_server (server);
TAO::Arg_Traits<CORBA::Char *>::in_arg_val _tao_activator (activator);
TAO::Argument *_tao_signature [] =
{
&_tao_retval,
&_tao_server,
&_tao_activator
};
static TAO::Exception_Data
_tao_ImplementationRepository_Locator_shutdown_server_in_activator_exceptiondata [] =
{
{
"IDL:ImplementationRepository/NotFound:1.0",
ImplementationRepository::NotFound::_alloc,
ImplementationRepository::_tc_NotFound
}
};
TAO::Invocation_Adapter _tao_call (
this,
_tao_signature,
3,
"shutdown_server_in_activator",
28,
this->the_TAO_Locator_Proxy_Broker_
);
_tao_call.invoke (
_tao_ImplementationRepository_Locator_shutdown_server_in_activator_exceptiondata,
1
ACE_ENV_ARG_PARAMETER
);
ACE_CHECK;
}
// TAO_IDL - Generated from
// c:\cvsdoc\ace_wrappers\build\vc71\tao\tao_idl\be\be_visitor_operation/operation_cs.cpp:78
void ImplementationRepository::Locator::server_is_shutting_down_in_activator (
const char * server,
const char * activator
ACE_ENV_ARG_DECL
)
ACE_THROW_SPEC ((
CORBA::SystemException
, ImplementationRepository::NotFound
))
{
if (!this->is_evaluated ())
{
ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
}
if (this->the_TAO_Locator_Proxy_Broker_ == 0)
{
ImplementationRepository_Locator_setup_collocation (
this->ACE_NESTED_CLASS (CORBA, Object)::_is_collocated ()
);
}
TAO::Arg_Traits<void>::ret_val _tao_retval;
TAO::Arg_Traits<CORBA::Char *>::in_arg_val _tao_server (server);
TAO::Arg_Traits<CORBA::Char *>::in_arg_val _tao_activator (activator);
TAO::Argument *_tao_signature [] =
{
&_tao_retval,
&_tao_server,
&_tao_activator
};
static TAO::Exception_Data
_tao_ImplementationRepository_Locator_server_is_shutting_down_in_activator_exceptiondata [] =
{
{
"IDL:ImplementationRepository/NotFound:1.0",
ImplementationRepository::NotFound::_alloc,
ImplementationRepository::_tc_NotFound
}
};
TAO::Invocation_Adapter _tao_call (
this,
_tao_signature,
3,
"server_is_shutting_down_in_activator",
36,
this->the_TAO_Locator_Proxy_Broker_
);
_tao_call.invoke (
_tao_ImplementationRepository_Locator_server_is_shutting_down_in_activator_exceptiondata,
1
ACE_ENV_ARG_PARAMETER
);
ACE_CHECK;
}
// TAO_IDL - Generated from
// c:\cvsdoc\ace_wrappers\build\vc71\tao\tao_idl\be\be_visitor_operation/operation_cs.cpp:78
CORBA::Long ImplementationRepository::Locator::register_activator (
const char * activator,
ImplementationRepository::Administration_ptr admin,
const ImplementationRepository::Locator::ServerNameList & servers
ACE_ENV_ARG_DECL
)
ACE_THROW_SPEC ((
CORBA::SystemException
))
{
if (!this->is_evaluated ())
{
ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
}
if (this->the_TAO_Locator_Proxy_Broker_ == 0)
{
ImplementationRepository_Locator_setup_collocation (
this->ACE_NESTED_CLASS (CORBA, Object)::_is_collocated ()
);
}
TAO::Arg_Traits<CORBA::Long>::ret_val _tao_retval;
TAO::Arg_Traits<CORBA::Char *>::in_arg_val _tao_activator (activator);
TAO::Arg_Traits<ImplementationRepository::Administration>::in_arg_val _tao_admin (admin);
TAO::Arg_Traits<ImplementationRepository::Locator::ServerNameList>::in_arg_val _tao_servers (servers);
TAO::Argument *_tao_signature [] =
{
&_tao_retval,
&_tao_activator,
&_tao_admin,
&_tao_servers
};
TAO::Invocation_Adapter _tao_call (
this,
_tao_signature,
4,
"register_activator",
18,
this->the_TAO_Locator_Proxy_Broker_
);
_tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (_tao_retval.excp ());
return _tao_retval.retn ();
}
// TAO_IDL - Generated from
// c:\cvsdoc\ace_wrappers\build\vc71\tao\tao_idl\be\be_visitor_operation/operation_cs.cpp:78
void ImplementationRepository::Locator::unregister_activator (
const char * activator,
CORBA::Long token
ACE_ENV_ARG_DECL
)
ACE_THROW_SPEC ((
CORBA::SystemException
))
{
if (!this->is_evaluated ())
{
ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
}
if (this->the_TAO_Locator_Proxy_Broker_ == 0)
{
ImplementationRepository_Locator_setup_collocation (
this->ACE_NESTED_CLASS (CORBA, Object)::_is_collocated ()
);
}
TAO::Arg_Traits<void>::ret_val _tao_retval;
TAO::Arg_Traits<CORBA::Char *>::in_arg_val _tao_activator (activator);
TAO::Arg_Traits<CORBA::Long>::in_arg_val _tao_token (token);
TAO::Argument *_tao_signature [] =
{
&_tao_retval,
&_tao_activator,
&_tao_token
};
TAO::Invocation_Adapter _tao_call (
this,
_tao_signature,
3,
"unregister_activator",
20,
this->the_TAO_Locator_Proxy_Broker_
);
_tao_call.invoke (0, 0 ACE_ENV_ARG_PARAMETER);
ACE_CHECK;
}
// TAO_IDL - Generated from
// c:\cvsdoc\ace_wrappers\build\vc71\tao\tao_idl\be\be_visitor_operation/operation_cs.cpp:78
void ImplementationRepository::Locator::server_is_running_in_activator (
const char * server,
const char * activator,
const char * addr,
ImplementationRepository::ServerObject_ptr server_object
ACE_ENV_ARG_DECL
)
ACE_THROW_SPEC ((
CORBA::SystemException
, ImplementationRepository::NotFound
))
{
if (!this->is_evaluated ())
{
ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
}
if (this->the_TAO_Locator_Proxy_Broker_ == 0)
{
ImplementationRepository_Locator_setup_collocation (
this->ACE_NESTED_CLASS (CORBA, Object)::_is_collocated ()
);
}
TAO::Arg_Traits<void>::ret_val _tao_retval;
TAO::Arg_Traits<CORBA::Char *>::in_arg_val _tao_server (server);
TAO::Arg_Traits<CORBA::Char *>::in_arg_val _tao_activator (activator);
TAO::Arg_Traits<ImplementationRepository::Address>::in_arg_val _tao_addr (addr);
TAO::Arg_Traits<ImplementationRepository::ServerObject>::in_arg_val _tao_server_object (server_object);
TAO::Argument *_tao_signature [] =
{
&_tao_retval,
&_tao_server,
&_tao_activator,
&_tao_addr,
&_tao_server_object
};
static TAO::Exception_Data
_tao_ImplementationRepository_Locator_server_is_running_in_activator_exceptiondata [] =
{
{
"IDL:ImplementationRepository/NotFound:1.0",
ImplementationRepository::NotFound::_alloc,
ImplementationRepository::_tc_NotFound
}
};
TAO::Invocation_Adapter _tao_call (
this,
_tao_signature,
5,
"server_is_running_in_activator",
30,
this->the_TAO_Locator_Proxy_Broker_
);
_tao_call.invoke (
_tao_ImplementationRepository_Locator_server_is_running_in_activator_exceptiondata,
1
ACE_ENV_ARG_PARAMETER
);
ACE_CHECK;
}
// TAO_IDL - Generated from
// c:\cvsdoc\ace_wrappers\build\vc71\tao\tao_idl\be\be_visitor_operation/operation_cs.cpp:78
void ImplementationRepository::Locator::find_in_activator (
const char * server,
const char * activator,
ImplementationRepository::ServerInformation_out info
ACE_ENV_ARG_DECL
)
ACE_THROW_SPEC ((
CORBA::SystemException
, ImplementationRepository::NotFound
))
{
if (!this->is_evaluated ())
{
ACE_NESTED_CLASS (CORBA, Object)::tao_object_initialize (this);
}
if (this->the_TAO_Locator_Proxy_Broker_ == 0)
{
ImplementationRepository_Locator_setup_collocation (
this->ACE_NESTED_CLASS (CORBA, Object)::_is_collocated ()
);
}
TAO::Arg_Traits<void>::ret_val _tao_retval;
TAO::Arg_Traits<CORBA::Char *>::in_arg_val _tao_server (server);
TAO::Arg_Traits<CORBA::Char *>::in_arg_val _tao_activator (activator);
TAO::Arg_Traits<ImplementationRepository::ServerInformation>::out_arg_val _tao_info (info);
TAO::Argument *_tao_signature [] =
{
&_tao_retval,
&_tao_server,
&_tao_activator,
&_tao_info
};
static TAO::Exception_Data
_tao_ImplementationRepository_Locator_find_in_activator_exceptiondata [] =
{
{
"IDL:ImplementationRepository/NotFound:1.0",
ImplementationRepository::NotFound::_alloc,
ImplementationRepository::_tc_NotFound
}
};
TAO::Invocation_Adapter _tao_call (
this,
_tao_signature,
4,
"find_in_activator",
17,
this->the_TAO_Locator_Proxy_Broker_
);
_tao_call.invoke (
_tao_ImplementationRepository_Locator_find_in_activator_exceptiondata,
1
ACE_ENV_ARG_PARAMETER
);
ACE_CHECK;
}
ImplementationRepository::Locator::Locator (int collocated)
: the_TAO_Locator_Proxy_Broker_ (0)
{
this->ImplementationRepository_Locator_setup_collocation (collocated);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?