AlwaysBannedPolicy

AlwaysBannedPolicy module

class DIRAC.ResourceStatusSystem.Policy.AlwaysBannedPolicy.AlwaysBannedPolicy

Bases: DIRAC.ResourceStatusSystem.PolicySystem.PolicyBase.PolicyBase

The AlwaysBannedPolicy is a dummy module that can be used as example, it always returns Banned status.

__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