#include <mif_jobmanager.h>


Definition at line 47 of file mif_jobmanager.h.
Public Member Functions | |
| void | SetIMif (i_ManagementInterface_i *a_iMif) |
| i_AdminJob_i * | CreateFormatAndInitJob (i_UIMessageServer_ptr a_uims, CORBA::Boolean a_doFormat, CORBA::Boolean a_doInit, CORBA::Boolean a_forced, const char *a_barCode, const i_VolNumList_t &a_volumes) |
| i_AdminJob_i * | CreateRecreateFriAndMicJob (i_UIMessageServer_ptr a_uims, CORBA::Boolean a_doFri, CORBA::Boolean a_doMic, CORBA::Boolean a_forced, const char *a_barCode, const i_VolNumList_t &a_volumes, CORBA::Boolean a_into, const char *a_intoPath) |
| i_AdminJob_i * | CreateCloseVolumeJob (i_UIMessageServer_ptr a_uims, const char *a_barcode, const i_VolNumList_t &a_volumes) |
| i_Job_ptr | CreateBackupJob (const char *a_barcode) |
| void | CreateDuplMedJob (i_UIMessageServer_ptr a_uims, string a_sourceBarCode, string a_targetBarCode, bool a_forced) |
Public Attributes | |
| i_ManagementInterface_i * | m_iMif |
Private Attributes | |
| log_CLASSID_m | |
| void mif_JobManager::SetIMif | ( | i_ManagementInterface_i * | a_iMif | ) |
Definition at line 43 of file mif_jobmanager.cpp.
References log_FUNC_m, and m_iMif.
Referenced by i_ManagementInterface_i::i_ManagementInterface_i().
00043 { 00044 00045 log_FUNC_m(SetIMif); 00046 00047 m_iMif = a_iMif; 00048 00049 }

| i_AdminJob_i * mif_JobManager::CreateFormatAndInitJob | ( | i_UIMessageServer_ptr | a_uims, | |
| CORBA::Boolean | a_doFormat, | |||
| CORBA::Boolean | a_doInit, | |||
| CORBA::Boolean | a_forced, | |||
| const char * | a_barCode, | |||
| const i_VolNumList_t & | a_volumes | |||
| ) |
Definition at line 52 of file mif_jobmanager.cpp.
References job_Manager::AddJobToList(), dbg_LOW, dbg_NORM, i_Job_i::GetJobId(), ipc_EXEC_m, log_DBG_m, and log_FUNC_m.
Referenced by i_ManagementInterface_i::FormatAndInitMedium().
00058 { 00059 00060 log_FUNC_m(CreateFormatAndInitJob); 00061 log_DBG_m(dbg_NORM,"ADMIN JOB MANAGER: Admin job invoked with:" << endl << 00062 " a_medBarcode " << a_barcode << endl); 00063 00064 // create new job with reference to job manager and job parameters! 00065 i_AdminJob_i* job = new i_AdminJob_i( *this, 00066 a_doInit, 00067 a_doFormat, 00068 false, 00069 false, 00070 false, 00071 a_forced, 00072 a_barcode, 00073 a_volumes, 00074 a_uims); 00075 00076 AddJobToList(job); 00077 ipc_EXEC_m( 00078 log_DBG_m(dbg_LOW, "ADMIN JOB MANAGER: Started new job " << 00079 job->GetJobId() << "."); 00080 ) 00081 return job; 00082 } // mif_JobManager::CreateFormatAndInitJob()


| i_AdminJob_i * mif_JobManager::CreateRecreateFriAndMicJob | ( | i_UIMessageServer_ptr | a_uims, | |
| CORBA::Boolean | a_doFri, | |||
| CORBA::Boolean | a_doMic, | |||
| CORBA::Boolean | a_forced, | |||
| const char * | a_barCode, | |||
| const i_VolNumList_t & | a_volumes, | |||
| CORBA::Boolean | a_into, | |||
| const char * | a_intoPath | |||
| ) |
Definition at line 85 of file mif_jobmanager.cpp.
References job_Manager::AddJobToList(), dbg_LOW, i_Job_i::GetJobId(), ipc_EXEC_m, log_DBG_m, and log_FUNC_m.
Referenced by i_ManagementInterface_i::RecreateFriAndMic().
00092 { 00093 00094 log_FUNC_m(CreateRecreateFriAndMicJob); 00095 00096 // create new job with reference to job manager and job parameters! 00097 i_AdminJob_i* job = new i_AdminJob_i( *this, 00098 false, 00099 false, 00100 a_doFri, 00101 a_doMic, 00102 false, 00103 a_forced, 00104 a_barcode, 00105 a_volumes, 00106 a_uims, 00107 a_into, 00108 a_intoPath); 00109 00110 AddJobToList(job); 00111 ipc_EXEC_m( 00112 log_DBG_m(dbg_LOW, "ADMIN JOB MANAGER: Started new job " << job->GetJobId() << "."); 00113 ) 00114 return job; 00115 }


| i_AdminJob_i * mif_JobManager::CreateCloseVolumeJob | ( | i_UIMessageServer_ptr | a_uims, | |
| const char * | a_barcode, | |||
| const i_VolNumList_t & | a_volumes | |||
| ) |
Definition at line 118 of file mif_jobmanager.cpp.
References job_Manager::AddJobToList(), dbg_LOW, dbg_NORM, i_Job_i::GetJobId(), ipc_EXEC_m, log_DBG_m, and log_FUNC_m.
Referenced by i_ManagementInterface_i::CloseVolume().
00121 { 00122 log_FUNC_m(CreateCloseVolumeJob); 00123 log_DBG_m(dbg_NORM,"ADMIN JOB MANAGER: Admin job invoked with:" << endl << 00124 " a_medBarcode " << a_barcode << endl); 00125 00126 // create new job with reference to job manager and job parameters! 00127 i_AdminJob_i* job = new i_AdminJob_i( *this, 00128 false, 00129 false, 00130 false, 00131 false, 00132 true, 00133 false, 00134 a_barcode, 00135 a_volumes, 00136 a_uims); 00137 00138 AddJobToList(job); 00139 ipc_EXEC_m( 00140 log_DBG_m(dbg_LOW, "ADMIN JOB MANAGER: Started new job " << job->GetJobId() << "."); 00141 ) 00142 00143 return job; 00144 } // mif_JobManager::CreateCloseVolumeJob()


| i_Job_ptr mif_JobManager::CreateBackupJob | ( | const char * | a_barcode | ) |
Definition at line 147 of file mif_jobmanager.cpp.
References job_Manager::AddJobToList(), dbg_DETAIL, i_Job_i::GetJob(), log_DBG_m, and log_FUNC_m.
Referenced by i_ManagementInterface_i::Backup().
00147 { 00148 00149 log_FUNC_m(CreateBackupJob); 00150 00151 i_BackupJob_i* job = new i_BackupJob_i(*this, a_barcode); 00152 AddJobToList(job); 00153 00154 log_DBG_m(dbg_DETAIL,"Job Returned"); 00155 return job->GetJob(); 00156 00157 }


| void mif_JobManager::CreateDuplMedJob | ( | i_UIMessageServer_ptr | a_uims, | |
| string | a_sourceBarCode, | |||
| string | a_targetBarCode, | |||
| bool | a_forced | |||
| ) |
Definition at line 160 of file mif_jobmanager.cpp.
References job_Manager::AddJobToList(), dbg_LOW, i_Job_i::GetJobId(), ipc_EXEC_m, log_DBG_m, and log_FUNC_m.
Referenced by i_ManagementInterface_i::DuplicateMedium().
00164 { 00165 log_FUNC_m(CreateDuplMedJob); 00166 00167 // create new job with reference to job manager and job parameters! 00168 i_MediumDupl_i* job = new i_MediumDupl_i( 00169 *this, 00170 a_sourceBarCode, 00171 a_targetBarCode, 00172 a_forced, 00173 a_uims); 00174 00175 AddJobToList(job); 00176 00177 ipc_EXEC_m( 00178 log_DBG_m(dbg_LOW, "JOB MANAGER: Started new job " << job->GetJobId() << "."); 00179 ) 00180 }


mif_JobManager::log_CLASSID_m [private] |
1.5.6