Package uk.co.ractf.polaris.node
Interface Node
-
- All Known Implementing Classes:
ConsulNode
public interface NodeThe interface used for interacting with hosts
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.github.dockerjava.api.model.AuthConfiggetAuthConfig()Gets the docker registry auth config for the host.java.lang.StringgetId()Get the host's iduk.co.ractf.polaris.api.node.NodeInfogetNodeInfo()Gets aNodeInfoobject 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 nodevoidrestartInstance(uk.co.ractf.polaris.api.instance.Instance instance)Restarts anInstancevoidsetNodeInfo(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 aNodeInfoobject 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
-
-