Interface RemoteElasticInstance

    • Method Detail

      • start

        void start()
      • terminate

        void terminate()
      • getInstance

        com.atlassian.aws.ec2.RemoteEC2Instance getInstance()
      • getRemoteAgent

        long getRemoteAgent()
      • setRemoteAgent

        void setRemoteAgent​(long agentId)
        Parameters:
        agentId - id of corresponding ElasticAgentDefinition.
      • isShutdownable

        boolean isShutdownable()
        Returns true if the instance is in a state that allows shutdown. It may return true for instances that are already being shutdown in AWS.
      • isAgentLoading

        boolean isAgentLoading()
      • setAgentLoading

        void setAgentLoading​(boolean agentLoading)
      • triggerDelayedTermination

        void triggerDelayedTermination​(long delaySeconds)
        Triggers delayed termination of elastic instance. Termination is performed asynchronously.
        Parameters:
        delaySeconds - Number of secods to wait before terminating instance.
      • interruptDelayedTermination

        void interruptDelayedTermination()
        Interrupts delayed termination process.
      • getAttachedVolumes

        @NotNull
        @NotNull Collection<com.atlassian.aws.ec2.EBSVolume> getAttachedVolumes()
      • isBeingTerminated

        boolean isBeingTerminated()
      • restoreInstance

        void restoreInstance​(ElasticAgentDefinition elasticAgentDefinition,
                             com.amazonaws.services.ec2.model.Instance instance)
                      throws Exception
        Restore elastic agent's state after server restart
        Parameters:
        elasticAgentDefinition -
        instance -
        Throws:
        Exception
        Since:
        5.10
      • getKeyStore

        KeyStore getKeyStore()
        Returns:
        keystore associated with the instance
        Since:
        7.2