Class SCAdminBase

    • Constructor Detail

      • SCAdminBase

        public SCAdminBase()
        Deprecated.
    • Method Detail

      • startAgentServer

        public String startAgentServer​(short sid)
                                throws Exception
        Deprecated.
        Starts an agent server from its id.
        Parameters:
        sid - id of agent server to start
        Returns:
        the status string of the launched server.
        Throws:
        Exception - an error occurs.
      • startAgentServer

        public String startAgentServer​(short sid,
                                       File dir)
                                throws Exception
        Deprecated.
        Starts an agent server from its id using specific storage directory. JVM arguments are initialized from A3 configuration.
        Parameters:
        sid - id of agent server to start
        dir - new working directory for the created agent server, current working directory if null
        Returns:
        the status string of the launched server.
        Throws:
        Exception - an error occurs.
      • startAgentServer

        public String startAgentServer​(short sid,
                                       File dir,
                                       String[] jvmargs)
                                throws Exception
        Deprecated.
        Starts an agent server from its id using specific jvmargs and storage directory.
        Parameters:
        sid - id of agent server to start
        dir - new working directory for the created agent server, current working directory if null
        jvmargs - arguments to pass to the created java program
        Returns:
        the status string of the launched server.
        Throws:
        Exception - an error occurs.
      • startAgentServer

        public String startAgentServer​(short sid,
                                       File dir,
                                       String[] jvmargs,
                                       String[] servargs)
                                throws Exception
        Deprecated.
        Starts an agent server from its id using specific jvmargs and storage directory.
        Parameters:
        sid - id of agent server to start
        dir - new working directory for the created agent server, current working directory if null
        jvmargs - arguments to pass to the created java program
        servargs - additional arguments to pass to the created java program
        Returns:
        the status string of the launched server.
        Throws:
        Exception - an error occurs.
      • startAgentServer

        public String startAgentServer​(short sid,
                                       File dir,
                                       String[] jvmargs,
                                       String className,
                                       String[] args)
                                throws Exception
        Deprecated.
        Starts an agent server from its id.
        Parameters:
        sid - id of agent server to start
        dir - new working directory for the created agent server, current working directory if null
        jvmargs - arguments to pass to the created java program
        className - the name of the main class
        args - additional arguments to pass to the created java program
        Returns:
        the status string of the launched server.
        Throws:
        Exception - an error occurs.
      • execAgentServer

        public Process execAgentServer​(short sid,
                                       File dir,
                                       String[] jvmargs,
                                       String className,
                                       String[] args)
                                throws Exception
        Deprecated.
        Runs an agent server from its id and specific parameters.
        Parameters:
        sid - id of agent server to start
        dir - new working directory for the created agent server, current working directory if null
        jvmargs - arguments to pass to the created java program
        className - the name of the main class
        args - additional arguments to pass to the created java program
        Returns:
        the created Process object.
        Throws:
        Exception - an error occurs.
      • waitServerStarting

        public String waitServerStarting​(Process p)
                                  throws Exception
        Deprecated.
        Waits for the starting of an AgentServer pointed out by its process. Closes all subsequent streams of the process to avoid deadlock due to limited buffer size.
        Parameters:
        p - the AgentServer process.
        Returns:
        the status string of the launched server.
        Throws:
        Exception - an error occurs.
      • closeServerStream

        public void closeServerStream​(Process p)
                               throws Exception
        Deprecated.
        Closes all subsequent streams of the process to avoid deadlock due to limited buffer size.
        Parameters:
        p - the AgentServer process.
        Throws:
        Exception - an error occurs.
      • killAgentServer

        public void killAgentServer​(short sid)
                             throws Exception
        Deprecated.
        Kills this agent server process.
        Parameters:
        sid - id of agent server to stop
        Throws:
        Exception - an error occurs.
      • joinAgentServer

        public int joinAgentServer​(short sid)
                            throws Exception
        Deprecated.
        Causes the current thread to wait, if necessary, until the process running this agent server has terminated.
        Parameters:
        sid - id of agent server to stop
        Returns:
        the exit value of the agent server.
        Throws:
        UnknownServerException - if the agent server is unknown.
        Exception - an error occurs.
      • stopAgentServer

        public void stopAgentServer​(short sid)
                             throws Exception
        Deprecated.
        Stops cleanly an agent server from its id.
        Parameters:
        sid - id of agent server to stop
        Throws:
        Exception - an error occurs.
      • crashAgentServer

        public void crashAgentServer​(short sid)
                              throws Exception
        Deprecated.
        Stops violently an agent server from its id.
        Parameters:
        sid - id of agent server to stop
        Throws:
        Exception - an error occurs.
      • update

        public void update()
                    throws Exception
        Deprecated.
        Updates the configuration.
        Throws:
        Exception - an error occurs.