Public Member Functions | Public Attributes | Private Attributes

mif_JobManager Class Reference
[G_new_group]

#include <mif_jobmanager.h>

Inheritance diagram for mif_JobManager:
Inheritance graph
[legend]
Collaboration diagram for mif_JobManager:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void SetIMif (i_ManagementInterface_i *a_iMif)
i_AdminJob_iCreateFormatAndInitJob (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_iCreateRecreateFriAndMicJob (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_iCreateCloseVolumeJob (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_im_iMif

Private Attributes

 log_CLASSID_m

Detailed Description

Definition at line 61 of file mif_jobmanager.h.


Member Function Documentation

i_Job_ptr mif_JobManager::CreateBackupJob ( const char *  a_barcode  ) 

Definition at line 161 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().

                                                               {

    log_FUNC_m(CreateBackupJob);

    i_BackupJob_i* job = new i_BackupJob_i(*this, a_barcode);
    AddJobToList(job);
   
    log_DBG_m(dbg_DETAIL,"Job Returned");
    return job->GetJob();
        
}

Here is the call graph for this function:

Here is the caller graph for this function:

i_AdminJob_i * mif_JobManager::CreateCloseVolumeJob ( i_UIMessageServer_ptr  a_uims,
const char *  a_barcode,
const i_VolNumList_t a_volumes 
)

Definition at line 132 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().

                                                                      {
    log_FUNC_m(CreateCloseVolumeJob);
    log_DBG_m(dbg_NORM,"ADMIN JOB MANAGER: Admin job invoked with:" << endl <<
                        "   a_medBarcode  " << a_barcode  << endl);

    // create new job with reference to job manager and job parameters!
    i_AdminJob_i* job = new i_AdminJob_i(  *this, 
                                            false,
                                            false,
                                            false,
                                            false,
                                            true,
                                            false,
                                            a_barcode,
                                            a_volumes,
                                            a_uims);

    AddJobToList(job);
    ipc_EXEC_m(
        log_DBG_m(dbg_LOW, "ADMIN JOB MANAGER: Started new job " << job->GetJobId() << ".");
    )

    return job;
} // mif_JobManager::CreateCloseVolumeJob()

Here is the call graph for this function:

Here is the caller graph for this function:

void mif_JobManager::CreateDuplMedJob ( i_UIMessageServer_ptr  a_uims,
string  a_sourceBarCode,
string  a_targetBarCode,
bool  a_forced 
)

Definition at line 174 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().

                                                {
    log_FUNC_m(CreateDuplMedJob);

    // create new job with reference to job manager and job parameters!
    i_MediumDupl_i* job = new i_MediumDupl_i(  
                                    *this, 
                                    a_sourceBarCode,
                                    a_targetBarCode,
                                    a_forced,
                                    a_uims);

    AddJobToList(job);

    ipc_EXEC_m(
        log_DBG_m(dbg_LOW, "JOB MANAGER: Started new job " << job->GetJobId() << ".");
    )
}

Here is the call graph for this function:

Here is the caller graph for this function:

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 66 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().

                                                                               {

    log_FUNC_m(CreateFormatAndInitJob);
    log_DBG_m(dbg_NORM,"ADMIN JOB MANAGER: Admin job invoked with:" << endl <<
                        "   a_medBarcode       " << a_barcode       << endl);

    // create new job with reference to job manager and job parameters!
    i_AdminJob_i* job = new i_AdminJob_i(  *this, 
                                            a_doInit,
                                            a_doFormat,
                                            false,
                                            false,
                                            false,
                                            a_forced,
                                            a_barcode,
                                            a_volumes,
                                            a_uims);

    AddJobToList(job);
    ipc_EXEC_m(
        log_DBG_m(dbg_LOW, "ADMIN JOB MANAGER: Started new job " << 
                            job->GetJobId() << ".");
    )
    return job;
} // mif_JobManager::CreateFormatAndInitJob()

Here is the call graph for this function:

Here is the caller graph for this function:

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 99 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().

                                                             {

    log_FUNC_m(CreateRecreateFriAndMicJob);

    // create new job with reference to job manager and job parameters!
    i_AdminJob_i* job = new i_AdminJob_i(  *this, 
                                            false,
                                            false,
                                            a_doFri,
                                            a_doMic,
                                            false,
                                            a_forced,
                                            a_barcode,
                                            a_volumes,
                                            a_uims,
                                            a_into,
                                            a_intoPath);

    AddJobToList(job);
    ipc_EXEC_m(
        log_DBG_m(dbg_LOW, "ADMIN JOB MANAGER: Started new job " << job->GetJobId() << ".");
    )
    return job;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void mif_JobManager::SetIMif ( i_ManagementInterface_i a_iMif  ) 

Definition at line 57 of file mif_jobmanager.cpp.

References log_FUNC_m, and m_iMif.

Referenced by i_ManagementInterface_i::i_ManagementInterface_i().

                                                            {

    log_FUNC_m(SetIMif);

    m_iMif = a_iMif;

}

Here is the caller graph for this function:


Member Data Documentation

Reimplemented from job_Manager.

Definition at line 98 of file mif_jobmanager.h.

Definition at line 94 of file mif_jobmanager.h.

Referenced by SetIMif().


The documentation for this class was generated from the following files: