Class FileReplicationLog
- java.lang.Object
-
- com.aoindustries.aoserv.client.AOServObject<Integer,FileReplicationLog>
-
- com.aoindustries.aoserv.client.backup.FileReplicationLog
-
- All Implemented Interfaces:
Streamable,StreamReadable,StreamWritable,Row,AOServReadable,AOServStreamable,AOServWritable,SingleTableObject<Integer,FileReplicationLog>
public final class FileReplicationLog extends AOServObject<Integer,FileReplicationLog> implements SingleTableObject<Integer,FileReplicationLog>
The entire contents of servers are periodically replicated to another server. In the event of hardware failure, this other server may be booted to take place of the failed machine. All transfers to the failover server are logged.- Author:
- AO Industries, Inc.
-
-
Field Summary
-
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 FileReplicationLog()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object O)longgetBytes()protected ObjectgetColumnImpl(int i)UnmodifiableTimestampgetEndTime()FileReplicationgetFailoverFileReplication()IntegergetKey()intgetPkey()intgetScanned()UnmodifiableTimestampgetStartTime()AOServTable<Integer,FileReplicationLog>getTable()Gets theAOServTablethat contains thisAOServObject.Table.TableIDgetTableID()intgetUpdated()inthashCode()voidinit(ResultSet result)Initializes this object from the raw database contents.booleanisSuccessful()voidread(StreamableInput in, AoservProtocol.Version protocolVersion)voidsetTable(AOServTable<Integer,FileReplicationLog> 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
-
-
-
-
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,FileReplicationLog>
-
getBytes
public long getBytes()
-
getColumnImpl
protected Object getColumnImpl(int i)
- Specified by:
getColumnImplin classAOServObject<Integer,FileReplicationLog>
-
getStartTime
public UnmodifiableTimestamp getStartTime()
-
getEndTime
public UnmodifiableTimestamp getEndTime()
-
getPkey
public int getPkey()
-
getKey
public Integer getKey()
- Specified by:
getKeyin classAOServObject<Integer,FileReplicationLog>
-
getScanned
public int getScanned()
-
getFailoverFileReplication
public FileReplication getFailoverFileReplication() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getTable
public AOServTable<Integer,FileReplicationLog> getTable()
Description copied from interface:SingleTableObjectGets theAOServTablethat contains thisAOServObject.- Specified by:
getTablein interfaceSingleTableObject<Integer,FileReplicationLog>- Returns:
- the
AOServTable.
-
getTableID
public Table.TableID getTableID()
- Specified by:
getTableIDin classAOServObject<Integer,FileReplicationLog>
-
getUpdated
public int getUpdated()
-
hashCode
public int hashCode()
Description copied from class:AOServObjectImplementation Note:
This default implementation callsAOServObject.hashCode()on the key (fromAOServObject.getKey()).- Overrides:
hashCodein classAOServObject<Integer,FileReplicationLog>
-
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,FileReplicationLog>- Parameters:
result- theResultSetcontaining the row to copy into this object- Throws:
SQLException
-
isSuccessful
public boolean isSuccessful()
-
read
public void read(StreamableInput in, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
readin interfaceAOServReadable- Specified by:
readin interfaceAOServStreamable- Specified by:
readin classAOServObject<Integer,FileReplicationLog>- Throws:
IOException
-
setTable
public void setTable(AOServTable<Integer,FileReplicationLog> table)
- Specified by:
setTablein interfaceSingleTableObject<Integer,FileReplicationLog>
-
write
public void write(StreamableOutput out, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
writein interfaceAOServStreamable- Specified by:
writein interfaceAOServWritable- Specified by:
writein classAOServObject<Integer,FileReplicationLog>- Throws:
IOException
-
-