libgs.rpc.RPCSchedulerServer

class libgs.rpc.RPCSchedulerServer(gs, addr='localhost', port=8000, enforce_signoffs=None)[source]

XMLRPC interface to Scheduler class

This class sets up an RPC server that can be contacted remotely in order to load and execute a schedule (it will create a local scheduler with that) schedule and execute it.

Most of the methods here are directly wrapping Scheduler methods, so please see libgs.scheduler.Scheduler for details.

Todo

Move into Scheduler class (in the same way the ground station RPC interface is in the groundstaiton class now)

Parameters:
  • gs – The groundstation object to interface with
  • addr – The address to bind to
  • port – The port to bind to
  • enforce_signoffs – (optional) Number of signoffs to enforce

Methods

disable() Disable scheduler.
enable() Enable scheduler.
execute_schedule(schedule[, …]) Create a new scheduler, load the attached schedule and execute it.
scheduler_state() Get the scheduler state.
start() Start XMLRPC server in a new thread
stop_schedule() Stop the scheduler.

Inherited from base class