Package com.aoindustries.aoserv.backup
Class WindowsEnvironment
java.lang.Object
com.aoindustries.aoserv.backup.FileEnvironment
com.aoindustries.aoserv.backup.WindowsEnvironment
- All Implemented Interfaces:
BackupEnvironment
Windows environment.
- Author:
- AO Industries, Inc.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Map<String,
FilesystemIteratorRule> Gets the default set of filesystem prefix rules for this environment.protected Map<String,
FilesystemIteratorRule> Gets the default set of filesystem rules for this environment.long
getModifyTime
(FileReplication ffr, String filename) Because some of the backup servers use ext2/ext3 filesystems, which have only one-second time accuracy, timestamps are rounded down to the nearest second.Methods inherited from class com.aoindustries.aoserv.backup.FileEnvironment
cleanup, getDefaultSourceIpAddress, getDeviceIdentifier, getDirectoryList, getFailoverBatchSize, getFastRandom, getFile, getFilenameIterator, getGid, getInputStream, getLength, getNameOfFile, getReplicatedMysqlMinorVersions, getReplicatedMysqlServers, getRequiredFilenames, getServerPath, getStatMode, getUid, init, postBackup, preBackup, readLink
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.aoindustries.aoserv.backup.BackupEnvironment
getConnector, getLogger, getThisHost
-
Constructor Details
-
WindowsEnvironment
public WindowsEnvironment()
-
-
Method Details
-
getFilesystemIteratorRules
protected Map<String,FilesystemIteratorRule> getFilesystemIteratorRules(FileReplication ffr) throws IOException, SQLException Description copied from class:FileEnvironment
Gets the default set of filesystem rules for this environment. This should not include file backup settings, they will override the values returned here. The returned map may be modified, to maintain internal consistency, return a copy of the map if needed.- Specified by:
getFilesystemIteratorRules
in classFileEnvironment
- Throws:
IOException
SQLException
-
getFilesystemIteratorPrefixRules
protected Map<String,FilesystemIteratorRule> getFilesystemIteratorPrefixRules(FileReplication ffr) throws IOException, SQLException Description copied from class:FileEnvironment
Gets the default set of filesystem prefix rules for this environment.- Specified by:
getFilesystemIteratorPrefixRules
in classFileEnvironment
- Throws:
IOException
SQLException
-
getModifyTime
Because some of the backup servers use ext2/ext3 filesystems, which have only one-second time accuracy, timestamps are rounded down to the nearest second. (Truncates the milliseconds component) When all servers support more granular file timestamps, or if we store the more accurate timestamps in extended attributes, then we can remove this for potentially greater accuracy in detecting file changes.- Specified by:
getModifyTime
in interfaceBackupEnvironment
- Overrides:
getModifyTime
in classFileEnvironment
- Throws:
IOException
-