VOBOXAvailabilityCommand

VOBOXAvailabilityCommand module

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

Bases: DIRAC.ResourceStatusSystem.Command.Command.Command

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

__init__(args=None, clients=None)

x.__init__(…) initializes x; see help(type(x)) for signature

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