Package uk.co.ractf.polaris.node
Class ConsulNode
- java.lang.Object
-
- uk.co.ractf.polaris.node.ConsulNode
-
-
Constructor Summary
Constructors Constructor Description ConsulNode(java.util.Set<Runner<?>> runnerSet, java.util.Set<com.google.common.util.concurrent.Service> services, ClusterState clusterState)
-
Method Summary
All Methods Instance Methods Concrete 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 statevoidstart()voidstop()
-
-
-
Constructor Detail
-
ConsulNode
@Inject public ConsulNode(java.util.Set<Runner<?>> runnerSet, java.util.Set<com.google.common.util.concurrent.Service> services, ClusterState clusterState)
-
-
Method Detail
-
start
public void start()
- Specified by:
startin interfaceio.dropwizard.lifecycle.Managed
-
stop
public void stop()
- Specified by:
stopin interfaceio.dropwizard.lifecycle.Managed
-
getId
public java.lang.String getId()
Description copied from interface:NodeGet the host's id
-
getNodeInfo
public uk.co.ractf.polaris.api.node.NodeInfo getNodeInfo()
Description copied from interface:NodeGets aNodeInfoobject with the host's current state- Specified by:
getNodeInfoin interfaceNode- Returns:
- host info
-
setNodeInfo
public void setNodeInfo(uk.co.ractf.polaris.api.node.NodeInfo nodeInfo)
Description copied from interface:NodeSets the host's current state- Specified by:
setNodeInfoin interfaceNode- Parameters:
nodeInfo-NodeInfo
-
restartInstance
public void restartInstance(uk.co.ractf.polaris.api.instance.Instance instance)
Description copied from interface:NodeRestarts anInstance- Specified by:
restartInstancein interfaceNode- Parameters:
instance- the instance
-
getAuthConfig
public com.github.dockerjava.api.model.AuthConfig getAuthConfig()
Description copied from interface:NodeGets the docker registry auth config for the host.- Specified by:
getAuthConfigin interfaceNode- Returns:
- the auth config
-
getPodImages
public java.util.List<java.lang.String> getPodImages()
Description copied from interface:NodeGets a list of images currently stored on the node- Specified by:
getPodImagesin interfaceNode- Returns:
- list of images
-
getRunners
public java.util.List<java.lang.String> getRunners()
Description copied from interface:NodeGets a list of runners available on the node- Specified by:
getRunnersin interfaceNode- Returns:
- list of runners
-
-