Class ServerStat
- java.lang.Object
-
- com.aoindustries.aoserv.client.AOServObject<String,ServerStat>
-
- com.aoindustries.aoserv.client.master.ServerStat
-
- All Implemented Interfaces:
Streamable,StreamReadable,StreamWritable,Row,AOServReadable,AOServStreamable,AOServWritable,SingleTableObject<String,ServerStat>
public final class ServerStat extends AOServObject<String,ServerStat> implements SingleTableObject<String,ServerStat>
To aid in system reliability, scalability, and debugging, many server runtime statistics are maintained.MasterServerStatprovides table-like access to this data.- 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 ServerStat()ServerStat(String name, String value, String description)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ObjectgetColumnImpl(int i)StringgetDescription()StringgetKey()StringgetName()AOServTable<String,ServerStat>getTable()Gets theAOServTablethat contains thisAOServObject.Table.TableIDgetTableID()StringgetValue()voidinit(ResultSet result)Initializes this object from the raw database contents.voidread(StreamableInput in, AoservProtocol.Version protocolVersion)voidsetTable(AOServTable<String,ServerStat> table)voidwrite(StreamableOutput out, AoservProtocol.Version protocolVersion)-
Methods inherited from class com.aoindustries.aoserv.client.AOServObject
compare, compare, compare, compare, compareIgnoreCaseConsistentWithEquals, compareTo, compareTo, compareTo, equals, 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, hashCode, read, toString, toStringImpl, write
-
-
-
-
Field Detail
-
BYTE_ARRAY_CACHE_CREATES
public static final String BYTE_ARRAY_CACHE_CREATES
- See Also:
- Constant Field Values
-
BYTE_ARRAY_CACHE_USES
public static final String BYTE_ARRAY_CACHE_USES
- See Also:
- Constant Field Values
-
BYTE_ARRAY_CACHE_ZERO_FILLS
public static final String BYTE_ARRAY_CACHE_ZERO_FILLS
- See Also:
- Constant Field Values
-
BYTE_ARRAY_CACHE_COLLECTED
public static final String BYTE_ARRAY_CACHE_COLLECTED
- See Also:
- Constant Field Values
-
CHAR_ARRAY_CACHE_CREATES
public static final String CHAR_ARRAY_CACHE_CREATES
- See Also:
- Constant Field Values
-
CHAR_ARRAY_CACHE_USES
public static final String CHAR_ARRAY_CACHE_USES
- See Also:
- Constant Field Values
-
CHAR_ARRAY_CACHE_ZERO_FILLS
public static final String CHAR_ARRAY_CACHE_ZERO_FILLS
- See Also:
- Constant Field Values
-
CHAR_ARRAY_CACHE_COLLECTED
public static final String CHAR_ARRAY_CACHE_COLLECTED
- See Also:
- Constant Field Values
-
DAEMON_CONCURRENCY
public static final String DAEMON_CONCURRENCY
- See Also:
- Constant Field Values
-
DAEMON_CONNECTIONS
public static final String DAEMON_CONNECTIONS
- See Also:
- Constant Field Values
-
DAEMON_CONNECTS
public static final String DAEMON_CONNECTS
- See Also:
- Constant Field Values
-
DAEMON_COUNT
public static final String DAEMON_COUNT
- See Also:
- Constant Field Values
-
DAEMON_DOWN_COUNT
public static final String DAEMON_DOWN_COUNT
- See Also:
- Constant Field Values
-
DAEMON_MAX_CONCURRENCY
public static final String DAEMON_MAX_CONCURRENCY
- See Also:
- Constant Field Values
-
DAEMON_POOL_SIZE
public static final String DAEMON_POOL_SIZE
- See Also:
- Constant Field Values
-
DAEMON_TOTAL_TIME
public static final String DAEMON_TOTAL_TIME
- See Also:
- Constant Field Values
-
DAEMON_TRANSACTIONS
public static final String DAEMON_TRANSACTIONS
- See Also:
- Constant Field Values
-
DB_CONCURRENCY
public static final String DB_CONCURRENCY
- See Also:
- Constant Field Values
-
DB_CONNECTIONS
public static final String DB_CONNECTIONS
- See Also:
- Constant Field Values
-
DB_CONNECTS
public static final String DB_CONNECTS
- See Also:
- Constant Field Values
-
DB_MAX_CONCURRENCY
public static final String DB_MAX_CONCURRENCY
- See Also:
- Constant Field Values
-
DB_POOL_SIZE
public static final String DB_POOL_SIZE
- See Also:
- Constant Field Values
-
DB_TOTAL_TIME
public static final String DB_TOTAL_TIME
- See Also:
- Constant Field Values
-
DB_TRANSACTIONS
public static final String DB_TRANSACTIONS
- See Also:
- Constant Field Values
-
ENTROPY_AVAIL
public static final String ENTROPY_AVAIL
- See Also:
- Constant Field Values
-
ENTROPY_POOLSIZE
public static final String ENTROPY_POOLSIZE
- See Also:
- Constant Field Values
-
ENTROPY_READ_BYTES
public static final String ENTROPY_READ_BYTES
- See Also:
- Constant Field Values
-
ENTROPY_READ_COUNT
public static final String ENTROPY_READ_COUNT
- See Also:
- Constant Field Values
-
ENTROPY_WRITE_BYTES
public static final String ENTROPY_WRITE_BYTES
- See Also:
- Constant Field Values
-
ENTROPY_WRITE_COUNT
public static final String ENTROPY_WRITE_COUNT
- See Also:
- Constant Field Values
-
MEMORY_FREE
public static final String MEMORY_FREE
- See Also:
- Constant Field Values
-
MEMORY_TOTAL
public static final String MEMORY_TOTAL
- See Also:
- Constant Field Values
-
PROTOCOL_VERSION
public static final String PROTOCOL_VERSION
- See Also:
- Constant Field Values
-
REQUEST_CONCURRENCY
public static final String REQUEST_CONCURRENCY
- See Also:
- Constant Field Values
-
REQUEST_CONNECTIONS
public static final String REQUEST_CONNECTIONS
- See Also:
- Constant Field Values
-
REQUEST_MAX_CONCURRENCY
public static final String REQUEST_MAX_CONCURRENCY
- See Also:
- Constant Field Values
-
REQUEST_TOTAL_TIME
public static final String REQUEST_TOTAL_TIME
- See Also:
- Constant Field Values
-
REQUEST_TRANSACTIONS
public static final String REQUEST_TRANSACTIONS
- See Also:
- Constant Field Values
-
THREAD_COUNT
public static final String THREAD_COUNT
- See Also:
- Constant Field Values
-
UPTIME
public static final String UPTIME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getColumnImpl
protected Object getColumnImpl(int i)
- Specified by:
getColumnImplin classAOServObject<String,ServerStat>
-
getDescription
public String getDescription()
-
getName
public String getName()
-
getKey
public String getKey()
- Specified by:
getKeyin classAOServObject<String,ServerStat>
-
getTable
public AOServTable<String,ServerStat> getTable()
Description copied from interface:SingleTableObjectGets theAOServTablethat contains thisAOServObject.- Specified by:
getTablein interfaceSingleTableObject<String,ServerStat>- Returns:
- the
AOServTable.
-
getTableID
public Table.TableID getTableID()
- Specified by:
getTableIDin classAOServObject<String,ServerStat>
-
getValue
public String getValue()
-
init
public void init(ResultSet result) throws SQLException
Description copied from class:AOServObjectInitializes this object from the raw database contents.- Specified by:
initin classAOServObject<String,ServerStat>- 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<String,ServerStat>- Throws:
IOException
-
setTable
public void setTable(AOServTable<String,ServerStat> table)
- Specified by:
setTablein interfaceSingleTableObject<String,ServerStat>
-
write
public void write(StreamableOutput out, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
writein interfaceAOServStreamable- Specified by:
writein interfaceAOServWritable- Specified by:
writein classAOServObject<String,ServerStat>- Throws:
IOException
-
-