Package uk.co.ractf.polaris.node
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 iduk.co.ractf.polaris.api.node.NodeInfo
getNodeInfo()
Gets aNodeInfo
object with the host's current statejava.util.List<java.lang.String>
getPodImages()
Gets a list of images currently stored on the nodejava.util.List<java.lang.String>
getRunners()
Gets a list of runners available on the nodevoid
restartInstance(uk.co.ractf.polaris.api.instance.Instance instance)
Restarts anInstance
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 aNodeInfo
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 anInstance
- 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
-
-