library/src/blockclass/subclasses/BPSC_SSHIntegrityChecker.cc
// lookup (populate) host configurations in queue (normally called in pollQueue directly)
lookup (populate) host configurations in queue (normally called in pollQueue directly)
lookup ( populate ) host configurations in queue ( normally called in pollQueue directly )
BP_ERROR_T BPSC_SSHIntegrityChecker::lookupHostConfigFromQueue(BPSC_JOB_QUEUE_STATUS which_queue)
{
	size_t counter = 0;
	P_BPSC_JOB_QUEUE_ENTRY entries = NULL;
	switch(which_queue)
	{
		case BPSC_JOB_QUEUE_STATUS_NEW:
			entries = this->new_queue;
			counter = this->new_entry_count;
			break;
		case BPSC_JOB_QUEUE_STATUS_FINISHED:
			entries = this->finished_queue;
			counter = this->finished_entry_count;
			break;
		case BPSC_JOB_QUEUE_STATUS_RUNNING:
			entries = this->running_queue;
			counter = this->running_entry_count;
			break;
		case BPSC_JOB_QUEUE_STATUS_WAITING:
			entries = this->waiting_queue;
			counter = this->waiting_entry_count;
			break;
		default:
			return ERR_FAILURE;
	}
	size_t i = 0;
	for(i = 0; i < counter; i++)
	{
	}
	return ERR_SUCCESS;
}
BP_ERROR_T BPSC_SSHIntegrityChecker :: lookupHostConfigFromQueue ( BPSC_JOB_QUEUE_STATUS which_queue ) { size_t counter = 0 ; P_BPSC_JOB_QUEUE_ENTRY entries = NULL ; switch ( which_queue ) { case BPSC_JOB_QUEUE_STATUS_NEW : entries = this -> new_queue ; counter = this -> new_entry_count ; break ; case BPSC_JOB_QUEUE_STATUS_FINISHED : entries = this -> finished_queue ; counter = this -> finished_entry_count ; break ; case BPSC_JOB_QUEUE_STATUS_RUNNING : entries = this -> running_queue ; counter = this -> running_entry_count ; break ; case BPSC_JOB_QUEUE_STATUS_WAITING : entries = this -> waiting_queue ; counter = this -> waiting_entry_count ; break ; default : return ERR_FAILURE ; } size_t i = 0 ; for ( i = 0 ; i < counter ; i ++ ) { } return ERR_SUCCESS ; }
lookup (populate) host configurations in queue (normally called in pollQueue directly)
lookup ( populate ) host configurations in queue ( normally called in pollQueue directly )
// variables required for data retrieval // now set pointers in class/free old pointers // shouldn't ever trigger this // index counter // walk the queues // LAST WORKING HERE // return indicating success