public class HostHistoryTableBuilder extends TableBuilderAbstract<HostStateHistoryEntry>
HostStateHistoryEntry
entries from the
Host.getStateHistory()
.
It defines a set of default columns but new ones can be added
dynamically using the addColumn()
methods.
The basic usage of the class is by calling its constructor,
giving a Host to print its history, and then
calling the TableBuilderAbstract.build()
method.
Constructor and Description |
---|
HostHistoryTableBuilder(Host host)
Instantiates a builder to print the history of a Host using the a
default
TextTable . |
HostHistoryTableBuilder(Host host,
Table table)
Instantiates a builder to print the history of a Host using the a
given
Table . |
Modifier and Type | Method and Description |
---|---|
protected void |
createTableColumns()
Creates the columns of the table and define how the data for those columns
will be got from an object inside the
TableBuilderAbstract.list of objects to be printed. |
addColumn, addColumn, addColumnDataFunction, addDataToRow, build, column, getTable, removeColumn, removeColumn, setObjectList, setTable, setTitle
public HostHistoryTableBuilder(Host host)
TextTable
.
To use a different Table
, check the alternative constructors.host
- the Host to get the history to printprotected void createTableColumns()
TableBuilderAbstract
TableBuilderAbstract.list
of objects to be printed.createTableColumns
in class TableBuilderAbstract<HostStateHistoryEntry>
Copyright © 2015–2019 Systems, Security and Image Communication Lab - Instituto de Telecomunica����es (IT) - Universidade da Beira Interior (UBI) - Instituto Federal de Educa����o Ci��ncia e Tecnologia do Tocantins (IFTO). All rights reserved.