Documentation ¶
Index ¶
- Constants
- func BlockFileFormat(rootDir string, handle common.BlockHandle) string
- func Run(rootDir string, addr, masterAddr common.NodeAddress, nodeType common.NodeType)
- type Block
- type DataNode
- func (d *DataNode) CreateBlock(args ipc.CreateBlockArgs, response *ipc.CreateBlockResponse) error
- func (d *DataNode) ForwardBlocks(args ipc.ForwardDataArgs, response *ipc.ForwardDataResponse) error
- func (d *DataNode) GarbageCollection() error
- func (d *DataNode) Heartbeat() error
- func (d *DataNode) ReadBlock(args ipc.ReadBlockArgs, response *ipc.ReadBlockResponse) error
- func (d *DataNode) RemoveBlock(handle common.BlockHandle) error
- func (d *DataNode) WriteBlock(args ipc.WriteBlockArgs, response *ipc.WriteBlockResponse) error
- type Forward
Constants ¶
View Source
const (
BlockPermission = 0644
)
Variables ¶
This section is empty.
Functions ¶
func BlockFileFormat ¶
func BlockFileFormat(rootDir string, handle common.BlockHandle) string
Types ¶
type DataNode ¶
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 (*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
Click to show internal directories.
Click to hide internal directories.