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>
ABackupReportis 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
Fields Modifier and Type Field Description static intBACKUP_REPORT_HOURThe hour of the day (in master server time zone) that backup reports will be created.static intBACKUP_REPORT_MINUTEThe minute (in master server time zone) that backup reports will be created.static intMAX_REPORT_AGEThe 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
Constructors Constructor Description BackupReport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object O)protected ObjectgetColumnImpl(int i)DategetDate()longgetDiskSize()intgetFileCount()HostgetHost()intgetHost_id()IntegergetKey()PackagegetPackage()intgetPackage_id()intgetPkey()AOServTable<Integer,BackupReport>getTable()Gets theAOServTablethat contains thisAOServObject.Table.TableIDgetTableID()inthashCode()voidinit(ResultSet result)Initializes this object from the raw database contents.voidread(StreamableInput in, AoservProtocol.Version protocolVersion)voidsetTable(AOServTable<Integer,BackupReport> table)voidwrite(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 Detail
-
BACKUP_REPORT_HOUR
public static final int BACKUP_REPORT_HOUR
The hour of the day (in master server time zone) that backup reports will be created.- See Also:
- Constant Field Values
-
BACKUP_REPORT_MINUTE
public static final int BACKUP_REPORT_MINUTE
The minute (in master server time zone) that backup reports will be created.- See Also:
- Constant Field Values
-
MAX_REPORT_AGE
public static final int MAX_REPORT_AGE
The maximum number of days that reports will be maintained. This is roughly 5 years.- See Also:
- Constant Field Values
-
-
Method Detail
-
equals
public boolean equals(Object O)
Description copied from class:AOServObjectImplementation Note:
This default implementation considers the object equal when it is the same class (viaObject.getClass()and has equal keys (viaAOServObject.getKey()).- Overrides:
equalsin classAOServObject<Integer,BackupReport>
-
getColumnImpl
protected Object getColumnImpl(int i)
- Specified by:
getColumnImplin classAOServObject<Integer,BackupReport>
-
getPkey
public int getPkey()
-
getHost_id
public int getHost_id()
-
getHost
public Host getHost() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getPackage_id
public int getPackage_id()
-
getPackage
public Package getPackage() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getDate
public Date getDate()
-
getFileCount
public int getFileCount()
-
getDiskSize
public long getDiskSize()
-
getKey
public Integer getKey()
- Specified by:
getKeyin classAOServObject<Integer,BackupReport>
-
getTable
public AOServTable<Integer,BackupReport> getTable()
Description copied from interface:SingleTableObjectGets theAOServTablethat contains thisAOServObject.- Specified by:
getTablein interfaceSingleTableObject<Integer,BackupReport>- Returns:
- the
AOServTable.
-
getTableID
public Table.TableID getTableID()
- Specified by:
getTableIDin classAOServObject<Integer,BackupReport>
-
hashCode
public int hashCode()
Description copied from class:AOServObjectImplementation Note:
This default implementation callsAOServObject.hashCode()on the key (fromAOServObject.getKey()).- Overrides:
hashCodein classAOServObject<Integer,BackupReport>
-
init
public void init(ResultSet result) throws SQLException
Description copied from class:AOServObjectInitializes this object from the raw database contents.- Specified by:
initin classAOServObject<Integer,BackupReport>- Parameters:
result- theResultSetcontaining the row to copy into this object- Throws:
SQLException
-
read
public void read(StreamableInput in, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
readin interfaceAOServReadable- Specified by:
readin interfaceAOServStreamable- Specified by:
readin classAOServObject<Integer,BackupReport>- Throws:
IOException
-
setTable
public void setTable(AOServTable<Integer,BackupReport> table)
- Specified by:
setTablein interfaceSingleTableObject<Integer,BackupReport>
-
write
public void write(StreamableOutput out, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
writein interfaceAOServStreamable- Specified by:
writein interfaceAOServWritable- Specified by:
writein classAOServObject<Integer,BackupReport>- Throws:
IOException
-
-