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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup(FileReplication ffr) Called in a finally block after any backup-pass completes, no data will be obtained from the environment after this is called.longgetDeviceIdentifier(FileReplication ffr, String filename) Gets the device file major and minor.intgetGid(FileReplication ffr, String filename) Gets the group ID.longgetLength(FileReplication ffr, String filename) Gets the length of the file.longgetModifyTime(FileReplication ffr, String filename) Gets the modified time.protected PosixFilegetPosixFile(FileReplication ffr, String filename) Gets the POSIX file for the given path.protected StatgetStat(FileReplication ffr, String filename) Stats the given path.longgetStatMode(FileReplication ffr, String filename) Gets the stat mode (or a generated and equivalent one) for a file.intgetUid(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, preBackupMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.aoindustries.aoserv.backup.BackupEnvironment
getConnector, getLogger, getThisHost
-
Constructor Details
-
PosixFileEnvironment
public PosixFileEnvironment()
-
-
Method Details
-
getPosixFile
Gets the POSIX file for the given path.- Throws:
IOException
-
getStat
Stats the given path.- Throws:
IOException
-
getStatMode
Description copied from interface:BackupEnvironmentGets the stat mode (or a generated and equivalent one) for a file.- Specified by:
getStatModein interfaceBackupEnvironment- Overrides:
getStatModein classFileEnvironment- Throws:
IOException
-
getUid
Description copied from interface:BackupEnvironmentGets the user ID.- Specified by:
getUidin interfaceBackupEnvironment- Overrides:
getUidin classFileEnvironment- Throws:
IOException
-
getGid
Description copied from interface:BackupEnvironmentGets the group ID.- Specified by:
getGidin interfaceBackupEnvironment- Overrides:
getGidin classFileEnvironment- Throws:
IOException
-
getModifyTime
Description copied from interface:BackupEnvironmentGets the modified time.- Specified by:
getModifyTimein interfaceBackupEnvironment- Overrides:
getModifyTimein classFileEnvironment- Throws:
IOException
-
getLength
Description copied from interface:BackupEnvironmentGets the length of the file.- Specified by:
getLengthin interfaceBackupEnvironment- Overrides:
getLengthin classFileEnvironment- Throws:
IOException
-
readLink
Description copied from interface:BackupEnvironmentReads a symbolic link.- Specified by:
readLinkin interfaceBackupEnvironment- Overrides:
readLinkin classFileEnvironment- Throws:
IOException
-
getDeviceIdentifier
Description copied from interface:BackupEnvironmentGets the device file major and minor.- Specified by:
getDeviceIdentifierin interfaceBackupEnvironment- Overrides:
getDeviceIdentifierin classFileEnvironment- Throws:
IOException
-
cleanup
Description copied from interface:BackupEnvironmentCalled 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:
cleanupin interfaceBackupEnvironment- Overrides:
cleanupin classFileEnvironment- Throws:
IOExceptionSQLException- See Also:
-
