Package com.aoindustries.aoserv.backup
Class PosixFileEnvironment
java.lang.Object
com.aoindustries.aoserv.backup.FileEnvironment
com.aoindustries.aoserv.backup.PosixFileEnvironment
- All Implemented Interfaces:
BackupEnvironment
- Direct Known Subclasses:
LinuxEnvironment
A
PosixEnvironment
controls the backup system on
a standalone Posix Host
.- Author:
- AO Industries, Inc.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanup
(FileReplication ffr) Called in a finally block after any backup-pass completes, no data will be obtained from the environment after this is called.long
getDeviceIdentifier
(FileReplication ffr, String filename) Gets the device file major and minor.int
getGid
(FileReplication ffr, String filename) Gets the group ID.long
getLength
(FileReplication ffr, String filename) Gets the length of the file.long
getModifyTime
(FileReplication ffr, String filename) Gets the modified time.protected PosixFile
getPosixFile
(FileReplication ffr, String filename) protected Stat
getStat
(FileReplication ffr, String filename) long
getStatMode
(FileReplication ffr, String filename) Gets the stat mode (or a generated and equivalent one) for a file.int
getUid
(FileReplication ffr, String filename) Gets the user ID.readLink
(FileReplication ffr, String filename) Reads a symbolic link.Methods inherited from class com.aoindustries.aoserv.backup.FileEnvironment
getDefaultSourceIpAddress, getDirectoryList, getFailoverBatchSize, getFastRandom, getFile, getFilenameIterator, getFilesystemIteratorPrefixRules, getFilesystemIteratorRules, getInputStream, getNameOfFile, getReplicatedMysqlMinorVersions, getReplicatedMysqlServers, getRequiredFilenames, getServerPath, init, postBackup, preBackup
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
-
PosixFileEnvironment
public PosixFileEnvironment()
-
-
Method Details
-
getPosixFile
- Throws:
IOException
-
getStat
- Throws:
IOException
-
getStatMode
Description copied from interface:BackupEnvironment
Gets the stat mode (or a generated and equivalent one) for a file.- Specified by:
getStatMode
in interfaceBackupEnvironment
- Overrides:
getStatMode
in classFileEnvironment
- Throws:
IOException
-
getUid
Description copied from interface:BackupEnvironment
Gets the user ID.- Specified by:
getUid
in interfaceBackupEnvironment
- Overrides:
getUid
in classFileEnvironment
- Throws:
IOException
-
getGid
Description copied from interface:BackupEnvironment
Gets the group ID.- Specified by:
getGid
in interfaceBackupEnvironment
- Overrides:
getGid
in classFileEnvironment
- Throws:
IOException
-
getModifyTime
Description copied from interface:BackupEnvironment
Gets the modified time.- Specified by:
getModifyTime
in interfaceBackupEnvironment
- Overrides:
getModifyTime
in classFileEnvironment
- Throws:
IOException
-
getLength
Description copied from interface:BackupEnvironment
Gets the length of the file.- Specified by:
getLength
in interfaceBackupEnvironment
- Overrides:
getLength
in classFileEnvironment
- Throws:
IOException
-
readLink
Description copied from interface:BackupEnvironment
Reads a symbolic link.- Specified by:
readLink
in interfaceBackupEnvironment
- Overrides:
readLink
in classFileEnvironment
- Throws:
IOException
-
getDeviceIdentifier
Description copied from interface:BackupEnvironment
Gets the device file major and minor.- Specified by:
getDeviceIdentifier
in interfaceBackupEnvironment
- Overrides:
getDeviceIdentifier
in classFileEnvironment
- Throws:
IOException
-
cleanup
Description copied from interface:BackupEnvironment
Called in a finally block after any backup-pass completes, no data will be obtained from the environment after this is called. Implementations should call super.cleanup in a finally block.- Specified by:
cleanup
in interfaceBackupEnvironment
- Overrides:
cleanup
in classFileEnvironment
- Throws:
IOException
SQLException
- See Also:
-