| java.lang.Object com.caucho.vfs.Depend
Constructor Summary | |
public | Depend(Path source, long lastModified, long length) Create a new dependency with an already known modified time and length. | public | Depend(Path source) Create a new dependency. | public | Depend(Path source, long digest) Create a new dependency with a given digest. | public | Depend(Path source, long digest, boolean requireSource) Create a new dependency with a given digest. |
Method Summary | |
public boolean | equals(Object obj) Returns true if the test Dependency has the same source path as
this dependency. | public long | getDigest() Returns the digest. | public String | getJavaCreateString() Returns the string to recreate the Dependency. | public long | getLastModified() Returns the current last-modified time of the file. | public long | getLength() Returns the current length time of the file. | public Path | getPath() Returns the underlying source path. | public boolean | getRequireSource() If true, deleting the source counts as a change. | public boolean | isModified() If the source modified date changes at all, treat it as a modification. | public boolean | logModified(Logger log) | public void | setRequireSource(boolean requireSource) If true, deleting the source counts as a change. | public String | toString() Returns a printable version of the dependency. |
_isDigestModified | boolean _isDigestModified(Code) | | |
_lastModified | long _lastModified(Code) | | |
_requireSource | boolean _requireSource(Code) | | |
Depend | public Depend(Path source, long lastModified, long length)(Code) | | Create a new dependency with an already known modified time and length.
Parameters: source - the source file |
Depend | public Depend(Path source)(Code) | | Create a new dependency.
Parameters: source - the source file |
Depend | public Depend(Path source, long digest)(Code) | | Create a new dependency with a given digest.
Parameters: source - the source file Parameters: digest - the CRC64 digest |
Depend | public Depend(Path source, long digest, boolean requireSource)(Code) | | Create a new dependency with a given digest.
Parameters: source - the source file Parameters: digest - the CRC64 digest |
equals | public boolean equals(Object obj)(Code) | | Returns true if the test Dependency has the same source path as
this dependency.
|
getDigest | public long getDigest()(Code) | | Returns the digest.
|
getJavaCreateString | public String getJavaCreateString()(Code) | | Returns the string to recreate the Dependency.
|
getLastModified | public long getLastModified()(Code) | | Returns the current last-modified time of the file.
|
getLength | public long getLength()(Code) | | Returns the current length time of the file.
|
getPath | public Path getPath()(Code) | | Returns the underlying source path.
|
getRequireSource | public boolean getRequireSource()(Code) | | If true, deleting the source counts as a change.
|
isModified | public boolean isModified()(Code) | | If the source modified date changes at all, treat it as a modification.
This protects against the case where multiple computers have
misaligned dates and a '<' comparison may fail.
|
logModified | public boolean logModified(Logger log)(Code) | | Log the reason for modification
|
setRequireSource | public void setRequireSource(boolean requireSource)(Code) | | If true, deleting the source counts as a change.
|
toString | public String toString()(Code) | | Returns a printable version of the dependency.
|
|
|