DowntimePolicy

DowntimePolicy module

class DIRAC.ResourceStatusSystem.Policy.DowntimePolicy.DowntimePolicy

Bases: DIRAC.ResourceStatusSystem.PolicySystem.PolicyBase.PolicyBase

The DowntimePolicy checks for downtimes, scheduled or ongoing, depending on the command parameters.

__init__()

Constructor

evaluate()

Before use, call setCommand.

Invoking super(PolicyCLASS, self).evaluate will invoke the command (if necessary) as it is provided and returns the results.

setCommand(policyCommand)

Set self.command.

Params

commandIn: a command object