Java Code Examples for org.apache.hadoop.hdfs.inotify.Event#CreateEvent

The following examples show how to use org.apache.hadoop.hdfs.inotify.Event#CreateEvent . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: EventTestUtils.java    From localization_nifi with Apache License 2.0 5 votes vote down vote up
public static Event.CreateEvent createCreateEvent() {
    return new Event.CreateEvent.Builder()
            .ctime(new Date().getTime())
            .groupName("group_name")
            .iNodeType(Event.CreateEvent.INodeType.DIRECTORY)
            .overwrite(false)
            .ownerName("ownerName")
            .path("/some/path/create")
            .perms(new FsPermission(FsAction.ALL, FsAction.NONE, FsAction.NONE))
            .replication(1)
            .symlinkTarget("/some/symlink/target")
            .build();
}
 
Example 2
Source File: EventTestUtils.java    From nifi with Apache License 2.0 5 votes vote down vote up
public static Event.CreateEvent createCreateEvent() {
    return new Event.CreateEvent.Builder()
            .ctime(new Date().getTime())
            .groupName("group_name")
            .iNodeType(Event.CreateEvent.INodeType.DIRECTORY)
            .overwrite(false)
            .ownerName("ownerName")
            .path("/some/path/create")
            .perms(new FsPermission(FsAction.ALL, FsAction.NONE, FsAction.NONE))
            .replication(1)
            .symlinkTarget("/some/symlink/target")
            .build();
}