Class TakeDockerEnvironment

java.lang.Object
org.arquillian.cube.docker.impl.client.reporter.TakeDockerEnvironment

public class TakeDockerEnvironment extends Object
Class that reports generic Docker information like orchestration or docker version.
  • Constructor Details

    • TakeDockerEnvironment

      public TakeDockerEnvironment()
  • Method Details

    • reportDockerEnvironment

      public void reportDockerEnvironment(@Observes AfterAutoStart event, CubeDockerConfiguration cubeDockerConfiguration, DockerClientExecutor executor, org.arquillian.reporter.config.ReporterConfiguration reporterConfiguration)
    • captureContainerStatsBeforeTest

      public void captureContainerStatsBeforeTest(@Observes org.jboss.arquillian.test.spi.event.suite.Before before, DockerClientExecutor executor, CubeRegistry cubeRegistry) throws IOException
      Throws:
      IOException
    • reportContainerStatsAfterTest

      public void reportContainerStatsAfterTest(@Observes org.jboss.arquillian.test.spi.event.suite.After after, DockerClientExecutor executor, CubeRegistry cubeRegistry) throws IOException
      Throws:
      IOException
    • reportContainerLogs

      public void reportContainerLogs(@Observes BeforeStop beforeStop, DockerClientExecutor executor, org.arquillian.reporter.config.ReporterConfiguration reporterConfiguration) throws IOException
      Throws:
      IOException
    • captureStats

      public void captureStats(DockerClientExecutor executor, CubeRegistry cubeRegistry, String when, Boolean decimal) throws IOException
      private TableRowEntry addRowsForNetwork(Map<String, Long> before, Map<String, Long> after, Boolean decimal, String adapter) { TableRowEntry tableRowEntry = new TableRowEntry(); tableRowEntry.addCell(new TableCellEntry(adapter)); addCells(tableRowEntry, before.get("rx_bytes"), after.get("rx_bytes"), decimal); addCells(tableRowEntry, before.get("tx_bytes"), after.get("tx_bytes"), decimal); return tableRowEntry; }
      Throws:
      IOException