Esempio n. 1
0
DsLogAdmin::BasicLog_ptr
TAO_BasicLogFactory_i::create (DsLogAdmin::LogFullActionType full_action,
                               CORBA::ULongLong max_size,
                               DsLogAdmin::LogId_out id_out)
{
  this->create_i (full_action,
                  max_size,
                  0,
                  id_out);
  DsLogAdmin::LogId id = id_out;

#if (TAO_HAS_MINIMUM_POA == 0)
  DsLogAdmin::Log_var log =
    this->create_log_reference (id);
#else
  DsLogAdmin::Log_var log =
    this->create_log_object (id);
#endif

  // narrow to BasicLog
  DsLogAdmin::BasicLog_var basic_log =
    DsLogAdmin::BasicLog::_narrow (log.in ());

  return basic_log._retn ();
}
Logging::AcsLogService_ptr ACSLogFactory_i::create_with_id (
		DsLogAdmin::LogId id,
		DsLogAdmin::LogFullActionType full_action,
		CORBA::ULongLong max_size)
{
	this->create_with_id_i (id,
			full_action,
			max_size,
			0);

	DsLogAdmin::Log_var log =
		this->create_log_object (id);

	// narrow to AcsLogService
	Logging::AcsLogService_var acs_log =
		Logging::AcsLogService::_narrow (log.in ());

	return acs_log._retn ();
}
Esempio n. 3
0
DsLogAdmin::Log_ptr
TAO_LogMgr_i::create_log_reference (DsLogAdmin::LogId id)
{
  PortableServer::ObjectId_var oid =
    this->create_objectid (id);
  CORBA::RepositoryId_var intf =
    this->create_repositoryid ();

  CORBA::Object_var obj =
    this->log_poa_->create_reference_with_id (oid.in (),
                intf.in ());

  // Use _unchecked_narrow() because this may be called from a servant
  // activator's incarnate() method.  A plain _narrow() will result in
  // infinate recursion.
  DsLogAdmin::Log_var log =
    DsLogAdmin::Log::_unchecked_narrow (obj.in ());

  return log._retn();
}
Logging::AcsLogService_ptr ACSLogFactory_i::create (
		DsLogAdmin::LogFullActionType full_action,
		CORBA::ULongLong max_size,
		DsLogAdmin::LogId_out id_out)
{
	this->create_i (full_action,
			max_size,
			0,
			id_out);
	DsLogAdmin::LogId id = id_out;

	DsLogAdmin::Log_var log =
		this->create_log_object (id);

	Logging::AcsLogService_var acs_log =
		Logging::AcsLogService::_narrow (log.in ());

	return acs_log._retn ();

}