Package org.serviceconnector.ctrl.util
Class ProcessesController
java.lang.Object
org.serviceconnector.ctrl.util.ProcessesController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstartPublishClient(String logbackClnXml, String clientName, String scHost, int scPort, org.serviceconnector.net.ConnectionType connectionType, int maxConnections, int keepAliveIntervalSeconds, String serviceName, int noDataIntervalSeconds, String methodsToInvoke) startServer(String serverType, String logbackXml, String serverName, int listenerPort, int scPort, int maxSessions, int maxConnections, String serviceNames) startServer(String serverType, String logbackXml, String serverName, int listenerPort, int scPort, int maxSessions, int maxConnections, String serviceNames, String timezone, String nics) Start a server in a new JVM.startServer(String serverType, String logbackSrvXml, String serverName, int listenerPort, int scPort, int maxSessions, int maxConnections, org.serviceconnector.net.ConnectionType connectionType, String serviceNames, String timezone, String nics) Start a server in a new JVM.startServerEnvironment(List<ServerDefinition> serverDefs) startSessionClient(String logbackClnXml, String clientName, String scHost, int scPort, org.serviceconnector.net.ConnectionType connectionType, int maxConnections, int keepAliveIntervalSeconds, String serviceName, int echoIntervalSeconds, int echoTimeoutSeconds, String methodsToInvoke) voidstopClient(ProcessCtx clnProcess) voidstopSC(ProcessCtx scProcess) voidstopSCEnvironment(Map<String, ProcessCtx> scContexts) voidstopServer(ProcessCtx srvProcess) voidstopServerEnvironment(Map<String, ProcessCtx> srvContexts) voidwaitForClientTermination(ProcessCtx clientCtx) voidwaitForClientTermination(ProcessCtx[] clientCtxs)
-
Constructor Details
-
ProcessesController
public ProcessesController()
-
-
Method Details
-
isSCDisabled
public boolean isSCDisabled() -
getSCConfigurationFile
-
startSCEnvironment
public Map<String,ProcessCtx> startSCEnvironment(List<ServiceConnectorDefinition> scDefs) throws Exception - Throws:
Exception
-
stopSCEnvironment
- Throws:
Exception
-
startSC
- Throws:
Exception
-
stopSC
- Throws:
Exception
-
startServerEnvironment
public Map<String,ProcessCtx> startServerEnvironment(List<ServerDefinition> serverDefs) throws Exception - Throws:
Exception
-
stopServerEnvironment
- Throws:
Exception
-
startServer
public ProcessCtx startServer(String serverType, String logbackXml, String serverName, int listenerPort, int scPort, int maxSessions, int maxConnections, String serviceNames) throws Exception - Throws:
Exception
-
startServer
public ProcessCtx startServer(String serverType, String logbackXml, String serverName, int listenerPort, int scPort, int maxSessions, int maxConnections, String serviceNames, String timezone, String nics) throws Exception Start a server in a new JVM. Parameters controls the server execution.- Parameters:
serverType- ("session" or "publish")logbackXml- (file name)serverName-listenerPort-scPort-maxSessions-maxConnections-serviceNames- (comma delimited list)- Returns:
- Process with JVM in which the server is started
- Throws:
Exception
-
startServer
public ProcessCtx startServer(String serverType, String logbackSrvXml, String serverName, int listenerPort, int scPort, int maxSessions, int maxConnections, org.serviceconnector.net.ConnectionType connectionType, String serviceNames, String timezone, String nics) throws Exception Start a server in a new JVM. Parameters controls the server execution.- Parameters:
serverType- ("session" or "publish")logbackSrvXml- (file name)serverName-listenerPort-scPort-maxSessions-maxConnections-connectionType-serviceNames- (comma delimited list)- Returns:
- Process with JVM in which the server is started
- Throws:
Exception
-
stopServer
- Throws:
Exception
-
startSessionClient
public ProcessCtx startSessionClient(String logbackClnXml, String clientName, String scHost, int scPort, org.serviceconnector.net.ConnectionType connectionType, int maxConnections, int keepAliveIntervalSeconds, String serviceName, int echoIntervalSeconds, int echoTimeoutSeconds, String methodsToInvoke) throws Exception - Throws:
Exception
-
startPublishClient
public ProcessCtx startPublishClient(String logbackClnXml, String clientName, String scHost, int scPort, org.serviceconnector.net.ConnectionType connectionType, int maxConnections, int keepAliveIntervalSeconds, String serviceName, int noDataIntervalSeconds, String methodsToInvoke) throws Exception - Throws:
Exception
-
stopClient
- Throws:
Exception
-
waitForClientTermination
-
waitForClientTermination
-