VOBOXAvailabilityCommand

VOBOXAvailabilityCommand module

class DIRAC.ResourceStatusSystem.Command.VOBOXAvailabilityCommand.VOBOXAvailabilityCommand(args=None, clients=None)

Bases: Command

Given an url pointing to a service on a vobox, use DIRAC ping against it.

__init__(args=None, clients=None)
doCache()

To be extended/replaced by real commands

doCommand()

The Command pings a service on a vobox, it needs a service URL to ping it.

Returns:

a dict with the following:

{
  'serviceUpTime' : <serviceUpTime>,
  'machineUpTime' : <machineUpTime>,
  'site'          : <site>,
  'system'        : <system>,
  'service'       : <service>
}

doMaster()

To be extended/replaced by real commands

doNew(masterParams=None)

To be extended/replaced by real commands

returnERROR(s_obj)

Overwrites S_ERROR message with command name, much easier to debug

returnSObj(s_obj)

Overwrites S_ERROR message with command name, much easier to debug