Class BackupReport
java.lang.Object
com.aoindustries.aoserv.client.AoservObject<Integer,BackupReport>
com.aoindustries.aoserv.client.backup.BackupReport
- All Implemented Interfaces:
Streamable
,StreamReadable
,StreamWritable
,Row
,AoservReadable
,AoservStreamable
,AoservWritable
,SingleTableObject<Integer,
BackupReport>
public final class BackupReport
extends AoservObject<Integer,BackupReport>
implements SingleTableObject<Integer,BackupReport>
A
BackupReport
is generated once per day per package and per server. This information
is averaged through a month and used for account billing. The reports are processed at or near 2:00am
and basically represent the report for the previous day.- Author:
- AO Industries, Inc.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The hour of the day (in master server time zone) that backup reports will be created.static final int
The minute (in master server time zone) that backup reports will be created.static final int
The maximum number of days that reports will be maintained.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 TypeMethodDescriptionboolean
protected Object
getColumnImpl
(int i) getDate()
long
int
getHost()
int
getKey()
int
int
getPkey()
getTable()
Gets theAoservTable
that contains thisAoservObject
.int
hashCode()
void
Initializes this object from the raw database contents.void
read
(StreamableInput in, AoservProtocol.Version protocolVersion) void
setTable
(AoservTable<Integer, BackupReport> table) void
write
(StreamableOutput out, AoservProtocol.Version protocolVersion) 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, toStringImpl, write
-
Field Details
-
BACKUP_REPORT_HOUR
public static final int BACKUP_REPORT_HOURThe hour of the day (in master server time zone) that backup reports will be created.- See Also:
-
BACKUP_REPORT_MINUTE
public static final int BACKUP_REPORT_MINUTEThe minute (in master server time zone) that backup reports will be created.- See Also:
-
MAX_REPORT_AGE
public static final int MAX_REPORT_AGEThe maximum number of days that reports will be maintained. This is roughly 5 years.- See Also:
-
-
Constructor Details
-
BackupReport
Deprecated.Only required for implementation, do not use directly.- See Also:
-
-
Method Details
-
equals
Description copied from class:AoservObject
Implementation Note:
This default implementation considers the object equal when it is the same class (viaObject.getClass()
and has equal keys (viaAoservObject.getKey()
).- Overrides:
equals
in classAoservObject<Integer,
BackupReport>
-
getColumnImpl
- Specified by:
getColumnImpl
in classAoservObject<Integer,
BackupReport>
-
getPkey
public int getPkey() -
getHost_id
public int getHost_id() -
getHost
- Throws:
SQLException
IOException
-
getPackage_id
public int getPackage_id() -
getPackage
- Throws:
IOException
SQLException
-
getDate
-
getFileCount
public int getFileCount() -
getDiskSize
public long getDiskSize() -
getKey
- Specified by:
getKey
in classAoservObject<Integer,
BackupReport>
-
getTable
Description copied from interface:SingleTableObject
Gets theAoservTable
that contains thisAoservObject
.- Specified by:
getTable
in interfaceSingleTableObject<Integer,
BackupReport> - Returns:
- the
AoservTable
.
-
getTableId
- Specified by:
getTableId
in classAoservObject<Integer,
BackupReport>
-
hashCode
public int hashCode()Description copied from class:AoservObject
Implementation Note:
This default implementation callsAoservObject.hashCode()
on the key (fromAoservObject.getKey()
).- Overrides:
hashCode
in classAoservObject<Integer,
BackupReport>
-
init
Description copied from class:AoservObject
Initializes this object from the raw database contents.- Specified by:
init
in classAoservObject<Integer,
BackupReport> - Parameters:
result
- theResultSet
containing the row to copy into this object- Throws:
SQLException
-
read
- Specified by:
read
in interfaceAoservReadable
- Specified by:
read
in interfaceAoservStreamable
- Specified by:
read
in classAoservObject<Integer,
BackupReport> - Throws:
IOException
-
setTable
- Specified by:
setTable
in interfaceSingleTableObject<Integer,
BackupReport>
-
write
- Specified by:
write
in interfaceAoservStreamable
- Specified by:
write
in interfaceAoservWritable
- Specified by:
write
in classAoservObject<Integer,
BackupReport> - Throws:
IOException
-