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 Modifier and Type Field Description static StringCFG_PROP_NAME_LOCAL_PROXY_ADMIN_PORTstatic StringCFG_PROP_NAME_LOCAL_PROXY_PROXY_PORTstatic StringHTTPstatic StringHTTPSstatic StringLOCAL_TIGER_PROXY_TYPE
-
Constructor Summary
Constructors Constructor Description TigerTestEnvMgr()
-
Method Summary
-
-
-
Field Detail
-
HTTP
public static final String HTTP
- See Also:
- Constant Field Values
-
HTTPS
public static final String HTTPS
- See Also:
- Constant Field Values
-
CFG_PROP_NAME_LOCAL_PROXY_ADMIN_PORT
public static final String CFG_PROP_NAME_LOCAL_PROXY_ADMIN_PORT
- See Also:
- Constant Field Values
-
CFG_PROP_NAME_LOCAL_PROXY_PROXY_PORT
public static final String CFG_PROP_NAME_LOCAL_PROXY_PROXY_PORT
- See Also:
- Constant Field Values
-
LOCAL_TIGER_PROXY_TYPE
public static final String LOCAL_TIGER_PROXY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
startLocalTigerProxyIfActivated
public void startLocalTigerProxyIfActivated()
-
waitForConsoleInput
public static void waitForConsoleInput(String textToEnter)
-
createServer
public AbstractTigerServer createServer(String serverId, de.gematik.test.tiger.testenvmgr.config.CfgServer config)
-
setUpEnvironment
public void setUpEnvironment()
-
setUpEnvironment
public void setUpEnvironment(Optional<IRbelMessageListener> localTigerProxyMessageListener)
-
shutDown
public void shutDown()
-
receiveTestEnvUpdate
public void receiveTestEnvUpdate(TigerStatusUpdate statusUpdate)
- Specified by:
receiveTestEnvUpdatein interfaceTigerUpdateListener
-
getRoutes
public List<de.gematik.test.tiger.common.data.config.tigerProxy.TigerRoute> getRoutes()
-
findServer
public Optional<AbstractTigerServer> findServer(String serverName)
-
getLocalTigerProxy
@Deprecated(since="1.1.1", forRemoval=true) public TigerProxy 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
public TigerProxy getLocalTigerProxyOrFail()
-
getLocalTigerProxyOptional
public Optional<TigerProxy> getLocalTigerProxyOptional()
-
isLocalTigerProxyActive
public boolean isLocalTigerProxyActive()
-
registerNewListener
public void registerNewListener(TigerUpdateListener listener)
- Specified by:
registerNewListenerin interfaceTigerEnvUpdateSender
-
registerLogListener
public void registerLogListener(TigerServerLogListener listener)
- Specified by:
registerLogListenerin interfaceTigerEnvUpdateSender
-
receivedUserAcknowledgementForShutdown
public void receivedUserAcknowledgementForShutdown()
-
receivedResumeTestRunExecution
public void receivedResumeTestRunExecution()
-
receivedCancelTestRunExecution
public void receivedCancelTestRunExecution()
-
resetUserInput
public void resetUserInput()
-
destroy
public void destroy() throws Exception- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean- Throws:
Exception
-
close
public void close() throws Exception- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
-