public abstract class FileSystemEvent extends Event
EventsListener| Modifier and Type | Class and Description |
|---|---|
static class |
FileSystemEvent.FileDownloadEvent
Specific implementation of the File system event indicating a file download request.
|
static class |
FileSystemEvent.FileListEvent
Specific implementation of the File system event indicating a file list request.
|
static class |
FileSystemEvent.FileRemoveEvent
Specific implementation of the File system event indicating a file remove request.
|
static class |
FileSystemEvent.FileSystemErrorEvent
Specific implementation of the File system event indicating a file remove request.
|
static class |
FileSystemEvent.FileUploadEvent
Specific implementation of the File system event indicating a file upload request.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
ERROR_FATAL
Fatal error while performing a file system operation.
|
static int |
ERROR_INSUFFICENT_STORAGE
Insufficient storage to perform the file system operation.
|
static int |
ERROR_INVALID_PARAMETER
Invalid parameter in the file system request.
|
static int |
ERROR_OUT_OF_MEMORY
Out of memory error while performing the file system operation.
|
static int |
ERROR_PATH_NOT_FOUND
Path not found for the file system operation.
|
static int |
ERROR_PERMISSION_DENIED
Permission denied while performing the file system operation.
|
static int |
ERROR_REQUEST_FORMAT_ERROR
File system request error.
|
static int |
FILE_DOWNLOAD
File download event.
|
static int |
FILE_ERROR
File system operation error event.
|
static int |
FILE_LIST
File list event.
|
static int |
FILE_REMOVE
File remove event.
|
static int |
FILE_UPLOAD
File upload event.
|
SEVERITY_DEBUG, SEVERITY_ERROR, SEVERITY_INFO, TAG_DEBUG, TAG_ERROR, TAG_INFO, TYPE_CONNECTION, TYPE_DATA_POINT, TYPE_DATA_PUSH, TYPE_DEVICE_REQUEST, TYPE_FILE_SYSTEM, TYPE_FIRMWARE, TYPE_RCI| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getEventTypeTag()
Retrieves the event type tag to be logged.
|
int |
getFileSystemEventType()
Retrieves the file system event action.
|
java.lang.String |
getPath()
Retrieves the file system event path.
|
static FileSystemEvent |
newFileDownloadEvent(java.lang.String path)
Creates a new file download file system event for the given path.
|
static FileSystemEvent |
newFileListEvent(java.lang.String path)
Creates a new file list file system event for the given path.
|
static FileSystemEvent |
newFileSystemErrorEvent(int errorType)
Creates a new file system error event with the given parameters.
|
static FileSystemEvent |
newFileSystemErrorEvent(int action,
java.lang.String path,
int errorType)
Creates a new file system error event with the given parameters.
|
static FileSystemEvent |
newFileSystemErrorEvent(int action,
java.lang.String path,
int errorType,
java.lang.String hint)
Creates a new file system error event with the given parameters.
|
static FileSystemEvent |
newFileUploadEvent(java.lang.String path)
Creates a new file upload file system event for the given path.
|
static FileSystemEvent |
newRemoveFileEvent(java.lang.String path)
Creates a new file remove file system event for the given path.
|
java.lang.String |
toString() |
getEventLogString, getEventSeverity, getEventType, setSeveritypublic static final int ERROR_FATAL
public static final int ERROR_INSUFFICENT_STORAGE
public static final int ERROR_INVALID_PARAMETER
public static final int ERROR_OUT_OF_MEMORY
public static final int ERROR_PATH_NOT_FOUND
public static final int ERROR_PERMISSION_DENIED
public static final int ERROR_REQUEST_FORMAT_ERROR
public static final int FILE_DOWNLOAD
public static final int FILE_ERROR
public static final int FILE_LIST
public static final int FILE_REMOVE
public static final int FILE_UPLOAD
public java.lang.String getEventTypeTag()
EventgetEventTypeTag in class Eventpublic int getFileSystemEventType()
FILE_DOWNLOAD,
FILE_ERROR,
FILE_LIST,
FILE_REMOVE,
FILE_UPLOADpublic java.lang.String getPath()
public static FileSystemEvent newFileDownloadEvent(java.lang.String path)
path - Path for which the file download event is fired.public static FileSystemEvent newFileListEvent(java.lang.String path)
path - Path for which the file list event is fired.public static FileSystemEvent newFileSystemErrorEvent(int errorType)
errorType - Type of error.public static FileSystemEvent newFileSystemErrorEvent(int action, java.lang.String path, int errorType)
action - Action that was being performed when error occurred.path - Path of the file for which action was being performed.errorType - Type of error.public static FileSystemEvent newFileSystemErrorEvent(int action, java.lang.String path, int errorType, java.lang.String hint)
action - Action that was being performed when error occurred.path - Path of the file for which action was being performed.errorType - Type of error.hint - The error hint.public static FileSystemEvent newFileUploadEvent(java.lang.String path)
path - Path for which the file upload event is fired.public static FileSystemEvent newRemoveFileEvent(java.lang.String path)
path - Path for which the file remove event is fired.© Copyright 2014 Etherios, Inc. All rights reserved. Etherios, Inc. is a Division of Digi International Inc.