monitor

package
v0.0.0-...-ac5d820 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2023 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Overview

Package monitor is the nexus of the batch system.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Timestamp time.Time
	Job       *job.Job
	Request   string
}

Message is data format for communication between client and server.

func MakeMsg

func MakeMsg(req string, j *job.Job) Message

MakeMsg returns a new message.

type Monitor

type Monitor struct {
	// contains filtered or unexported fields
}

Monitor runs the Job Queue and accepts requests from client.

func Create

func Create(name, sock string, slots int) (*Monitor, error)

Create creates and returns a new Monitor.

func (*Monitor) Active

func (m *Monitor) Active() bool

Active returns the Monitor's active flag

func (*Monitor) Start

func (m *Monitor) Start()

Start starts the Monitor and its components.

func (*Monitor) Stop

func (m *Monitor) Stop()

Stop tells the Monitor to stop.

type Response

type Response struct {
	Timestamp time.Time
	Sequence  int64
	Status    string
	Jobs      []job.Job
}

Response is the basic response the Monitor sends after handling a Message.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL