Package de.gematik.test.tiger.testenvmgr
Class TigerTestEnvMgr
java.lang.Object
de.gematik.test.tiger.testenvmgr.TigerTestEnvMgr
- All Implemented Interfaces:
TigerEnvUpdateSender,TigerUpdateListener,AutoCloseable,org.springframework.beans.factory.DisposableBean
public class TigerTestEnvMgr
extends Object
implements TigerEnvUpdateSender, TigerUpdateListener, org.springframework.beans.factory.DisposableBean, AutoCloseable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclose()createServer(String serverId, de.gematik.test.tiger.testenvmgr.config.CfgServer config) voiddestroy()findServer(String serverName) Deprecated, for removal: This API element is subject to removal in a future version.List<de.gematik.test.tiger.common.data.config.tigerproxy.TigerRoute>booleanvoidvoidpublishStatusUpdateToListeners(TigerStatusUpdate update, List<TigerUpdateListener> listeners) voidreceivedConfirmationFromWorkflowUi(boolean executionShouldFail) voidreceiveTestEnvUpdate(TigerStatusUpdate statusUpdate) voidregisterLogListener(TigerServerLogListener listener) voidregisterNewListener(TigerUpdateListener listener) voidvoidvoidvoidsetUpEnvironment(Optional<IRbelMessageListener> localTigerProxyMessageListener) voidshutDown()void
-
Field Details
-
HTTP
- See Also:
-
HTTPS
- See Also:
-
CFG_PROP_NAME_LOCAL_PROXY_ADMIN_PORT
- See Also:
-
CFG_PROP_NAME_LOCAL_PROXY_PROXY_PORT
- See Also:
-
LOCAL_TIGER_PROXY_TYPE
- See Also:
-
context
public org.springframework.context.ConfigurableApplicationContext context
-
-
Constructor Details
-
TigerTestEnvMgr
public TigerTestEnvMgr()
-
-
Method Details
-
getConfiguredLoggingLevels
-
startLocalTigerProxyIfActivated
public void startLocalTigerProxyIfActivated() -
publishNewStatusUpdate
-
publishStatusUpdateToListeners
public void publishStatusUpdateToListeners(TigerStatusUpdate update, List<TigerUpdateListener> listeners) -
createServer
public AbstractTigerServer createServer(String serverId, de.gematik.test.tiger.testenvmgr.config.CfgServer config) -
setUpEnvironment
public void setUpEnvironment() -
setUpEnvironment
-
setDefaultProxyToLocalTigerProxy
public void setDefaultProxyToLocalTigerProxy() -
replaceSysPropsInString
-
shutDown
public void shutDown() -
receiveTestEnvUpdate
- Specified by:
receiveTestEnvUpdatein interfaceTigerUpdateListener
-
getRoutes
-
findServer
-
getLocalTigerProxy
Deprecated, for removal: This API element is subject to removal in a future version.to avoid the null pointer hassle, the API has been changed to return Optional, seegetLocalTigerProxyOrFail()andgetLocalTigerProxyOptional().- Returns:
- local Tiger Proxy instance
-
getLocalTigerProxyOrFail
-
getLocalTigerProxyOptional
-
isLocalTigerProxyActive
public boolean isLocalTigerProxyActive() -
getExecutor
-
registerNewListener
- Specified by:
registerNewListenerin interfaceTigerEnvUpdateSender
-
registerLogListener
- Specified by:
registerLogListenerin interfaceTigerEnvUpdateSender
-
receivedConfirmationFromWorkflowUi
public void receivedConfirmationFromWorkflowUi(boolean executionShouldFail) -
resetConfirmationFromWorkflowUi
public void resetConfirmationFromWorkflowUi() -
destroy
- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean- Throws:
Exception
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
abortTestExecution
public void abortTestExecution()
-
getLocalTigerProxyOrFail()andgetLocalTigerProxyOptional().