Interface Node

  • All Known Implementing Classes:
    ConsulNode

    public interface Node
    The interface used for interacting with hosts
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.github.dockerjava.api.model.AuthConfig getAuthConfig()
      Gets the docker registry auth config for the host.
      java.lang.String getId()
      Get the host's id
      uk.co.ractf.polaris.api.node.NodeInfo getNodeInfo()
      Gets a NodeInfo object with the host's current state
      java.util.List<java.lang.String> getPodImages()
      Gets a list of images currently stored on the node
      java.util.List<java.lang.String> getRunners()
      Gets a list of runners available on the node
      void restartInstance​(uk.co.ractf.polaris.api.instance.Instance instance)
      Restarts an Instance
      void setNodeInfo​(uk.co.ractf.polaris.api.node.NodeInfo nodeInfo)
      Sets the host's current state
    • Method Detail

      • getId

        java.lang.String getId()
        Get the host's id
        Returns:
        the host's id
      • getNodeInfo

        uk.co.ractf.polaris.api.node.NodeInfo getNodeInfo()
        Gets a NodeInfo object with the host's current state
        Returns:
        host info
      • setNodeInfo

        void setNodeInfo​(uk.co.ractf.polaris.api.node.NodeInfo nodeInfo)
        Sets the host's current state
        Parameters:
        nodeInfo - NodeInfo
      • restartInstance

        void restartInstance​(uk.co.ractf.polaris.api.instance.Instance instance)
        Restarts an Instance
        Parameters:
        instance - the instance
      • getAuthConfig

        com.github.dockerjava.api.model.AuthConfig getAuthConfig()
        Gets the docker registry auth config for the host.
        Returns:
        the auth config
      • getPodImages

        java.util.List<java.lang.String> getPodImages()
        Gets a list of images currently stored on the node
        Returns:
        list of images
      • getRunners

        java.util.List<java.lang.String> getRunners()
        Gets a list of runners available on the node
        Returns:
        list of runners