Home Previous Up Next Index

IcePatch2::FileServer

Overview

interface FileServer

The interface that provides access to files.

Operation Index

getFileInfoSeq
Return the FileInfoSeq for the specified partition.
getChecksumSeq
Return the checksums for all partitions.
getChecksum
Return the master checksum for all partitions.
getFileCompressed
Read the specified file.

Operations

FileInfoSeq getFileInfoSeq(int partition) throws PartitionOutOfRangeException

Return the FileInfoSeq for the specified partition. If the partion number is out of range, the operation throws PartitionOutOfRangException.

Parameters

partition
The partition number in the range 0-255.

Return Value

A sequence containing the FileInfo structures for files in the specified partition.

ByteSeqSeq getChecksumSeq()

Return the checksums for all partitions.

Return Value

A sequence containing 256 checksums. Partitions with a checksum that differs from the previous checksum for the same partition contain updated files. Partitions with a checksum that is identical to the previous checksum do not contain updated files.

::Ice::ByteSeq getChecksum()

Return the master checksum for all partitions. If this checksum is the same as for a previous run, the entire file set is up-to-date.

Return Value

The master checksum for the file set.

::Ice::ByteSeq getFileCompressed(string path, int pos, int num) throws FileAccessException

Read the specified file. If the read operation fails, the operation throws FileAccessException. This operation may only return fewer bytes than requested in case there was an end-of-file condition.

Parameters

path
The pathname (relative to the data directory) for the file to be read.
pos
The file offset at which to begin reading.
num
The number of bytes to be read.

Return Value

A sequence containing the compressed file contents.


Home Previous Up Next Index