datanode

package
v0.0.0-...-9dc9b3d Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BlockPermission = 0644
)

Variables

This section is empty.

Functions

func BlockFileFormat

func BlockFileFormat(rootDir string, handle common.BlockHandle) string

func Run

func Run(rootDir string, addr, masterAddr common.NodeAddress, nodeType common.NodeType)

Types

type Block

type Block struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

type DataNode

type DataNode struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*DataNode) CreateBlock

func (d *DataNode) CreateBlock(args ipc.CreateBlockArgs, response *ipc.CreateBlockResponse) error

func (*DataNode) ForwardBlocks

func (d *DataNode) ForwardBlocks(args ipc.ForwardDataArgs, response *ipc.ForwardDataResponse) error

func (*DataNode) GarbageCollection

func (d *DataNode) GarbageCollection() error

func (*DataNode) Heartbeat

func (d *DataNode) Heartbeat() error

func (*DataNode) ReadBlock

func (d *DataNode) ReadBlock(args ipc.ReadBlockArgs, response *ipc.ReadBlockResponse) error

func (*DataNode) RemoveBlock

func (d *DataNode) RemoveBlock(handle common.BlockHandle) error

func (*DataNode) WriteBlock

func (d *DataNode) WriteBlock(args ipc.WriteBlockArgs, response *ipc.WriteBlockResponse) error

type Forward

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

Jump to

Keyboard shortcuts

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