Class JmixOfficeIntegration

java.lang.Object
com.haulmont.yarg.formatters.impl.doc.connector.OfficeIntegration
io.jmix.reports.libintegration.JmixOfficeIntegration
All Implemented Interfaces:
com.haulmont.yarg.formatters.impl.doc.connector.OfficeIntegrationAPI

public class JmixOfficeIntegration extends com.haulmont.yarg.formatters.impl.doc.connector.OfficeIntegration
  • Field Summary

    Fields inherited from class com.haulmont.yarg.formatters.impl.doc.connector.OfficeIntegration

    connections, connectionsQueue, connectionTimeoutSec, countOfRetry, displayDeviceAvailable, executor, openOfficePath, openOfficePorts, platformDependProcessManagement, retryIntervalMs, temporaryDirPath, timeoutInSeconds

    Fields inherited from interface com.haulmont.yarg.formatters.impl.doc.connector.OfficeIntegrationAPI

    DEFAULT_CONNECTION_TIMEOUT, DEFAULT_RETRY_COUNT, DEFAULT_RETRY_INTERVAL, DEFAULT_TIMEOUT
  • Constructor Summary

    Constructors
    Constructor
    Description
    JmixOfficeIntegration(String openOfficePath, Integer... ports)
     
    JmixOfficeIntegration(String openOfficePath, List<Integer> ports)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    void
    runTaskWithTimeout(com.haulmont.yarg.formatters.impl.doc.connector.OfficeTask officeTask, int timeoutInSeconds)
     

    Methods inherited from class com.haulmont.yarg.formatters.impl.doc.connector.OfficeIntegration

    acquireConnection, createConnection, createExecutor, getAvailablePorts, getConnectionTimeoutSec, getCountOfRetry, getExecutor, getPlatformDependProcessManagement, getRetryIntervalMs, getTemporaryDirPath, getTimeoutInSeconds, hardReloadAccessPorts, initConnections, isDisplayDeviceAvailable, releaseConnection, resolveProcessManager, setConnectionTimeoutSec, setCountOfRetry, setDisplayDeviceAvailable, setPlatformDependProcessManagement, setRetryIntervalMs, setTemporaryDirPath, setTimeoutInSeconds

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JmixOfficeIntegration

      public JmixOfficeIntegration(String openOfficePath, Integer... ports)
    • JmixOfficeIntegration

      public JmixOfficeIntegration(String openOfficePath, List<Integer> ports)
  • Method Details

    • runTaskWithTimeout

      public void runTaskWithTimeout(com.haulmont.yarg.formatters.impl.doc.connector.OfficeTask officeTask, int timeoutInSeconds) throws com.haulmont.yarg.formatters.impl.doc.connector.NoFreePortsException
      Specified by:
      runTaskWithTimeout in interface com.haulmont.yarg.formatters.impl.doc.connector.OfficeIntegrationAPI
      Overrides:
      runTaskWithTimeout in class com.haulmont.yarg.formatters.impl.doc.connector.OfficeIntegration
      Throws:
      com.haulmont.yarg.formatters.impl.doc.connector.NoFreePortsException
    • destroyOfficeIntegration

      @PreDestroy protected void destroyOfficeIntegration()