void IdAssignment::destroy_supplier_admin ( CosNotifyChannelAdmin::ChannelID channel_id, CosNotifyChannelAdmin::AdminID admin_id ) { CosNotifyChannelAdmin::EventChannel_var ec = this->notify_factory_->get_event_channel (channel_id); if (CORBA::is_nil (ec.in ())) { ACE_ERROR ((LM_ERROR, " (%P|%t) Unable to find event channel\n")); } CosNotifyChannelAdmin::SupplierAdmin_var supplier_admin = ec->get_supplieradmin (admin_id); if (CORBA::is_nil (supplier_admin.in ())) ACE_ERROR ((LM_ERROR, " (%P|%t) Unable to get supplier admin\n")); supplier_admin->destroy (); if (TAO_debug_level) ACE_DEBUG ((LM_DEBUG, "destroyed supplier admin\n")); }
bool IdAssignment::default_supplier_admin_test (CosNotifyChannelAdmin::ChannelID channel_id) { CosNotifyChannelAdmin::EventChannel_var ec = this->notify_factory_->get_event_channel (channel_id); if (CORBA::is_nil (ec.in ())) { ACE_ERROR((LM_ERROR, " (%P|%t) Unable to find event channel\n")); return false; } CosNotifyChannelAdmin::SupplierAdmin_var default_supplier_admin = ec->get_supplieradmin (0); if (CORBA::is_nil (default_supplier_admin.in())) { ACE_ERROR_RETURN ((LM_ERROR, " (%P|%t) Unable to create default supplier admin\n"), false); } CosNotifyChannelAdmin::SupplierAdmin_var def = ec->default_supplier_admin (); if (CORBA::is_nil (default_supplier_admin.in())) { ACE_ERROR_RETURN ((LM_ERROR, " (%P|%t) Unable to get default supplier admin\n"), false); } if (! default_supplier_admin->_is_equivalent(def.in ())) { ACE_ERROR_RETURN ((LM_ERROR, " (%P|%t) failed for default supplier admin checking\n"), false); } if (TAO_debug_level) ACE_DEBUG ((LM_DEBUG, "passed default supplier admin test.\n")); return true; }