Class ServerStatTable
- java.lang.Object
-
- com.aoindustries.aoserv.client.AOServTable<String,ServerStat>
-
- com.aoindustries.aoserv.client.master.ServerStatTable
-
- All Implemented Interfaces:
Table<ServerStat>,Iterable<ServerStat>
public final class ServerStatTable extends AOServTable<String,ServerStat>
- Author:
- AO Industries, Inc.
- See Also:
ServerStat
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.aoindustries.aoserv.client.AOServTable
AOServTable.OrderBy
-
-
Field Summary
-
Fields inherited from class com.aoindustries.aoserv.client.AOServTable
ASCENDING, connector, DESCENDING
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ServerStatget(Object name)Deprecated.Always try to lookup by specific keys; the compiler will help you more when types change.protected AOServTable.OrderBy[]getDefaultOrderBy()Gets the default sorting for this table.List<ServerStat>getRowsCopy()Gets a modifiable copy of the rows, which may then be manipulated, such as for sorting.Table.TableIDgetTableID()Gets the unique identifier for this table.protected ServerStatgetUniqueRowImpl(int col, Object value)Gets a row given a unique column value.-
Methods inherited from class com.aoindustries.aoserv.client.AOServTable
addProgressListener, addTableListener, addTableListener, addTableLoadListener, clearCache, getCachedRowCount, getConnector, getDefaultOrderBySQLExpressions, getIndexedRows, getIndexedRows, getMap, getNewObject, getObject, getObjects, getObjects, getObjects, getObjectsNoProgress, getObjectsNoProgress, getRows, getSize, getSortAlgorithm, getTableName, getTableSchema, getUniqueRow, getUniqueRow, getUniqueRow, getUniqueRow, handleCommand, hasAnyTableListener, hasTableListener, isEmpty, isLoaded, iterator, printTable, removeProgressListener, removeTableListener, removeTableLoadListener, size, sortIfNeeded, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
getDefaultOrderBy
protected AOServTable.OrderBy[] getDefaultOrderBy()
Description copied from class:AOServTableGets the default sorting for this table.- Specified by:
getDefaultOrderByin classAOServTable<String,ServerStat>- Returns:
nullif the sorting is performed by the server or the array of column names
-
get
@Deprecated public ServerStat get(Object name) throws IOException, SQLException
Deprecated.Always try to lookup by specific keys; the compiler will help you more when types change.Description copied from class:AOServTableGets the value for the associated key ornullif the data doesn't exist or is filtered.- Specified by:
getin classAOServTable<String,ServerStat>- Parameters:
name- whennull, will always returnnull- Throws:
IOExceptionSQLException
-
getRowsCopy
public List<ServerStat> getRowsCopy() throws IOException, SQLException
Description copied from class:AOServTableGets a modifiable copy of the rows, which may then be manipulated, such as for sorting.This gives the table implementation a way to create a defensive copy most efficient to its underlying storage mechanism.
Note: It is best to use
AOServTable.getSortAlgorithm()when sorting rows, as the choice of sorting can be very important when objects are pulled from non-heap source like filesystem-based objects. It is very easy for the sort itself to end up pulling all objects into heap.- Specified by:
getRowsCopyin classAOServTable<String,ServerStat>- Throws:
IOExceptionSQLException- See Also:
AOServTable.getRows(),AOServTable.getSortAlgorithm()
-
getTableID
public Table.TableID getTableID()
Description copied from class:AOServTableGets the unique identifier for this table. Each table has a unique identifier, as defined inSchemaTable.TableID.- Specified by:
getTableIDin classAOServTable<String,ServerStat>- Returns:
- the identifier for this table
- See Also:
Table.TableID
-
getUniqueRowImpl
protected ServerStat getUniqueRowImpl(int col, Object value) throws IOException, SQLException
Description copied from class:AOServTableGets a row given a unique column value.- Specified by:
getUniqueRowImplin classAOServTable<String,ServerStat>- Parameters:
col- the column index to searchvalue- whennull, no row is matched, even if there is a single row with a uniquelynullvalue- Throws:
IOExceptionSQLException
-
-