public class IgfsMetaManager extends IgfsManager
igfsCtx| Constructor and Description |
|---|
IgfsMetaManager(boolean relaxed)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
IgfsSecondaryOutputStreamDescriptor |
createDual(IgfsSecondaryFileSystem fs,
IgfsPath path,
boolean simpleCreate,
Map<String,String> props,
boolean overwrite,
int bufSize,
short replication,
long blockSize,
IgniteUuid affKey)
Create the file in DUAL mode.
|
boolean |
deleteDual(IgfsSecondaryFileSystem fs,
IgfsPath path,
boolean recursive)
Delete path in DUAL mode.
|
Map<String,IgfsListingEntry> |
directoryListing(IgniteUuid fileId)
List child files for specified file ID.
|
boolean |
exists(IgniteUuid fileId)
Ensure that entry with the given ID exists in meta cache.
|
IgfsEntryInfo |
fileForFragmentizer(Collection<IgniteUuid> exclude)
Gets first available file info for fragmentizer.
|
IgniteUuid |
fileId(IgfsPath path)
Gets file ID for specified path.
|
IgniteUuid |
fileId(IgniteUuid parentId,
String fileName)
Gets file ID by its name from parent directory listing.
|
List<IgniteUuid> |
fileIds(IgfsPath path)
Gets all file IDs for components of specified path.
|
IgfsEntryInfo |
info(IgniteUuid fileId)
Gets file info by its ID.
|
Map<IgniteUuid,IgfsEntryInfo> |
infos(Collection<IgniteUuid> fileIds)
Gets files details by their IDs.
|
IgfsEntryInfo |
lock(IgniteUuid fileId,
boolean del)
Lock the file explicitly outside of transaction.
|
boolean |
mkdirsDual(IgfsSecondaryFileSystem fs,
IgfsPath path,
Map<String,String> props)
Create directory in DUAL mode.
|
void |
move(IgfsPath srcPath,
IgfsPath dstPath)
Move routine.
|
protected void |
onKernalStart0() |
protected void |
onKernalStop0(boolean cancel) |
IgfsSecondaryInputStreamDescriptor |
openDual(IgfsSecondaryFileSystem fs,
IgfsPath path,
int bufSize)
Open file in DUAL mode.
|
IgfsPathIds |
pathIds(IgfsPath path)
Gets all file IDs for components of specified path.
|
Collection<IgniteUuid> |
pendingDeletes()
Check whether there are any pending deletes and return collection of pending delete entry IDs.
|
boolean |
renameDual(IgfsSecondaryFileSystem fs,
IgfsPath src,
IgfsPath dest)
Rename path in DUAL mode.
|
IgfsEntryInfo |
reserveSpace(IgfsPath path,
IgniteUuid fileId,
long space,
IgfsFileAffinityRange affRange)
Reserve space for file.
|
Boolean |
sampling()
Get sampling flag state.
|
boolean |
sampling(Boolean val)
Set sampling flag.
|
protected void |
start0()
Start manager implementation.
|
IgfsEntryInfo |
synchronizeFileDual(IgfsSecondaryFileSystem fs,
IgfsPath path)
Synchronizes with secondary file system.
|
void |
unlock(IgfsEntryInfo info,
long modificationTime)
Remove explicit lock on file held by the current thread.
|
IgfsEntryInfo |
updateDual(IgfsSecondaryFileSystem fs,
IgfsPath path,
Map<String,String> props)
Update path in DUAL mode.
|
IgfsEntryInfo |
updateInfo(IgniteUuid fileId,
javax.cache.processor.EntryProcessor<IgniteUuid,IgfsEntryInfo,IgfsEntryInfo> proc)
Update file info in cache.
|
IgfsEntryInfo |
updateProperties(IgniteUuid fileId,
Map<String,String> props)
Update file info (file properties) in cache.
|
void |
updateTimes(IgniteUuid parentId,
IgniteUuid fileId,
String fileName,
long accessTime,
long modificationTime)
Updates last access and last modification times.
|
kernalStartInfo, kernalStopInfo, onKernalStart, onKernalStop, start, startInfo, stop, stop0, stopInfopublic IgfsMetaManager(boolean relaxed)
relaxed - Relaxed mode flag.protected void start0()
throws IgniteCheckedException
start0 in class IgfsManagerIgniteCheckedExceptionprotected void onKernalStart0()
throws IgniteCheckedException
onKernalStart0 in class IgfsManagerIgniteCheckedException - If failed.protected void onKernalStop0(boolean cancel)
onKernalStop0 in class IgfsManager@Nullable public IgniteUuid fileId(IgfsPath path) throws IgniteCheckedException
path - Path.null if such file doesn't exist.IgniteCheckedException - If failed.@Nullable public IgniteUuid fileId(IgniteUuid parentId, String fileName) throws IgniteCheckedException
parentId - Parent directory ID to get child ID for.fileName - File name in parent listing to get file ID for.IgniteCheckedException - If failed.public List<IgniteUuid> fileIds(IgfsPath path) throws IgniteCheckedException
null if such files don't exist.path - Path.IgniteCheckedException - If failed.public IgfsPathIds pathIds(IgfsPath path) throws IgniteCheckedException
null if such files don't exist.path - Path.IgniteCheckedException - If failed.public boolean exists(IgniteUuid fileId) throws IgniteCheckedException
fileId - File id.True in case such entry exists.IgniteCheckedException - IF failed.@Nullable public IgfsEntryInfo info(@Nullable IgniteUuid fileId) throws IgniteCheckedException
fileId - File ID to get details for.IgniteCheckedException - If failed.public Map<IgniteUuid,IgfsEntryInfo> infos(Collection<IgniteUuid> fileIds) throws IgniteCheckedException
fileIds - file IDs to get details for.IgniteCheckedException - If failed.@Nullable public IgfsEntryInfo lock(IgniteUuid fileId, boolean del) throws IgniteCheckedException
fileId - File ID to lock.del - If file is being locked for delete.null if file cannot be locked or doesn't exist.IgniteCheckedException - If the file with such id does not exist, or on another failure.public void unlock(IgfsEntryInfo info, long modificationTime) throws IgniteCheckedException
info - File info to unlock.modificationTime - Modification time to write to file info.IgniteCheckedException - If failed.public Map<String,IgfsListingEntry> directoryListing(IgniteUuid fileId) throws IgniteCheckedException
fileId - File to list child files for.IgniteCheckedException - If failed.public IgfsEntryInfo fileForFragmentizer(Collection<IgniteUuid> exclude) throws IgniteCheckedException
exclude - File IDs to exclude from result.IgniteCheckedException - If failed to get file for fragmentizer.public void move(IgfsPath srcPath, IgfsPath dstPath) throws IgniteCheckedException
srcPath - Source path.dstPath - Destination path.IgniteCheckedException - In case of exception.public Collection<IgniteUuid> pendingDeletes() throws IgniteCheckedException
IgniteCheckedException - If operation failed.@Nullable public IgfsEntryInfo updateProperties(IgniteUuid fileId, Map<String,String> props) throws IgniteCheckedException
fileId - File ID to update information for.props - Properties to set for the file.null if such file ID not found.IgniteCheckedException - If operation failed.public IgfsEntryInfo reserveSpace(IgfsPath path, IgniteUuid fileId, long space, IgfsFileAffinityRange affRange) throws IgniteCheckedException
path - File path.fileId - File ID.space - Space.affRange - Affinity range.IgniteCheckedException@Nullable public IgfsEntryInfo updateInfo(IgniteUuid fileId, javax.cache.processor.EntryProcessor<IgniteUuid,IgfsEntryInfo,IgfsEntryInfo> proc) throws IgniteCheckedException
fileId - File ID to update information for.proc - Entry processor to invoke.null if such file ID not found.IgniteCheckedException - If failed.public boolean sampling(Boolean val) throws IgniteCheckedException
val - Sampling flag state or null to clear sampling state and mark it as "not set".True if sampling mode was actually changed by this call.IgniteCheckedException - If failed.public Boolean sampling() throws IgniteCheckedException
True in case sampling is enabled, false otherwise or null in case sampling
is not set.IgniteCheckedException - If failed.public IgfsSecondaryOutputStreamDescriptor createDual(IgfsSecondaryFileSystem fs, IgfsPath path, boolean simpleCreate, @Nullable Map<String,String> props, boolean overwrite, int bufSize, short replication, long blockSize, IgniteUuid affKey) throws IgniteCheckedException
fs - File system.path - Path.simpleCreate - "Simple create" flag.props - Properties..overwrite - Overwrite flag.bufSize - Buffer size.replication - Replication factor.blockSize - Block size.affKey - Affinity key.IgniteCheckedException - If file creation failed.public IgfsSecondaryInputStreamDescriptor openDual(IgfsSecondaryFileSystem fs, IgfsPath path, int bufSize) throws IgniteCheckedException
fs - Secondary file system.path - Path to open.bufSize - Buffer size.IgniteCheckedException - If input stream open has failed.@Nullable public IgfsEntryInfo synchronizeFileDual(IgfsSecondaryFileSystem fs, IgfsPath path) throws IgniteCheckedException
fs - File system.path - Path.null if file not found.IgniteCheckedException - If sync task failed.public boolean mkdirsDual(IgfsSecondaryFileSystem fs, IgfsPath path, Map<String,String> props) throws IgniteCheckedException
fs - Secondary file system.path - Path to create.props - Properties to be applied.True in case rename was successful.IgniteCheckedException - If directory creation failed.public boolean renameDual(IgfsSecondaryFileSystem fs, IgfsPath src, IgfsPath dest) throws IgniteCheckedException
fs - Secondary file system.src - Source path.dest - Destination path.IgniteCheckedException - If failed.public boolean deleteDual(IgfsSecondaryFileSystem fs, IgfsPath path, boolean recursive) throws IgniteCheckedException
fs - Secondary file system.path - Path to update.recursive - Recursive flag.IgniteCheckedException - If delete failed.public IgfsEntryInfo updateDual(IgfsSecondaryFileSystem fs, IgfsPath path, Map<String,String> props) throws IgniteCheckedException
fs - Secondary file system.path - Path to update.props - Properties to be applied.IgniteCheckedException - If update failed.public void updateTimes(IgniteUuid parentId, IgniteUuid fileId, String fileName, long accessTime, long modificationTime) throws IgniteCheckedException
parentId - File parent ID.fileId - File ID to update.fileName - File name to update. Must match file ID.accessTime - Access time to set. If -1, will not be updated.modificationTime - Modification time to set. If -1, will not be updated.IgniteCheckedException - If update failed.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.6.0 Release Date : May 18 2016