Back to index

nordugrid-arc-nox  1.1.0~rc6
Classes | Functions
GridScheduler Namespace Reference

Classes

class  StatusJobSelector
class  GridSchedulerService
class  MatchSelector
class  Resource
class  ResourcesHandling

Functions

static Arc::Pluginget_service (Arc::PluginArgument *arg)
void sched (void *arg)
void reschedule (void *arg)
static void thread_starter (void *arg)

Function Documentation

Definition at line 53 of file grid_sched.cpp.

{
    Arc::ServicePluginArgument* srvarg =
            arg?dynamic_cast<Arc::ServicePluginArgument*>(arg):NULL;
    if(!srvarg) return NULL;
    return new GridSchedulerService((Arc::Config*)(*srvarg));
}
void GridScheduler::reschedule ( void *  arg)

Definition at line 343 of file grid_sched.cpp.

{
    GridSchedulerService *self = (GridSchedulerService *)arg;
    for (;;) {
        sleep(self->getReschedulePeriod());
        self->doReschedule();
    }
}

Here is the caller graph for this function:

void GridScheduler::sched ( void *  arg)

Definition at line 303 of file grid_sched.cpp.

{
    GridSchedulerService *self = (GridSchedulerService*) arg;
    
    for(;;) {
        sleep(self->getPeriod());
        self->doSched();
    }
}

Here is the caller graph for this function:

static void GridScheduler::thread_starter ( void *  arg) [static]

Definition at line 352 of file grid_sched.cpp.

                                      {
  if(!arg) return;
  ((GridSchedulerService*)arg)->InformationCollector();
}

Here is the caller graph for this function: