PolicyBase

PolicyBase

The Policy class is a simple base class for all the policies.

class DIRAC.ResourceStatusSystem.PolicySystem.PolicyBase.PolicyBase

Bases: object

Base class for all the policies. Do not instantiate directly. To use, you should call setCommand on the real policy instance.

__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