Class SmartExecutorPersistenceConnector

    • Constructor Detail

      • SmartExecutorPersistenceConnector

        public SmartExecutorPersistenceConnector()
    • Method Detail

      • close

        public abstract void close()
                            throws Exception
        Close the connection to DB
        Throws:
        Exception - if fails
      • getPluginInstanceState

        public abstract org.gcube.vremanagement.executor.plugin.PluginStateEvolution getPluginInstanceState​(UUID uuid,
                                                                                                            Integer iterationNumber)
                                                                                                     throws org.gcube.vremanagement.executor.exception.PluginInstanceNotFoundException,
                                                                                                            org.gcube.vremanagement.executor.exception.ExecutorException
        Retrieve the status of the iterationNumber (passed as parameter) of a running/run Plugin which is/was identified by the UUID passed as parameter
        Parameters:
        uuid - the execution identifier of the running/run Plugin
        iterationNumber - the iterationNumber (null to get the last)
        Returns:
        the actual/last PluginState of the Plugin
        Throws:
        Exception - if fails
        org.gcube.vremanagement.executor.exception.PluginInstanceNotFoundException
        org.gcube.vremanagement.executor.exception.ExecutorException
      • isOrphan

        public boolean isOrphan​(ScheduledTask scheduledTask,
                                boolean sameHost)
                         throws org.gcube.vremanagement.executor.exception.ExecutorException
        Throws:
        org.gcube.vremanagement.executor.exception.ExecutorException