persistency

package
v0.0.0-...-a7dc4af Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DummyPersistency

type DummyPersistency struct {
}

DummyPersistenxy implements the PersistencyImplementer interface but does not do anyhthing when one of the methods are called.

func (*DummyPersistency) SaveJobInfo

func (dp *DummyPersistency) SaveJobInfo(jobid string, ji types.JobInfo) error

func (*DummyPersistency) SaveJobTemplate

func (dp *DummyPersistency) SaveJobTemplate(jobid string, jt types.JobTemplate) error

type PersistencyImplementer

type PersistencyImplementer interface {
	// SaveJobTemplate makes the JobTemplate persistent. This is done after
	// a job was submitted by the client.
	SaveJobTemplate(jobid string, jinfo types.JobTemplate) error
	// SaveJobInfo makes the JobInfo object persistent. This is usually done
	// in intervalls or when the user requests a JobInfo object or when the
	// job is reaped from the DRM:
	SaveJobInfo(jobid string, jinfo types.JobInfo) error
}

PersistencyImplementer is an interface which contains all functions required for making elements (job templates / states etc.) persistent on some endpoints (databases, filesystem / cloud storage etc.). This functionality is required when the DRM does not have support for it or when more advanced operations (moving submitted jobs between clusters) are going to be implemented.

Jump to

Keyboard shortcuts

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