Class OfficeIntegration
java.lang.Object
io.jmix.reports.yarg.formatters.impl.doc.connector.OfficeIntegration
- All Implemented Interfaces:
OfficeIntegrationAPI
- Direct Known Subclasses:
JmixOfficeIntegration
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Set<OfficeConnection>
protected final BlockingQueue<OfficeConnection>
protected int
protected int
protected Boolean
protected final ExecutorService
protected String
protected boolean
protected int
protected String
protected Integer
Fields inherited from interface io.jmix.reports.yarg.formatters.impl.doc.connector.OfficeIntegrationAPI
DEFAULT_CONNECTION_TIMEOUT, DEFAULT_RETRY_COUNT, DEFAULT_RETRY_INTERVAL, DEFAULT_TIMEOUT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected OfficeConnection
protected OfficeConnection
createConnection
(Integer port) protected ExecutorService
int
int
boolean
int
void
protected void
initConnections
(Integer[] ports) protected void
releaseConnection
(OfficeConnection officeConnection) protected ProcessManager
void
runTaskWithTimeout
(OfficeTask officeTask, int timeoutInSeconds) void
setConnectionTimeoutSec
(int connectionTimeoutSec) void
setCountOfRetry
(int countOfRetry) void
setDisplayDeviceAvailable
(Boolean displayDeviceAvailable) void
setPlatformDependProcessManagement
(boolean platformDependProcessManagement) void
setRetryIntervalMs
(int retryIntervalMs) void
setTemporaryDirPath
(String temporaryDirPath) void
setTimeoutInSeconds
(Integer timeoutInSeconds)
-
Field Details
-
platformDependProcessManagement
protected volatile boolean platformDependProcessManagement -
executor
-
connectionsQueue
-
connections
-
openOfficePath
-
temporaryDirPath
-
timeoutInSeconds
-
connectionTimeoutSec
protected int connectionTimeoutSec -
countOfRetry
protected int countOfRetry -
retryIntervalMs
protected int retryIntervalMs -
displayDeviceAvailable
-
-
Constructor Details
-
OfficeIntegration
-
-
Method Details
-
setTemporaryDirPath
-
setTimeoutInSeconds
-
setDisplayDeviceAvailable
-
setCountOfRetry
public void setCountOfRetry(int countOfRetry) -
getRetryIntervalMs
public int getRetryIntervalMs()- Specified by:
getRetryIntervalMs
in interfaceOfficeIntegrationAPI
-
setRetryIntervalMs
public void setRetryIntervalMs(int retryIntervalMs) -
getTemporaryDirPath
- Specified by:
getTemporaryDirPath
in interfaceOfficeIntegrationAPI
-
getTimeoutInSeconds
- Specified by:
getTimeoutInSeconds
in interfaceOfficeIntegrationAPI
-
getConnectionTimeoutSec
public int getConnectionTimeoutSec() -
setConnectionTimeoutSec
public void setConnectionTimeoutSec(int connectionTimeoutSec) -
isDisplayDeviceAvailable
- Specified by:
isDisplayDeviceAvailable
in interfaceOfficeIntegrationAPI
-
runTaskWithTimeout
public void runTaskWithTimeout(OfficeTask officeTask, int timeoutInSeconds) throws NoFreePortsException - Specified by:
runTaskWithTimeout
in interfaceOfficeIntegrationAPI
- Throws:
NoFreePortsException
-
getCountOfRetry
public int getCountOfRetry()- Specified by:
getCountOfRetry
in interfaceOfficeIntegrationAPI
-
getExecutor
-
getAvailablePorts
-
hardReloadAccessPorts
public void hardReloadAccessPorts() -
getPlatformDependProcessManagement
public boolean getPlatformDependProcessManagement() -
setPlatformDependProcessManagement
public void setPlatformDependProcessManagement(boolean platformDependProcessManagement) -
createExecutor
-
acquireConnection
- Throws:
NoFreePortsException
-
releaseConnection
-
initConnections
-
createConnection
-
resolveProcessManager
-