Class EnginesResourceImpl

  • All Implemented Interfaces:
    com.artisol.teneo.studio.api.resources.EnginesResource

    public class EnginesResourceImpl
    extends AbstractResource
    implements com.artisol.teneo.studio.api.resources.EnginesResource
    • Field Summary

      • Fields inherited from interface com.artisol.teneo.studio.api.resources.EnginesResource

        GET_CONDITION_MATCHING_TRIGGERS_RESULT_PATH, GET_CONDITION_MATCHING_TRIGGERS_RESULT_SUMMARY, GET_ENGINES_PATH, GET_ENGINES_SUMMARY, GET_MESSAGES_PATH, GET_MESSAGES_SUMMARY, GET_STATUS_PATH, GET_STATUS_SUMMARY, GET_XML_EXPORT_RESULT_PATH, GET_XML_EXPORT_RESULT_SUMMARY, PATH, POST_CONDITION_MATCHING_TRIGGERS_BEGIN_PATH, POST_CONDITION_MATCHING_TRIGGERS_BEGIN_SUMMARY, POST_INPUT_FOR_MATCHING_TRIGGERS_PATH, POST_INPUT_FOR_MATCHING_TRIGGERS_SUMMARY, POST_INPUT_FOR_RESPONSE_PATH, POST_INPUT_FOR_RESPONSE_SUMMARY, POST_RELOAD_PATH, POST_RELOAD_SUMMARY, POST_SESSION_RESTART_PATH, POST_SESSION_RESTART_SUMMARY, POST_SESSION_START_PATH, POST_SESSION_START_SUMMARY, POST_SESSION_STOP_PATH, POST_SESSION_STOP_SUMMARY, POST_SHUTDOWN_PATH, POST_SHUTDOWN_SUMMARY, POST_START_PATH, POST_START_SUMMARY, POST_XML_EXPORT_BEGIN_PATH, POST_XML_EXPORT_BEGIN_SUMMARY
    • Constructor Summary

      Constructors 
      Constructor Description
      EnginesResourceImpl​(javax.ws.rs.client.WebTarget webTarget)  
    • Constructor Detail

      • EnginesResourceImpl

        public EnginesResourceImpl​(javax.ws.rs.client.WebTarget webTarget)
    • Method Detail

      • getEngines

        public List<UUID> getEngines()
                              throws com.artisol.teneo.studio.api.exceptions.ResourceException
        Specified by:
        getEngines in interface com.artisol.teneo.studio.api.resources.EnginesResource
        Throws:
        com.artisol.teneo.studio.api.exceptions.ResourceException
      • getEngineMessages

        public List<com.artisol.teneo.engine.manager.api.models.EngineLogMessage> getEngineMessages​(UUID solutionId)
                                                                                             throws com.artisol.teneo.studio.api.exceptions.ResourceException
        Specified by:
        getEngineMessages in interface com.artisol.teneo.studio.api.resources.EnginesResource
        Throws:
        com.artisol.teneo.studio.api.exceptions.ResourceException
      • getEngineStatus

        public com.artisol.teneo.engine.manager.api.models.EngineStatus getEngineStatus​(UUID solutionId)
                                                                                 throws com.artisol.teneo.studio.api.exceptions.ResourceException
        Specified by:
        getEngineStatus in interface com.artisol.teneo.studio.api.resources.EnginesResource
        Throws:
        com.artisol.teneo.studio.api.exceptions.ResourceException
      • shutdownEngine

        public List<com.artisol.teneo.engine.manager.api.models.EngineLogMessage> shutdownEngine​(UUID solutionId)
                                                                                          throws com.artisol.teneo.studio.api.exceptions.ResourceException
        Specified by:
        shutdownEngine in interface com.artisol.teneo.studio.api.resources.EnginesResource
        Throws:
        com.artisol.teneo.studio.api.exceptions.ResourceException
      • startEngine

        public void startEngine​(UUID solutionId,
                                boolean stable)
                         throws com.artisol.teneo.studio.api.exceptions.ResourceException
        Specified by:
        startEngine in interface com.artisol.teneo.studio.api.resources.EnginesResource
        Throws:
        com.artisol.teneo.studio.api.exceptions.ResourceException
      • reloadEngine

        public List<com.artisol.teneo.engine.manager.api.models.EngineLogMessage> reloadEngine​(UUID solutionId)
                                                                                        throws com.artisol.teneo.studio.api.exceptions.ResourceException
        Specified by:
        reloadEngine in interface com.artisol.teneo.studio.api.resources.EnginesResource
        Throws:
        com.artisol.teneo.studio.api.exceptions.ResourceException
      • stopEngineSession

        public com.artisol.teneo.engine.manager.api.models.EngineStoppedSession stopEngineSession​(UUID solutionId)
                                                                                           throws com.artisol.teneo.studio.api.exceptions.ResourceException
        Specified by:
        stopEngineSession in interface com.artisol.teneo.studio.api.resources.EnginesResource
        Throws:
        com.artisol.teneo.studio.api.exceptions.ResourceException
      • startEngineSession

        public com.artisol.teneo.engine.manager.api.models.EngineStartedSession startEngineSession​(UUID solutionId)
                                                                                            throws com.artisol.teneo.studio.api.exceptions.ResourceException
        Specified by:
        startEngineSession in interface com.artisol.teneo.studio.api.resources.EnginesResource
        Throws:
        com.artisol.teneo.studio.api.exceptions.ResourceException
      • restartEngineSession

        public com.artisol.teneo.engine.manager.api.models.EngineStartedSession restartEngineSession​(UUID solutionId)
                                                                                              throws com.artisol.teneo.studio.api.exceptions.ResourceException
        Specified by:
        restartEngineSession in interface com.artisol.teneo.studio.api.resources.EnginesResource
        Throws:
        com.artisol.teneo.studio.api.exceptions.ResourceException
      • beginXmlExport

        public UUID beginXmlExport​(UUID solutionId)
                            throws com.artisol.teneo.studio.api.exceptions.ResourceException
        Specified by:
        beginXmlExport in interface com.artisol.teneo.studio.api.resources.EnginesResource
        Throws:
        com.artisol.teneo.studio.api.exceptions.ResourceException
      • getXmlExport

        public InputStream getXmlExport​(UUID taskId)
                                 throws com.artisol.teneo.studio.api.exceptions.ResourceException
        Specified by:
        getXmlExport in interface com.artisol.teneo.studio.api.resources.EnginesResource
        Throws:
        com.artisol.teneo.studio.api.exceptions.ResourceException
      • getEngineResponseForInput

        public com.artisol.teneo.engine.manager.api.models.EngineAnswer getEngineResponseForInput​(UUID solutionId,
                                                                                                  com.artisol.teneo.studio.api.models.EngineUserInput engineInputModel)
                                                                                           throws com.artisol.teneo.studio.api.exceptions.ResourceException
        Specified by:
        getEngineResponseForInput in interface com.artisol.teneo.studio.api.resources.EnginesResource
        Throws:
        com.artisol.teneo.studio.api.exceptions.ResourceException
      • getMatchingTriggersForInput

        public List<UUID> getMatchingTriggersForInput​(UUID solutionId,
                                                      com.artisol.teneo.studio.api.models.EngineUserInput engineInputModel)
                                               throws com.artisol.teneo.studio.api.exceptions.ResourceException
        Specified by:
        getMatchingTriggersForInput in interface com.artisol.teneo.studio.api.resources.EnginesResource
        Throws:
        com.artisol.teneo.studio.api.exceptions.ResourceException
      • beginTriggerMatchingCondition

        public UUID beginTriggerMatchingCondition​(UUID solutionId,
                                                  com.artisol.teneo.studio.api.models.EngineCondition engineConditionModel)
                                           throws com.artisol.teneo.studio.api.exceptions.ResourceException
        Specified by:
        beginTriggerMatchingCondition in interface com.artisol.teneo.studio.api.resources.EnginesResource
        Throws:
        com.artisol.teneo.studio.api.exceptions.ResourceException
      • getTriggerMatchingCondition

        public List<UUID> getTriggerMatchingCondition​(UUID taskId)
                                               throws com.artisol.teneo.studio.api.exceptions.ResourceException
        Specified by:
        getTriggerMatchingCondition in interface com.artisol.teneo.studio.api.resources.EnginesResource
        Throws:
        com.artisol.teneo.studio.api.exceptions.ResourceException