services_bbs

package
v0.0.0-...-a17cc88 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2014 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Presence

type Presence interface {
	Maintain(interval time.Duration) (status <-chan bool, err error)
	Remove()
}

func NewPresence

func NewPresence(store storeadapter.StoreAdapter, key string, value []byte) Presence

type ServicesBBS

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

func New

func New(store storeadapter.StoreAdapter, logger lager.Logger) *ServicesBBS

func (*ServicesBBS) GetAllExecutors

func (bbs *ServicesBBS) GetAllExecutors() ([]models.ExecutorPresence, error)

func (*ServicesBBS) GetAllFileServers

func (bbs *ServicesBBS) GetAllFileServers() ([]string, error)

func (*ServicesBBS) GetAvailableFileServer

func (bbs *ServicesBBS) GetAvailableFileServer() (string, error)

func (*ServicesBBS) GetServiceRegistrations

func (bbs *ServicesBBS) GetServiceRegistrations() (models.ServiceRegistrations, error)

func (*ServicesBBS) MaintainExecutorPresence

func (bbs *ServicesBBS) MaintainExecutorPresence(heartbeatInterval time.Duration, executorPresence models.ExecutorPresence) (Presence, <-chan bool, error)

func (*ServicesBBS) MaintainFileServerPresence

func (bbs *ServicesBBS) MaintainFileServerPresence(heartbeatInterval time.Duration, fileServerURL string, fileServerId string) (Presence, <-chan bool, error)

Jump to

Keyboard shortcuts

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