HostHistoryTableBuilder

public class HostHistoryTableBuilder extends TableBuilderAbstract<HostStateHistoryEntry>

Builds a table for printing 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 build() method.

Author:Manoel Campos da Silva Filho

Constructors

HostHistoryTableBuilder

public HostHistoryTableBuilder(Host host)

Instantiates a builder to print the history of a Host using the a default TextTable. To use a different Table, check the alternative constructors.

Parameters:
  • host – the Host to get the history to print

HostHistoryTableBuilder

public HostHistoryTableBuilder(Host host, Table table)

Instantiates a builder to print the history of a Host using the a given Table.

Parameters:
  • host – the Host to get the history to print
  • table – the Table used to build the table with the Cloudlets data

Methods

createTableColumns

protected void createTableColumns()