Class BackupPartition
java.lang.Object
com.aoindustries.aoserv.client.AoservObject<Integer,BackupPartition>
com.aoindustries.aoserv.client.CachedObject<Integer,BackupPartition>
com.aoindustries.aoserv.client.CachedObjectIntegerKey<BackupPartition>
com.aoindustries.aoserv.client.backup.BackupPartition
- All Implemented Interfaces:
Streamable
,StreamReadable
,StreamWritable
,Row
,AoservReadable
,AoservStreamable
,AoservWritable
,SingleTableObject<Integer,
BackupPartition>
BackupPartition
stores backup data.- Author:
- AO Industries, Inc.
-
Field Summary
Fields inherited from class com.aoindustries.aoserv.client.CachedObjectIntegerKey
pkey
Fields inherited from class com.aoindustries.aoserv.client.CachedObject
table
Fields inherited from class com.aoindustries.aoserv.client.AoservObject
USE_ARRAY_OF_DOMAIN, USE_SQL_DATA, USE_SQL_DATA_WRITE
-
Constructor Summary
ConstructorDescriptionDeprecated.Only required for implementation, do not use directly. -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
getColumnImpl
(int i) long
long
getPath()
void
Initializes this object from the raw database contents.boolean
boolean
When quota is enabled, all replications/backups into the partition must have quota_gid set.void
read
(StreamableInput in, AoservProtocol.Version protocolVersion) AoservObject.toString()
implementation that is allowed to throw exceptions.void
write
(StreamableOutput out, AoservProtocol.Version protocolVersion) Methods inherited from class com.aoindustries.aoserv.client.CachedObjectIntegerKey
equals, getKey, getPkey, hashCode
Methods inherited from class com.aoindustries.aoserv.client.CachedObject
getTable, setTable
Methods inherited from class com.aoindustries.aoserv.client.AoservObject
compare, compare, compare, compare, compareIgnoreCaseConsistentWithEquals, compareTo, compareTo, compareTo, getAccountingCode, getColumn, getColumns, getColumns, getDomainLabel, getDomainLabels, getDomainName, getDto, getEmail, getGecos, getGroupId, getHashedKey, getHashedPassword, getHostname, getInetAddress, getLinuxId, getLinuxUserName, getMacAddress, getMysqlDatabaseName, getMysqlServerName, getMysqlUserName, getPort, getPostgresDatabaseName, getPostgresServerName, getPostgresUserId, getTableSchema, getTimeMillis, getTimeMillis, getUnixPath, getUserId, read, toString, write
-
Constructor Details
-
BackupPartition
Deprecated.Only required for implementation, do not use directly.- See Also:
-
-
Method Details
-
getColumnImpl
- Specified by:
getColumnImpl
in classAoservObject<Integer,
BackupPartition>
-
getDiskTotalSize
- Throws:
IOException
SQLException
-
getDiskUsedSize
- Throws:
IOException
SQLException
-
getLinuxServer
- Throws:
SQLException
IOException
-
getPath
-
getTableId
- Specified by:
getTableId
in classAoservObject<Integer,
BackupPartition>
-
toStringImpl
Description copied from class:AoservObject
AoservObject.toString()
implementation that is allowed to throw exceptions.Implementation Note:
This default implementation callsAoservObject.toString()
on the key (fromAoservObject.getKey()
). When the key isnull
, uses the default implementation fromObject.toString()
.- Overrides:
toStringImpl
in classCachedObjectIntegerKey<BackupPartition>
- Throws:
SQLException
IOException
-
init
Description copied from class:AoservObject
Initializes this object from the raw database contents.- Specified by:
init
in classAoservObject<Integer,
BackupPartition> - Parameters:
result
- theResultSet
containing the row to copy into this object- Throws:
SQLException
-
isEnabled
public boolean isEnabled() -
isQuotaEnabled
public boolean isQuotaEnabled()When quota is enabled, all replications/backups into the partition must have quota_gid set. When quota is disabled, all replications/backups into the partition must have quota_gid not set. This generally means that ao_servers, which backup full Unix permissions, will be backed-up to non-quota partitions, while other backups (such as from Windows) will go to quota-enabled partitions for billing purposes.- Returns:
- the enabled flag
-
read
- Specified by:
read
in interfaceAoservReadable
- Specified by:
read
in interfaceAoservStreamable
- Specified by:
read
in classAoservObject<Integer,
BackupPartition> - Throws:
IOException
-
write
- Specified by:
write
in interfaceAoservStreamable
- Specified by:
write
in interfaceAoservWritable
- Specified by:
write
in classAoservObject<Integer,
BackupPartition> - Throws:
IOException
-