Class ProcessesController

java.lang.Object
org.serviceconnector.ctrl.util.ProcessesController

public class ProcessesController extends Object
  • Constructor Details

    • ProcessesController

      public ProcessesController()
  • Method Details

    • isSCDisabled

      public boolean isSCDisabled()
    • getSCConfigurationFile

      public String getSCConfigurationFile()
    • startSCEnvironment

      public Map<String,ProcessCtx> startSCEnvironment(List<ServiceConnectorDefinition> scDefs) throws Exception
      Throws:
      Exception
    • stopSCEnvironment

      public void stopSCEnvironment(Map<String,ProcessCtx> scContexts) throws Exception
      Throws:
      Exception
    • startSC

      public ProcessCtx startSC(String scName, String logbackXml, String scProperties) throws Exception
      Throws:
      Exception
    • stopSC

      public void stopSC(ProcessCtx scProcess) throws Exception
      Throws:
      Exception
    • startServerEnvironment

      public Map<String,ProcessCtx> startServerEnvironment(List<ServerDefinition> serverDefs) throws Exception
      Throws:
      Exception
    • stopServerEnvironment

      public void stopServerEnvironment(Map<String,ProcessCtx> srvContexts) throws Exception
      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

      public void stopServer(ProcessCtx srvProcess) throws Exception
      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

      public void stopClient(ProcessCtx clnProcess) throws Exception
      Throws:
      Exception
    • waitForClientTermination

      public void waitForClientTermination(ProcessCtx[] clientCtxs)
    • waitForClientTermination

      public void waitForClientTermination(ProcessCtx clientCtx)