public class LockFileEventImpl extends FileEventImpl implements LockFileEvent
| Modifier and Type | Field and Description |
|---|---|
protected java.nio.file.attribute.BasicFileAttributes |
lockAttributes
The file attributes of the path of the lock file.
|
protected java.io.File |
lockFile
Deprecated.
|
protected java.net.URL |
lockFileURL
Deprecated.
|
protected java.nio.file.Path |
lockPath
The path of the lock file for which the event has been created.
|
attributes, file, path, urlcreationTime, eventType, id, ID_COUNT, managerURI, sourceID, sourceType| Constructor and Description |
|---|
LockFileEventImpl(java.net.URI[] managerURI,
java.lang.String eventType,
java.lang.String sourceType,
java.lang.String sourceID,
java.io.File file,
java.io.File lockFile)
Deprecated.
|
LockFileEventImpl(java.net.URI[] managerURI,
java.lang.String eventType,
java.lang.String sourceType,
java.lang.String sourceID,
java.nio.file.Path path,
java.nio.file.Path lockPath)
Creates a new event for the designated file.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.File |
getLockFile()
Gets the file that caused this event.
|
java.net.URL |
getLockFileAsURL()
Gets the URL of the file that caused this event.
|
java.nio.file.attribute.BasicFileAttributes |
getLockFileAttributes()
Gets the basic file attributes of the lock file of this event.
|
java.nio.file.Path |
getLockPath()
Gets the path of the lock file of this event.
|
getAsURI, getAsURL, getFile, getFileAttributes, getLastModified, getName, getPathgetCreationTime, getEventManager, getEventType, getID, getSourceID, getSourceTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAsURI, getAsURL, getFile, getFileAttributes, getLastModified, getName, getPathgetCreationTime, getEventManager, getEventType, getID, getSourceID, getSourceTypeprotected final java.nio.file.Path lockPath
protected final java.nio.file.attribute.BasicFileAttributes lockAttributes
@Deprecated protected final java.io.File lockFile
@Deprecated protected final java.net.URL lockFileURL
@Deprecated
public LockFileEventImpl(java.net.URI[] managerURI,
java.lang.String eventType,
java.lang.String sourceType,
java.lang.String sourceID,
java.io.File file,
java.io.File lockFile)
throws java.io.IOException
LockFileEventImpl(URI[], String, String, String, Path, Path) instead.managerURI - The URIs of the service (event manager) creating the
event.eventType - The type of the event.sourceType - The type of the source of this event.sourceID - The ID of the source of this event.file - The file of the event.lockFile - The lock file of the event.java.io.IOException - Retrieving the URL of the file may throw an
IOException.public LockFileEventImpl(java.net.URI[] managerURI,
java.lang.String eventType,
java.lang.String sourceType,
java.lang.String sourceID,
java.nio.file.Path path,
java.nio.file.Path lockPath)
throws java.io.IOException
managerURI - The URIs of the service (event manager) creating the event.eventType - The type of the event.sourceType - The type of the source of this event.sourceID - The ID of the source of this event.path - The path for which the event has been created.lockPath - The path of the lock file for which the event has been created.java.io.IOException - If retrieving the basic file attributes of the designated path fails, an
IOException will be thrown.public java.nio.file.Path getLockPath()
LockFileEventgetLockPath in interface LockFileEventpublic java.nio.file.attribute.BasicFileAttributes getLockFileAttributes()
LockFileEventgetLockFileAttributes in interface LockFileEventpublic java.net.URL getLockFileAsURL()
LockFileEventgetLockFileAsURL in interface LockFileEventpublic java.io.File getLockFile()
LockFileEventgetLockFile in interface LockFileEvent