jcifs.FileNotifyInformation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jcifs-ng Show documentation
Show all versions of jcifs-ng Show documentation
A pure-java CIFS/SMB client library
/*
* © 2017 AgNO3 Gmbh & Co. KG
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
package jcifs;
/**
* File notification information
*
*
* @author mbechler
*
*/
public interface FileNotifyInformation {
// filter flags
/**
* Any file name change in the watched directory or subtree causes a change notification wait operation to return.
* Changes include renaming, creating, or deleting a file.
*/
public static final int FILE_NOTIFY_CHANGE_FILE_NAME = 0x00000001;
/**
* Any directory-name change in the watched directory or subtree causes a change notification wait operation to
* return. Changes include creating or deleting a directory.
*/
public static final int FILE_NOTIFY_CHANGE_DIR_NAME = 0x00000002;
/**
* Both FILE_NOTIFY_CHANGE_FILE_NAME and FILE_NOTIFY_CHANGE_DIR_NAME
*/
public static final int FILE_NOTIFY_CHANGE_NAME = 0x00000003;
/**
* Any attribute change in the watched directory or subtree causes a change notification wait operation to return.
*/
public static final int FILE_NOTIFY_CHANGE_ATTRIBUTES = 0x00000004;
/**
* Any file-size change in the watched directory or subtree causes a change notification wait operation to return.
* The operating system detects a change in file size only when the file is written to the disk. For operating
* systems that use extensive caching, detection occurs only when the cache is sufficiently flushed.s
*/
public static final int FILE_NOTIFY_CHANGE_SIZE = 0x00000008;
/**
* Any change to the last write-time of files in the watched directory or subtree causes a change notification wait
* operation to return. The operating system detects a change to the last write-time only when the file is written
* to the disk. For operating systems that use extensive caching, detection occurs only when the cache is
* sufficiently flushed.
*/
public static final int FILE_NOTIFY_CHANGE_LAST_WRITE = 0x00000010;
/**
* Any change to the last access time of files in the watched directory or subtree causes a change notification wait
* operation to return.
*/
public static final int FILE_NOTIFY_CHANGE_LAST_ACCESS = 0x00000020;
/**
* Any change to the creation time of files in the watched directory or subtree causes a change notification wait
* operation to return.
*/
public static final int FILE_NOTIFY_CHANGE_CREATION = 0x00000040;
/**
*
*/
public static final int FILE_NOTIFY_CHANGE_EA = 0x00000080;
/**
* Any security-descriptor change in the watched directory or subtree causes a change notification wait operation to
* return.
*/
public static final int FILE_NOTIFY_CHANGE_SECURITY = 0x00000100;
/**
*
*/
public static final int FILE_NOTIFY_CHANGE_STREAM_NAME = 0x00000200;
/**
*
*/
public static final int FILE_NOTIFY_CHANGE_STREAM_SIZE = 0x00000400;
/**
*
*/
public static final int FILE_NOTIFY_CHANGE_STREAM_WRITE = 0x00000800;
// actions returned
/**
* File has been added
*/
public static final int FILE_ACTION_ADDED = 0x00000001;
/**
* File has been removed
*/
public static final int FILE_ACTION_REMOVED = 0x00000002;
/**
* File has been modifed
*/
public static final int FILE_ACTION_MODIFIED = 0x00000003;
/**
*
*/
public static final int FILE_ACTION_RENAMED_OLD_NAME = 0x00000004;
/**
*
*/
public static final int FILE_ACTION_RENAMED_NEW_NAME = 0x00000005;
/**
* File stream has been added
*/
public static final int FILE_ACTION_ADDED_STREAM = 0x00000006;
/**
* File stream has been removed
*/
public static final int FILE_ACTION_REMOVED_STREAM = 0x00000007;
/**
* File stream has modified
*/
public static final int FILE_ACTION_MODIFIED_STREAM = 0x00000008;
/**
*
*/
public static final int FILE_ACTION_REMOVED_BY_DELETE = 0x00000009;
/**
* @return the action triggering this entry (FILE_ACTION_*)
*/
int getAction ();
/**
* @return the file name affected by the action
*/
String getFileName ();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy